diff --git a/apps/documenteditor/main/app/template/ControlSettingsDialog.template b/apps/documenteditor/main/app/template/ControlSettingsDialog.template
new file mode 100644
index 000000000..1598c4200
--- /dev/null
+++ b/apps/documenteditor/main/app/template/ControlSettingsDialog.template
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+
\ No newline at end of file
diff --git a/apps/documenteditor/main/app/view/ControlSettingsDialog.js b/apps/documenteditor/main/app/view/ControlSettingsDialog.js
index d82b927ee..e8553800f 100644
--- a/apps/documenteditor/main/app/view/ControlSettingsDialog.js
+++ b/apps/documenteditor/main/app/view/ControlSettingsDialog.js
@@ -39,17 +39,19 @@
*
*/
-define([
+define([ 'text!documenteditor/main/app/template/ControlSettingsDialog.template',
'common/main/lib/util/utils',
'common/main/lib/component/CheckBox',
'common/main/lib/component/InputField',
'common/main/lib/view/AdvancedSettingsWindow'
-], function () { 'use strict';
+], function (contentTemplate) { 'use strict';
DE.Views.ControlSettingsDialog = Common.Views.AdvancedSettingsWindow.extend(_.extend({
options: {
contentWidth: 310,
- height: 412
+ height: 412,
+ toggleGroup: 'control-adv-settings-group',
+ storageName: 'de-control-settings-adv-category'
},
initialize : function(options) {
@@ -57,83 +59,13 @@ define([
_.extend(this.options, {
title: this.textTitle,
- template: [
- '',
- '
',
- '
',
- '
',
- '',
- '',
- '',
- '',
- ' | ',
- '
',
- '',
- '',
- '',
- '',
- ' | ',
- '
',
- '',
- '',
- '',
- ' | ',
- '
',
- '
',
- '
',
- '',
- '',
- '',
- ' | ',
- '
',
- '',
- '',
- '',
- ' | ',
- '',
- '',
- ' | ',
- '
',
- '',
- '',
- '',
- ' | ',
- '',
- '',
- ' | ',
- '
',
- '',
- '',
- '',
- ' | ',
- '
',
- '
',
- '
',
- '',
- '',
- '',
- ' | ',
- '
',
- '',
- '',
- '',
- ' | ',
- '
',
- '',
- '',
- '',
- ' | ',
- '
',
- '',
- '',
- '',
- ' | ',
- '
',
- '
',
- '
',
- '
',
- '
'
- ].join('')
+ items: [
+ {panelId: 'id-adv-control-settings-general', panelCaption: this.strGeneral},
+ {panelId: 'id-adv-control-settings-lock', panelCaption: this.textLock}
+ ],
+ contentTemplate: _.template(contentTemplate)({
+ scope: this
+ })
}, options);
this.handler = options.handler;
@@ -252,6 +184,10 @@ define([
afterRender: function() {
this.updateThemeColors();
this._setDefaults(this.props);
+ if (this.storageName) {
+ var value = Common.localStorage.getItem(this.storageName);
+ this.setActiveCategory((value!==null) ? parseInt(value) : 0);
+ }
},
show: function() {
@@ -352,7 +288,8 @@ define([
textNewColor: 'Add New Custom Color',
textApplyAll: 'Apply to All',
textAppearance: 'Appearance',
- textSystemColor: 'System'
+ textSystemColor: 'System',
+ strGeneral: 'General'
}, DE.Views.ControlSettingsDialog || {}))
});
\ No newline at end of file