[DE] Fix Bug 37073 + Table of contents refactoring.
This commit is contained in:
parent
386d7739f1
commit
0bde345105
|
@ -199,7 +199,7 @@ define([
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
me.btnContentsUpdate.updateHint(me.tipContentsUpdate);
|
me.btnContentsUpdate.updateHint([me.textUpdateAll, me.tipContentsUpdate]);
|
||||||
me.btnContentsUpdate.setMenu(new Common.UI.Menu({
|
me.btnContentsUpdate.setMenu(new Common.UI.Menu({
|
||||||
items: [
|
items: [
|
||||||
{caption: me.textUpdateAll, value: 'all'},
|
{caption: me.textUpdateAll, value: 'all'},
|
||||||
|
|
|
@ -91,8 +91,8 @@ define([
|
||||||
'<tr>',
|
'<tr>',
|
||||||
'<td class="padding-small">',
|
'<td class="padding-small">',
|
||||||
'<label class="input-label padding-small" style="display: block;">' + me.textBuildTable + '</label>',
|
'<label class="input-label padding-small" style="display: block;">' + me.textBuildTable + '</label>',
|
||||||
'<div id="tableofcontents-radio-styles" class="padding-small" style="display: block;"></div>',
|
'<div id="tableofcontents-radio-levels" class="padding-small" style="display: block;"></div>',
|
||||||
'<div id="tableofcontents-radio-levels" class="" style="display: block;"></div>',
|
'<div id="tableofcontents-radio-styles" class="" style="display: block;"></div>',
|
||||||
'</td>',
|
'</td>',
|
||||||
'</tr>',
|
'</tr>',
|
||||||
'<tr>',
|
'<tr>',
|
||||||
|
@ -466,6 +466,13 @@ define([
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
styles.sort(function(a, b){
|
||||||
|
var aname = a.name.toLocaleLowerCase(),
|
||||||
|
bname = b.name.toLocaleLowerCase();
|
||||||
|
if (aname < bname) return -1;
|
||||||
|
if (aname > bname) return 1;
|
||||||
|
return 0;
|
||||||
|
});
|
||||||
this.stylesLevels.reset(styles);
|
this.stylesLevels.reset(styles);
|
||||||
if (this.spnLevels.isDisabled()) {
|
if (this.spnLevels.isDisabled()) {
|
||||||
this.radioStyles.setValue(true);
|
this.radioStyles.setValue(true);
|
||||||
|
|
Loading…
Reference in a new issue