[DE] Change settings for table of contents.
This commit is contained in:
parent
6ee6336001
commit
dc2475af7a
|
@ -49,7 +49,7 @@ define([
|
||||||
DE.Views.TableOfContentsSettings = Common.Views.AdvancedSettingsWindow.extend(_.extend({
|
DE.Views.TableOfContentsSettings = Common.Views.AdvancedSettingsWindow.extend(_.extend({
|
||||||
options: {
|
options: {
|
||||||
contentWidth: 500,
|
contentWidth: 500,
|
||||||
height: 445
|
height: 430
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize : function(options) {
|
initialize : function(options) {
|
||||||
|
@ -66,8 +66,8 @@ define([
|
||||||
'<td class="padding-small">',
|
'<td class="padding-small">',
|
||||||
'<div id="tableofcontents-chb-pages"></div>',
|
'<div id="tableofcontents-chb-pages"></div>',
|
||||||
'</td>',
|
'</td>',
|
||||||
'<td rowspan="6" class="padding-small" style="vertical-align: top;">',
|
'<td rowspan="5" class="padding-small" style="vertical-align: top;">',
|
||||||
'<div style="border: 1px solid #cbcbcb;width: 230px; height: 197px; float: right;">',
|
'<div style="border: 1px solid #cbcbcb;width: 230px; height: 172px; float: right;">',
|
||||||
'<div id="tableofcontents-img" style="width: 100%; height: 100%;"></div>',
|
'<div id="tableofcontents-img" style="width: 100%; height: 100%;"></div>',
|
||||||
'</div>',
|
'</div>',
|
||||||
'</td>',
|
'</td>',
|
||||||
|
@ -83,14 +83,9 @@ define([
|
||||||
'<div id="tableofcontents-combo-leader" class="input-group-nr" style="display: inline-block; width:95px; margin-left: 10px;"></div>',
|
'<div id="tableofcontents-combo-leader" class="input-group-nr" style="display: inline-block; width:95px; margin-left: 10px;"></div>',
|
||||||
'</td>',
|
'</td>',
|
||||||
'</tr>',
|
'</tr>',
|
||||||
'<tr>',
|
|
||||||
'<td class="padding-small">',
|
|
||||||
'<div id="tableofcontents-chb-links"></div>',
|
|
||||||
'</td>',
|
|
||||||
'</tr>',
|
|
||||||
'<tr>',
|
'<tr>',
|
||||||
'<td class="padding-large">',
|
'<td class="padding-large">',
|
||||||
'<div id="tableofcontents-chb-underline"></div>',
|
'<div id="tableofcontents-chb-links"></div>',
|
||||||
'</td>',
|
'</td>',
|
||||||
'</tr>',
|
'</tr>',
|
||||||
'<tr>',
|
'<tr>',
|
||||||
|
@ -102,7 +97,7 @@ define([
|
||||||
'</tr>',
|
'</tr>',
|
||||||
'<tr>',
|
'<tr>',
|
||||||
'<td class="padding-small" style="vertical-align: top;">',
|
'<td class="padding-small" style="vertical-align: top;">',
|
||||||
'<div id="tableofcontents-from-levels">',
|
'<div id="tableofcontents-from-levels" style="width:220px;">',
|
||||||
'<label class="input-label">' + me.textLevels + '</label>',
|
'<label class="input-label">' + me.textLevels + '</label>',
|
||||||
'<div id="tableofcontents-spin-levels" style="display: inline-block; width:95px; margin-left: 10px;"></div>',
|
'<div id="tableofcontents-spin-levels" style="display: inline-block; width:95px; margin-left: 10px;"></div>',
|
||||||
'</div>',
|
'</div>',
|
||||||
|
@ -183,17 +178,8 @@ define([
|
||||||
labelText: this.strLinks
|
labelText: this.strLinks
|
||||||
});
|
});
|
||||||
this.chLinks.on('change', _.bind(function(field, newValue, oldValue, eOpts){
|
this.chLinks.on('change', _.bind(function(field, newValue, oldValue, eOpts){
|
||||||
this.chUnderline.setDisabled(field.getValue()!=='checked');
|
|
||||||
if (this._changedProps) {
|
|
||||||
}
|
|
||||||
}, this));
|
}, this));
|
||||||
|
|
||||||
this.chUnderline = new Common.UI.CheckBox({
|
|
||||||
el: $('#tableofcontents-chb-underline'),
|
|
||||||
labelText: this.strUnderline,
|
|
||||||
disabled: true
|
|
||||||
});
|
|
||||||
|
|
||||||
this.radioLevels = new Common.UI.RadioBox({
|
this.radioLevels = new Common.UI.RadioBox({
|
||||||
el: $('#tableofcontents-radio-levels'),
|
el: $('#tableofcontents-radio-levels'),
|
||||||
labelText: this.textRadioLevels,
|
labelText: this.textRadioLevels,
|
||||||
|
@ -359,7 +345,6 @@ define([
|
||||||
strShowPages: 'Show page numbers',
|
strShowPages: 'Show page numbers',
|
||||||
strAlign: 'Right align page numbers',
|
strAlign: 'Right align page numbers',
|
||||||
strLinks: 'Format Table of Contents as links',
|
strLinks: 'Format Table of Contents as links',
|
||||||
strUnderline: 'Underline links',
|
|
||||||
textNone: 'None',
|
textNone: 'None',
|
||||||
textRadioLevels: 'Outline levels',
|
textRadioLevels: 'Outline levels',
|
||||||
textRadioStyles: 'Selected styles',
|
textRadioStyles: 'Selected styles',
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 941 B After Width: | Height: | Size: 733 B |
Binary file not shown.
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 1.6 KiB |
Loading…
Reference in a new issue