Skip to content

Commit

Permalink
disabled events toggle in k12 minimal mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Helioviewer-Kirill committed Jun 18, 2018
1 parent 038a546 commit 34d820e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions resources/js/Events/EventManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,9 @@ var EventManager = Class.extend({
);
}
});

this._toggleEvents();
if(outputType != 'minimal'){
this._toggleEvents();
}
},

/**
Expand Down
8 changes: 4 additions & 4 deletions resources/js/UI/ImagePresets.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ var UserLayersPresets = Class.extend({

$('#image-layer-select').change(function(event){
event.stopPropagation();
var optionSelected = $("option:selected", this);
self._loadData(optionSelected);
var optionSelected = $("option:selected", this);
self._loadData(optionSelected);
});

$('.item-list, .image-layer-switch').click(function(event){
Expand Down Expand Up @@ -202,10 +202,10 @@ var UserLayersPresets = Class.extend({
var selectValue = Helioviewer.userSettings.get('state.dropdownLayerSelectID');
if(typeof selectValue == 'undefined' || $('#image-layer-select').length < selectValue){
selectValue = 0;
Helioviewer.userSettings.set('state.dropdownLayerSelectID', 0)
Helioviewer.userSettings.set('state.dropdownLayerSelectID', 0);
}

$("#image-layer-select").val(selectValue);
$("#image-layer-select").val(selectValue);
}

},
Expand Down

0 comments on commit 34d820e

Please sign in to comment.