Skip to content

Commit

Permalink
Fix variable declaration scope by using var in `this.prepare_wysiwy…
Browse files Browse the repository at this point in the history
…g` function
  • Loading branch information
bricesanchez committed Jul 13, 2018
1 parent 46e7e96 commit 23bac85
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/app/assets/javascripts/refinery/admin.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,6 @@ function ImageDialog(options) {
}

self.prepare_wysiwyg();

}
};

Expand All @@ -778,7 +777,7 @@ function ImageDialog(options) {
var size = $('#existing_image_size_area select#resize').val();
var resize = $("#wants_to_resize_image").is(':checked');

let img = $(document).find('#existing_image_area_content ul li.selected img:first-child');
var img = $(document).find('#existing_image_area_content ul li.selected img:first-child');

if(img.length == 0) img = $(document).find('#existing_image_area_crops ul li.selected img');

Expand Down

0 comments on commit 23bac85

Please sign in to comment.