From efa385f924efbfed572a41091610012daceecaeb Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 23 Oct 2017 10:26:38 +0300 Subject: [PATCH] Bug with view signature settings. --- apps/documenteditor/main/app/view/SignatureSettings.js | 5 +++-- apps/presentationeditor/main/app/view/SignatureSettings.js | 3 ++- apps/spreadsheeteditor/main/app/view/SignatureSettings.js | 5 +++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/documenteditor/main/app/view/SignatureSettings.js b/apps/documenteditor/main/app/view/SignatureSettings.js index d05122ec3..6803cdcb3 100644 --- a/apps/documenteditor/main/app/view/SignatureSettings.js +++ b/apps/documenteditor/main/app/view/SignatureSettings.js @@ -132,6 +132,9 @@ define([ this.cntRequestedSign = $('#signature-requested-sign'); this.cntValidSign = $('#signature-valid-sign'); this.cntInvalidSign = $('#signature-invalid-sign'); + + this.$el.on('click', '.signature-sign-link', _.bind(this.onSign, this)); + this.$el.on('click', '.signature-view-link', _.bind(this.onViewSignature, this)); }, setApi: function(api) { @@ -200,8 +203,6 @@ define([ this.$linksSign = $('.signature-sign-link', this.$el); this.$linksView = $('.signature-view-link', this.$el); - this.$el.on('click', '.signature-sign-link', _.bind(this.onSign, this)); - this.$el.on('click', '.signature-view-link', _.bind(this.onViewSignature, this)); }, addVisibleSign: function(btn) { diff --git a/apps/presentationeditor/main/app/view/SignatureSettings.js b/apps/presentationeditor/main/app/view/SignatureSettings.js index 7a9a52228..f0d85fb1d 100644 --- a/apps/presentationeditor/main/app/view/SignatureSettings.js +++ b/apps/presentationeditor/main/app/view/SignatureSettings.js @@ -109,6 +109,8 @@ define([ this.cntValidSign = $('#signature-valid-sign'); this.cntInvalidSign = $('#signature-invalid-sign'); + + this.$el.on('click', '.signature-view-link', _.bind(this.onViewSignature, this)); }, setApi: function(api) { @@ -170,7 +172,6 @@ define([ // this.cntInvalidSign.html(this.templateValid({signatures: [{name: 'Mary White', guid: '111', date: '18/05/2017'}, {name: 'John Black', guid: '456', date: '18/05/2017'}], header: this.strInvalid})); this.$linksView = $('.signature-view-link', this.$el); - this.$el.on('click', '.signature-view-link', _.bind(this.onViewSignature, this)); }, addInvisibleSign: function(btn) { diff --git a/apps/spreadsheeteditor/main/app/view/SignatureSettings.js b/apps/spreadsheeteditor/main/app/view/SignatureSettings.js index 32241a8c5..c11eaf545 100644 --- a/apps/spreadsheeteditor/main/app/view/SignatureSettings.js +++ b/apps/spreadsheeteditor/main/app/view/SignatureSettings.js @@ -132,6 +132,9 @@ define([ this.cntRequestedSign = $('#signature-requested-sign'); this.cntValidSign = $('#signature-valid-sign'); this.cntInvalidSign = $('#signature-invalid-sign'); + + this.$el.on('click', '.signature-sign-link', _.bind(this.onSign, this)); + this.$el.on('click', '.signature-view-link', _.bind(this.onViewSignature, this)); }, setApi: function(api) { @@ -200,8 +203,6 @@ define([ this.$linksSign = $('.signature-sign-link', this.$el); this.$linksView = $('.signature-view-link', this.$el); - this.$el.on('click', '.signature-sign-link', _.bind(this.onSign, this)); - this.$el.on('click', '.signature-view-link', _.bind(this.onViewSignature, this)); }, addVisibleSign: function(btn) {