diff --git a/apps/documenteditor/main/app/controller/LeftMenu.js b/apps/documenteditor/main/app/controller/LeftMenu.js index 7a299673b..89703bcf0 100644 --- a/apps/documenteditor/main/app/controller/LeftMenu.js +++ b/apps/documenteditor/main/app/controller/LeftMenu.js @@ -680,8 +680,7 @@ define([ win = new DE.Views.SignSettingsDialog({ handler: function(dlg, result) { if (result == 'ok') { - var props = dlg.getSettings(); - // me.api.asc_addSignature(dlg.getSettings()); + me.api.asc_AddSignatureLine2(dlg.getSettings()); } Common.NotificationCenter.trigger('edit:complete'); } @@ -702,7 +701,7 @@ define([ handler: function(dlg, result) { if (result == 'ok') { var props = dlg.getSettings(); - // me.api.asc_addInvisibleSignature(dlg.getSettings()); + me.api.asc_Sign(); } Common.NotificationCenter.trigger('edit:complete'); } diff --git a/apps/documenteditor/main/app/view/FileMenuPanels.js b/apps/documenteditor/main/app/view/FileMenuPanels.js index 80e4b6b3d..0a89d76dc 100644 --- a/apps/documenteditor/main/app/view/FileMenuPanels.js +++ b/apps/documenteditor/main/app/view/FileMenuPanels.js @@ -1187,12 +1187,14 @@ define([ }, updateSignatures: function(){ - // this.cntRequestedSign.html(this.templateRequested({signatures: this.api.asc_getRequestedSignatures(), header: this.strRequested})); + var requested = this.api.asc_getRequestSignatures(), + valid = this.api.asc_getSignatures(); + // this.cntRequestedSign.html(this.templateRequested({signatures: this.api.asc_getRequestSignatures(), header: this.strRequested})); // this.cntValidSign.html(this.templateValid({signatures: this.api.asc_getValidSignatures(), header: this.strValid})); // this.cntInvalidSign.html(this.templateInvalid({signatures: this.api.asc_getInvalidSignatures(), header: this.strInvalid})); - this.cntRequestedSign.html(this.templateRequested({signatures: ['Hammish Mitchell', 'Someone Somewhere', 'Mary White', 'John Black'], header: this.strRequested})); - this.cntValidSign.html(this.templateValid({signatures: [{name: 'Hammish Mitchell', date: '18/05/2017'}, {name: 'Someone Somewhere', date: '18/05/2017'}], header: this.strValid})); - this.cntInvalidSign.html(this.templateValid({signatures: [{name: 'Mary White', date: '18/05/2017'}, {name: 'John Black', date: '18/05/2017'}], header: this.strInvalid})); + // this.cntRequestedSign.html(this.templateRequested({signatures: ['Hammish Mitchell', 'Someone Somewhere', 'Mary White', 'John Black'], header: this.strRequested})); + // this.cntValidSign.html(this.templateValid({signatures: [{name: 'Hammish Mitchell', date: '18/05/2017'}, {name: 'Someone Somewhere', date: '18/05/2017'}], header: this.strValid})); + // this.cntInvalidSign.html(this.templateValid({signatures: [{name: 'Mary White', date: '18/05/2017'}, {name: 'John Black', date: '18/05/2017'}], header: this.strInvalid})); }, strProtect: 'Protect Document', diff --git a/apps/documenteditor/main/app/view/SignSettingsDialog.js b/apps/documenteditor/main/app/view/SignSettingsDialog.js index d9123ce64..177e50ced 100644 --- a/apps/documenteditor/main/app/view/SignSettingsDialog.js +++ b/apps/documenteditor/main/app/view/SignSettingsDialog.js @@ -82,7 +82,6 @@ define([ '', '', '', - '
', '
', '', '