diff --git a/apps/common/main/lib/view/ReviewChanges.js b/apps/common/main/lib/view/ReviewChanges.js index 852e57d284..f017eb0979 100644 --- a/apps/common/main/lib/view/ReviewChanges.js +++ b/apps/common/main/lib/view/ReviewChanges.js @@ -438,6 +438,12 @@ define([ '' + ''; + function _click_turnpreview(btn, e) { + if (this.appConfig.canReview) { + Common.NotificationCenter.trigger('reviewchanges:turn', btn.pressed ? 'on' : 'off'); + } + }; + function setEvents() { var me = this; @@ -466,12 +472,6 @@ define([ me.fireEvent('reviewchange:reject', [menu, item]); }); - function _click_turnpreview(btn, e) { - if (me.appConfig.canReview) { - Common.NotificationCenter.trigger('reviewchanges:turn', btn.pressed ? 'on' : 'off'); - } - }; - this.btnsTurnReview.forEach(function (button) { button.on('click', _click_turnpreview.bind(me)); Common.NotificationCenter.trigger('edit:complete', me);