[DE][PE] File menu refactoring
This commit is contained in:
parent
08b5e32261
commit
1b5abe0aa9
|
@ -188,7 +188,7 @@ define([
|
|||
menu: undefined,
|
||||
|
||||
template: _.template([
|
||||
'<div id="fms-flex-settings">',
|
||||
'<div class="flex-settings">',
|
||||
'<table style="margin: 30px 0 0;"><tbody>',
|
||||
/** coauthoring begin **/
|
||||
'<tr class="comments">',
|
||||
|
@ -452,7 +452,7 @@ define([
|
|||
|
||||
this.btnApply.on('click', this.applySettings.bind(this));
|
||||
|
||||
this.pnlSettings = $markup.findById('#fms-flex-settings');
|
||||
this.pnlSettings = $markup.find('.flex-settings').addBack().filter('.flex-settings');
|
||||
|
||||
this.$el = $(node).html($markup);
|
||||
|
||||
|
@ -846,7 +846,7 @@ define([
|
|||
this.rendered = false;
|
||||
|
||||
this.template = _.template([
|
||||
'<div id="fms-flex-info">',
|
||||
'<div class="flex-settings">',
|
||||
'<table class="main" style="margin: 30px 0 0;">',
|
||||
'<tr>',
|
||||
'<td class="left"><label>' + this.txtPlacement + '</label></td>',
|
||||
|
@ -1052,7 +1052,7 @@ define([
|
|||
});
|
||||
this.btnApply.on('click', _.bind(this.applySettings, this));
|
||||
|
||||
this.pnlInfo = $markup.findById('#fms-flex-info');
|
||||
this.pnlInfo = $markup.find('.flex-settings').addBack().filter('.flex-settings');
|
||||
this.pnlApply = $markup.findById('#fms-flex-apply');
|
||||
|
||||
this.rendered = true;
|
||||
|
|
|
@ -120,21 +120,26 @@
|
|||
}
|
||||
}
|
||||
|
||||
#panel-settings {
|
||||
.flex-settings {
|
||||
#file-menu-panel & {
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
#fms-flex-settings {
|
||||
&.bordered {
|
||||
border-bottom: 1px solid @gray;
|
||||
}
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
#panel-settings,
|
||||
#panel-info {
|
||||
#file-menu-panel & {
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
#panel-settings {
|
||||
table {
|
||||
width: 100%;
|
||||
|
||||
|
@ -315,23 +320,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
#panel-info {
|
||||
#file-menu-panel & {
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
#fms-flex-info {
|
||||
&.bordered {
|
||||
border-bottom: 1px solid @gray;
|
||||
}
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#panel-rights {
|
||||
#file-menu-panel & {
|
||||
padding: 0 30px;
|
||||
|
|
|
@ -180,7 +180,7 @@ define([
|
|||
menu: undefined,
|
||||
|
||||
template: _.template([
|
||||
'<div id="fms-flex-settings">',
|
||||
'<div class="flex-settings">',
|
||||
'<table style="margin: 30px 0 0;"><tbody>',
|
||||
'<tr class="edit">',
|
||||
'<td class="left"><label><%= scope.txtSpellCheck %></label></td>',
|
||||
|
@ -395,7 +395,7 @@ define([
|
|||
|
||||
this.btnApply.on('click', _.bind(this.applySettings, this));
|
||||
|
||||
this.pnlSettings = $markup.findById('#fms-flex-settings');
|
||||
this.pnlSettings = $markup.find('.flex-settings').addBack().filter('.flex-settings');
|
||||
|
||||
this.$el = $(node).html($markup);
|
||||
|
||||
|
@ -752,7 +752,7 @@ define([
|
|||
this.rendered = false;
|
||||
|
||||
this.template = _.template([
|
||||
'<div id="fms-flex-info">',
|
||||
'<div class="flex-settings">',
|
||||
'<table class="main" style="margin: 30px 0 0;">',
|
||||
'<tr>',
|
||||
'<td class="left"><label>' + this.txtPlacement + '</label></td>',
|
||||
|
@ -926,7 +926,7 @@ define([
|
|||
});
|
||||
this.btnApply.on('click', _.bind(this.applySettings, this));
|
||||
|
||||
this.pnlInfo = $markup.findById('#fms-flex-info');
|
||||
this.pnlInfo = $markup.find('.flex-settings').addBack().filter('.flex-settings');
|
||||
this.pnlApply = $markup.findById('#fms-flex-apply');
|
||||
|
||||
this.rendered = true;
|
||||
|
|
|
@ -189,19 +189,22 @@
|
|||
}
|
||||
}
|
||||
|
||||
#panel-settings {
|
||||
.flex-settings {
|
||||
&.bordered {
|
||||
border-bottom: 1px solid @gray;
|
||||
}
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#panel-settings,
|
||||
#panel-info {
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
#fms-flex-settings {
|
||||
&.bordered {
|
||||
border-bottom: 1px solid @gray;
|
||||
}
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#panel-settings {
|
||||
table {
|
||||
width: 100%;
|
||||
|
||||
|
@ -385,21 +388,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
#panel-info {
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
#fms-flex-info {
|
||||
&.bordered {
|
||||
border-bottom: 1px solid @gray;
|
||||
}
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#panel-rights {
|
||||
padding: 0 30px;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue