Skip to content

Commit

Permalink
[de] delayed download for RoleManager dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Kireyev committed Mar 27, 2024
1 parent b334bc0 commit dda5aaa
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 21 deletions.
6 changes: 3 additions & 3 deletions apps/documenteditor/main/app/controller/FormsTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@

define([
'core',
'documenteditor/main/app/view/FormsTab',
'documenteditor/main/app/view/RolesManagerDlg',
'documenteditor/main/app/view/SaveFormDlg'
'documenteditor/main/app/view/FormsTab'
], function () {
'use strict';

console.log('FormsTab controller')

DE.Controllers.FormsTab = Backbone.Controller.extend(_.extend({
models : [],
collections : [
Expand Down
5 changes: 1 addition & 4 deletions apps/documenteditor/main/app/view/RoleDeleteDlg.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@
*
*/

define([
'common/main/lib/component/Window',
'common/main/lib/component/ComboBox'
], function () { 'use strict';
define([], function () { 'use strict';

DE.Views.RoleDeleteDlg = Common.UI.Window.extend(_.extend({
options: {
Expand Down
5 changes: 1 addition & 4 deletions apps/documenteditor/main/app/view/RoleEditDlg.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@
*
*/

define([
'common/main/lib/component/Window',
'common/main/lib/component/InputField'
], function () { 'use strict';
define([], function () { 'use strict';

DE.Views.RoleEditDlg = Common.UI.Window.extend(_.extend({
options: {
Expand Down
7 changes: 2 additions & 5 deletions apps/documenteditor/main/app/view/RolesManagerDlg.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,8 @@
*
*/

define([ 'text!documenteditor/main/app/template/RolesManagerDlg.template',
'common/main/lib/view/AdvancedSettingsWindow',
'common/main/lib/component/ListView',
'documenteditor/main/app/view/RoleEditDlg',
'documenteditor/main/app/view/RoleDeleteDlg'
define([
'text!documenteditor/main/app/template/RolesManagerDlg.template'
], function (contentTemplate) {
'use strict';

Expand Down
8 changes: 3 additions & 5 deletions apps/documenteditor/main/app/view/SaveFormDlg.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,11 @@
*
*/

define([ 'common/main/lib/view/AdvancedSettingsWindow',
'common/main/lib/component/ListView',
'documenteditor/main/app/view/RoleEditDlg',
'documenteditor/main/app/view/RoleDeleteDlg'
], function (contentTemplate) {
define([], function () {
'use strict';

console.log('SaveFormDlg view')

DE.Views = DE.Views || {};

DE.Views.SaveFormDlg = Common.Views.AdvancedSettingsWindow.extend(_.extend({
Expand Down
4 changes: 4 additions & 0 deletions apps/documenteditor/main/app_dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ require([
'documenteditor/main/app/view/TableToTextDialog',
'documenteditor/main/app/view/TextToTableDialog',
'documenteditor/main/app/view/WatermarkSettingsDialog',
'documenteditor/main/app/view/RoleDeleteDlg',
'documenteditor/main/app/view/RoleEditDlg',
'documenteditor/main/app/view/RolesManagerDlg',
'documenteditor/main/app/view/SaveFormDlg',
];

window.compareVersions = true;
Expand Down
4 changes: 4 additions & 0 deletions apps/documenteditor/main/app_pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ require([
'documenteditor/main/app/view/TableToTextDialog',
'documenteditor/main/app/view/TextToTableDialog',
'documenteditor/main/app/view/WatermarkSettingsDialog',
'documenteditor/main/app/view/RoleDeleteDlg',
'documenteditor/main/app/view/RoleEditDlg',
'documenteditor/main/app/view/RolesManagerDlg',
'documenteditor/main/app/view/SaveFormDlg',
], function () {
});

0 comments on commit dda5aaa

Please sign in to comment.