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:
@ -14,11 +14,19 @@
|
|||||||
return isChecked;
|
return isChecked;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// TODO(vincz): add get/set store
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
ns.SettingsController.prototype.init = function() {
|
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:
|
// Show/hide the grid on drawing canvas:
|
||||||
$.publish(Events.GRID_DISPLAY_STATE_CHANGED, [this.isShowGridChecked_()]);
|
$.publish(Events.GRID_DISPLAY_STATE_CHANGED, [this.isShowGridChecked_()]);
|
||||||
$('#show-grid').change($.proxy(function(evt) {
|
$('#show-grid').change($.proxy(function(evt) {
|
||||||
|
@ -72,10 +72,6 @@ $.namespace("pskl");
|
|||||||
$('body').tooltip({
|
$('body').tooltip({
|
||||||
selector: '[rel=tooltip]'
|
selector: '[rel=tooltip]'
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#settings').click(function(evt) {
|
|
||||||
$('.right-sticky-section').toggleClass('expanded');
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
render : function (delta) {
|
render : function (delta) {
|
||||||
|
Reference in New Issue
Block a user