[SSE] Refactoring

This commit is contained in:
Julia Radzhabova 2022-06-21 10:42:57 +03:00
parent e3114cfa83
commit be66e0fcf0
4 changed files with 5 additions and 6 deletions

View file

@ -31,7 +31,7 @@
<div id="panel-createnew" class="content-box"></div>
<div id="panel-info" class="content-box"></div>
<div id="panel-rights" class="content-box"></div>
<div id="panel-settings-general" class="content-box"></div>
<div id="panel-settings" class="content-box"></div>
<div id="panel-help" class="content-box"></div>
<div id="panel-protect" class="content-box"></div>
<div id="panel-print" class="content-box"></div>

View file

@ -336,7 +336,7 @@ define([
if (!this.panels) {
this.panels = {
'opts' : (new SSE.Views.FileMenuPanels.MainSettingsGeneral({menu:this})).render(this.$el.find('#panel-settings-general')),
'opts' : (new SSE.Views.FileMenuPanels.MainSettingsGeneral({menu:this})).render(this.$el.find('#panel-settings')),
'info' : (new SSE.Views.FileMenuPanels.DocumentInfo({menu:this})).render(this.$el.find('#panel-info')),
'rights' : (new SSE.Views.FileMenuPanels.DocumentRights({menu:this})).render(this.$el.find('#panel-rights'))
};

View file

@ -183,7 +183,7 @@ define([
});
SSE.Views.FileMenuPanels.MainSettingsGeneral = Common.UI.BaseView.extend(_.extend({
el: '#panel-settings-general',
el: '#panel-settings',
menu: undefined,
template: _.template([

View file

@ -188,8 +188,7 @@
}
}
#panel-settings-general,
#panel-settings-print {
#panel-settings {
& > div {
width: 100%;
height: 100%;
@ -205,7 +204,7 @@
flex-direction: column;
}
#panel-settings-general {
#panel-settings {
padding: 0;
#id-settings-menu {