Move toggling code to settingscontroller

This commit is contained in:
Vince 2013-06-16 10:36:26 +02:00
parent 3d67be94a1
commit 458f56f1ec
2 changed files with 8 additions and 4 deletions

View File

@ -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) {

View File

@ -72,10 +72,6 @@ $.namespace("pskl");
$('body').tooltip({
selector: '[rel=tooltip]'
});
$('#settings').click(function(evt) {
$('.right-sticky-section').toggleClass('expanded');
});
},
render : function (delta) {