[DE] Fix file info in view mode
This commit is contained in:
parent
230f9d4d88
commit
9d0fda6105
|
@ -933,7 +933,7 @@ define([
|
||||||
'<tr style="height: 5px;"></tr>',
|
'<tr style="height: 5px;"></tr>',
|
||||||
'</table>',
|
'</table>',
|
||||||
'</div>',
|
'</div>',
|
||||||
'<div>',
|
'<div id="fms-flex-apply">',
|
||||||
'<table class="main" style="margin: 10px 0;">',
|
'<table class="main" style="margin: 10px 0;">',
|
||||||
'<tr>',
|
'<tr>',
|
||||||
'<td class="left"></td>',
|
'<td class="left"></td>',
|
||||||
|
@ -1053,6 +1053,7 @@ define([
|
||||||
this.btnApply.on('click', _.bind(this.applySettings, this));
|
this.btnApply.on('click', _.bind(this.applySettings, this));
|
||||||
|
|
||||||
this.pnlInfo = $markup.findById('#fms-flex-info');
|
this.pnlInfo = $markup.findById('#fms-flex-info');
|
||||||
|
this.pnlApply = $markup.findById('#fms-flex-apply');
|
||||||
|
|
||||||
this.rendered = true;
|
this.rendered = true;
|
||||||
|
|
||||||
|
@ -1081,8 +1082,8 @@ define([
|
||||||
|
|
||||||
this.updateStatisticInfo();
|
this.updateStatisticInfo();
|
||||||
this.updateFileInfo();
|
this.updateFileInfo();
|
||||||
this.updateScroller();
|
|
||||||
this.scroller && this.scroller.scrollTop(0);
|
this.scroller && this.scroller.scrollTop(0);
|
||||||
|
this.updateScroller();
|
||||||
},
|
},
|
||||||
|
|
||||||
hide: function() {
|
hide: function() {
|
||||||
|
@ -1235,7 +1236,7 @@ define([
|
||||||
setMode: function(mode) {
|
setMode: function(mode) {
|
||||||
this.mode = mode;
|
this.mode = mode;
|
||||||
this.inputAuthor.setVisible(mode.isEdit);
|
this.inputAuthor.setVisible(mode.isEdit);
|
||||||
this.btnApply.setVisible(mode.isEdit);
|
this.pnlApply.toggleClass('hidden', !mode.isEdit);
|
||||||
this.tblAuthor.find('.close').toggleClass('hidden', !mode.isEdit);
|
this.tblAuthor.find('.close').toggleClass('hidden', !mode.isEdit);
|
||||||
if (!mode.isEdit) {
|
if (!mode.isEdit) {
|
||||||
this.inputTitle._input.attr('placeholder', '');
|
this.inputTitle._input.attr('placeholder', '');
|
||||||
|
|
Loading…
Reference in a new issue