[DE] SignDialog, SignSettingsDialog ->Common.

This commit is contained in:
Julia Radzhabova 2017-05-26 14:23:05 +03:00
parent 75ee04008b
commit ad866734b6
5 changed files with 17 additions and 17 deletions

View file

@ -49,7 +49,7 @@ define([
'common/main/lib/component/ComboBoxFonts' 'common/main/lib/component/ComboBoxFonts'
], function () { 'use strict'; ], function () { 'use strict';
DE.Views.SignDialog = Common.UI.Window.extend(_.extend({ Common.Views.SignDialog = Common.UI.Window.extend(_.extend({
options: { options: {
width: 350, width: 350,
style: 'min-width: 350px;', style: 'min-width: 350px;',
@ -345,5 +345,5 @@ define([
textBold: 'Bold', textBold: 'Bold',
textItalic: 'Italic' textItalic: 'Italic'
}, DE.Views.SignDialog || {})) }, Common.Views.SignDialog || {}))
}); });

View file

@ -49,7 +49,7 @@ define([
'common/main/lib/component/Window' 'common/main/lib/component/Window'
], function () { 'use strict'; ], function () { 'use strict';
DE.Views.SignSettingsDialog = Common.UI.Window.extend(_.extend({ Common.Views.SignSettingsDialog = Common.UI.Window.extend(_.extend({
options: { options: {
width: 350, width: 350,
style: 'min-width: 350px;', style: 'min-width: 350px;',
@ -199,5 +199,5 @@ define([
textAllowComment: 'Allow signer to add comment in the signature dialog', textAllowComment: 'Allow signer to add comment in the signature dialog',
textShowDate: 'Show sign date in signature line', textShowDate: 'Show sign date in signature line',
textTitle: 'Signature Settings' textTitle: 'Signature Settings'
}, DE.Views.SignSettingsDialog || {})) }, Common.Views.SignSettingsDialog || {}))
}); });

View file

@ -43,10 +43,10 @@
define([ define([
'core', 'core',
'common/main/lib/util/Shortcuts', 'common/main/lib/util/Shortcuts',
'common/main/lib/view/SignSettingsDialog',
'common/main/lib/view/SignDialog',
'documenteditor/main/app/view/LeftMenu', 'documenteditor/main/app/view/LeftMenu',
'documenteditor/main/app/view/FileMenu', 'documenteditor/main/app/view/FileMenu'
'documenteditor/main/app/view/SignSettingsDialog',
'documenteditor/main/app/view/SignDialog'
], function () { ], function () {
'use strict'; 'use strict';
@ -677,7 +677,7 @@ define([
addVisibleSign: function(menu) { addVisibleSign: function(menu) {
var me = this, var me = this,
win = new DE.Views.SignSettingsDialog({ win = new Common.Views.SignSettingsDialog({
handler: function(dlg, result) { handler: function(dlg, result) {
if (result == 'ok') { if (result == 'ok') {
me.api.asc_AddSignatureLine2(dlg.getSettings()); me.api.asc_AddSignatureLine2(dlg.getSettings());
@ -694,7 +694,7 @@ define([
addInvisibleSign: function(menu) { addInvisibleSign: function(menu) {
var me = this, var me = this,
win = new DE.Views.SignDialog({ win = new Common.Views.SignDialog({
api: me.api, api: me.api,
signType: 'invisible', signType: 'invisible',
handler: function(dlg, result) { handler: function(dlg, result) {

View file

@ -49,11 +49,11 @@ define([
'common/main/lib/component/Menu', 'common/main/lib/component/Menu',
'common/main/lib/view/InsertTableDialog', 'common/main/lib/view/InsertTableDialog',
'common/main/lib/view/CopyWarningDialog', 'common/main/lib/view/CopyWarningDialog',
'common/main/lib/view/SignDialog',
'documenteditor/main/app/view/DropcapSettingsAdvanced', 'documenteditor/main/app/view/DropcapSettingsAdvanced',
'documenteditor/main/app/view/HyperlinkSettingsDialog', 'documenteditor/main/app/view/HyperlinkSettingsDialog',
'documenteditor/main/app/view/ParagraphSettingsAdvanced', 'documenteditor/main/app/view/ParagraphSettingsAdvanced',
'documenteditor/main/app/view/TableSettingsAdvanced', 'documenteditor/main/app/view/TableSettingsAdvanced'
'documenteditor/main/app/view/SignDialog'
], function ($, _, Backbone, gateway) { 'use strict'; ], function ($, _, Backbone, gateway) { 'use strict';
DE.Views.DocumentHolder = Backbone.View.extend(_.extend({ DE.Views.DocumentHolder = Backbone.View.extend(_.extend({
@ -739,7 +739,7 @@ define([
me.fontStore.add(arr); me.fontStore.add(arr);
} }
var win = new DE.Views.SignDialog({ var win = new Common.Views.SignDialog({
api: me.api, api: me.api,
signType: 'visible', signType: 'visible',
fontStore: me.fontStore, fontStore: me.fontStore,

View file

@ -44,8 +44,8 @@ define([
'underscore', 'underscore',
'backbone', 'backbone',
'common/main/lib/component/Button', 'common/main/lib/component/Button',
'documenteditor/main/app/view/SignSettingsDialog', 'common/main/lib/view/SignDialog',
'documenteditor/main/app/view/SignDialog' 'common/main/lib/view/SignSettingsDialog'
], function (menuTemplate, $, _, Backbone) { ], function (menuTemplate, $, _, Backbone) {
'use strict'; 'use strict';
@ -206,7 +206,7 @@ define([
addVisibleSign: function(btn) { addVisibleSign: function(btn) {
var me = this, var me = this,
win = new DE.Views.SignSettingsDialog({ win = new Common.Views.SignSettingsDialog({
handler: function(dlg, result) { handler: function(dlg, result) {
if (result == 'ok') { if (result == 'ok') {
me.api.asc_AddSignatureLine2(dlg.getSettings()); me.api.asc_AddSignatureLine2(dlg.getSettings());
@ -220,7 +220,7 @@ define([
addInvisibleSign: function(btn) { addInvisibleSign: function(btn) {
var me = this, var me = this,
win = new DE.Views.SignDialog({ win = new Common.Views.SignDialog({
api: me.api, api: me.api,
signType: 'invisible', signType: 'invisible',
handler: function(dlg, result) { handler: function(dlg, result) {
@ -253,7 +253,7 @@ define([
me.fontStore.add(arr); me.fontStore.add(arr);
} }
var win = new DE.Views.SignDialog({ var win = new Common.Views.SignDialog({
api: me.api, api: me.api,
signType: 'visible', signType: 'visible',
fontStore: me.fontStore, fontStore: me.fontStore,