[DE] Fix view mode
This commit is contained in:
parent
1ad49db48c
commit
e1142bac16
|
@ -618,7 +618,7 @@ define([
|
||||||
comments.setPreviewMode(disable);
|
comments.setPreviewMode(disable);
|
||||||
|
|
||||||
var leftMenu = app.getController('LeftMenu');
|
var leftMenu = app.getController('LeftMenu');
|
||||||
leftMenu.leftMenu.getMenu('file').miProtect.setDisabled(disable);
|
leftMenu.leftMenu.getMenu('file').getButton('protect').setDisabled(disable);
|
||||||
leftMenu.setPreviewMode(disable);
|
leftMenu.setPreviewMode(disable);
|
||||||
|
|
||||||
if (this.view) {
|
if (this.view) {
|
||||||
|
|
|
@ -150,6 +150,11 @@ define([
|
||||||
canFocused: false
|
canFocused: false
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if ( !!this.options.miProtect ) {
|
||||||
|
this.miProtect.setDisabled(this.options.miProtect.isDisabled());
|
||||||
|
delete this.options.miProtect;
|
||||||
|
}
|
||||||
|
|
||||||
this.miRecent = new Common.UI.MenuItem({
|
this.miRecent = new Common.UI.MenuItem({
|
||||||
el : $markup.elementById('#fm-btn-recent'),
|
el : $markup.elementById('#fm-btn-recent'),
|
||||||
action : 'recent',
|
action : 'recent',
|
||||||
|
@ -418,6 +423,9 @@ define([
|
||||||
} else
|
} else
|
||||||
if (type == 'rename') {
|
if (type == 'rename') {
|
||||||
return this.options.miRename ? this.options.miRename : (this.options.miRename = new Common.UI.MenuItem({}));
|
return this.options.miRename ? this.options.miRename : (this.options.miRename = new Common.UI.MenuItem({}));
|
||||||
|
} else
|
||||||
|
if (type == 'protect') {
|
||||||
|
return this.options.miProtect ? this.options.miProtect : (this.options.miProtect = new Common.UI.MenuItem({}));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (type == 'save') {
|
if (type == 'save') {
|
||||||
|
@ -425,6 +433,9 @@ define([
|
||||||
} else
|
} else
|
||||||
if (type == 'rename') {
|
if (type == 'rename') {
|
||||||
return this.miRename;
|
return this.miRename;
|
||||||
|
}else
|
||||||
|
if (type == 'protect') {
|
||||||
|
return this.miProtect;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue