From 9497f2da291153b9603e47b0bf28fae6b5439826 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Wed, 29 Mar 2017 12:47:57 +0300 Subject: [PATCH] [DE] refactored StatusBar --- apps/documenteditor/main/app/controller/Statusbar.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Statusbar.js b/apps/documenteditor/main/app/controller/Statusbar.js index 8ee52cf20..86d978947 100644 --- a/apps/documenteditor/main/app/controller/Statusbar.js +++ b/apps/documenteditor/main/app/controller/Statusbar.js @@ -70,7 +70,10 @@ define([ return { 'click #btn-zoom-down': _.bind(this.zoomDocument,this,'down'), 'click #btn-zoom-up': _.bind(this.zoomDocument,this,'up'), - 'click #btn-doc-lang':_.bind(this.onBtnLanguage,this) + 'click #btn-doc-lang':_.bind(this.onBtnLanguage,this), + 'click #btn-zoom-topage': _.bind(this.onBtnZoomTo, this, 'topage'), + 'click #btn-zoom-towidth': _.bind(this.onBtnZoomTo, this, 'towidth'), + 'click #btn-doc-spell': _.bind(this.onBtnSpelling, this) }; }, @@ -85,9 +88,6 @@ define([ $('.statusbar #label-zoom').css('min-width', 70); - this.statusbar.btnSetSpelling.on('click', _.bind(this.onBtnSpelling, this)); - this.statusbar.btnZoomToPage.on('click', _.bind(this.onBtnZoomTo, this, 'topage')); - this.statusbar.btnZoomToWidth.on('click', _.bind(this.onBtnZoomTo, this, 'towidth')); this.statusbar.zoomMenu.on('item:click', _.bind(this.menuZoomClick, this)); this.statusbar.btnReview.menu.on('item:toggle', _.bind(this.onMenuReviewToggle, this)); this.statusbar.btnReview.on('toggle', _.bind(this.onReviewToggle, this));