mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Move toggling code to settingscontroller
This commit is contained in:
parent
3d67be94a1
commit
458f56f1ec
@ -14,11 +14,19 @@
|
||||
return isChecked;
|
||||
};
|
||||
|
||||
// TODO(vincz): add get/set store
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
ns.SettingsController.prototype.init = function() {
|
||||
|
||||
// Expand drawer when clicking 'Settings' tab.
|
||||
$('#settings').click(function(evt) {
|
||||
$('.right-sticky-section').toggleClass('expanded');
|
||||
$('#settings').toggleClass('has-expanded-drawer')
|
||||
});
|
||||
|
||||
// Show/hide the grid on drawing canvas:
|
||||
$.publish(Events.GRID_DISPLAY_STATE_CHANGED, [this.isShowGridChecked_()]);
|
||||
$('#show-grid').change($.proxy(function(evt) {
|
||||
|
@ -72,10 +72,6 @@ $.namespace("pskl");
|
||||
$('body').tooltip({
|
||||
selector: '[rel=tooltip]'
|
||||
});
|
||||
|
||||
$('#settings').click(function(evt) {
|
||||
$('.right-sticky-section').toggleClass('expanded');
|
||||
});
|
||||
},
|
||||
|
||||
render : function (delta) {
|
||||
|
Loading…
Reference in New Issue
Block a user