Skip to content

Commit d62f92d

Browse files
committed
Merge branch 'berkeleybop-fix/class-permalink-dialog-475'
2 parents accd720 + cb7dd85 commit d62f92d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/controllers/concepts_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def show
2626
@concept = @ontology.explore.single_class({ full: true, language: request_lang }, params[:id])
2727

2828
concept_not_found(params[:id]) if @concept.nil?
29+
@current_purl = @concept.purl if Rails.configuration.settings.purl[:enabled]
2930
@notes = @concept.explore.notes
3031
render partial: 'show'
3132
end

app/views/concepts/_show.html.haml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828

2929
:javascript
3030
jQuery(document).ready(function(){
31-
jQuery("#classPermalinkModal").on("shown.bs.modal", function (e) {
31+
jQuery("#classPermalinkModal").off("shown.bs.modal").on("shown.bs.modal", function (e) {
3232
var currentPurl = jQuery("#classPermalink").data("current-purl");
3333
jQuery("#purl_input").val(currentPurl);
3434
})
3535

36-
jQuery("#purl_input").on("click", function () {
36+
jQuery("#purl_input").off("click").on("click", function () {
3737
jQuery(this).select();
3838
});
3939
});

0 commit comments

Comments
 (0)