make js linter even happier
This commit is contained in:
parent
b103031f5b
commit
3588ebd979
1 changed files with 2 additions and 1 deletions
|
@ -371,6 +371,7 @@ editor = {
|
|||
editor._source_image_layer.remove();
|
||||
editor._source_image_layer = null;
|
||||
}
|
||||
// noinspection HtmlRequiredAltAttribute
|
||||
$('<img src="/editor/sourceimage/'+$(this).val()+'">').on('load', editor._source_name_selected_ajax_callback);
|
||||
$('#sidebar form').removeClass('show-source-wizard');
|
||||
$('body').removeClass('map-enabled');
|
||||
|
@ -532,7 +533,7 @@ editor = {
|
|||
if (!confirm('Are you sure you want to copy settings from '+value.name+'?')) return;
|
||||
delete value.name;
|
||||
for (key in value) {
|
||||
content.find('[name='+key+']').val(value[key]);
|
||||
if (value.hasOwnProperty(key)) content.find('[name='+key+']').val(value[key]);
|
||||
}
|
||||
editor._source_image_calculate_scale();
|
||||
editor._source_image_repositioned();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue