[Desktop] Bug 31337. Правка к ревизии 8092 (7fe0b1676024). "Autorecover" только для локальных файлов.
This commit is contained in:
parent
64b8732bdc
commit
38db9b32cb
|
@ -268,7 +268,7 @@ define([
|
||||||
this.mode = mode;
|
this.mode = mode;
|
||||||
$('tr.edit', this.el)[mode.isEdit?'show':'hide']();
|
$('tr.edit', this.el)[mode.isEdit?'show':'hide']();
|
||||||
$('tr.autosave', this.el)[mode.isEdit && mode.canAutosave ? 'show' : 'hide']();
|
$('tr.autosave', this.el)[mode.isEdit && mode.canAutosave ? 'show' : 'hide']();
|
||||||
if (this.mode.isDesktopApp) {
|
if (this.mode.isDesktopApp && this.mode.isOffline) {
|
||||||
this.chAutosave.setCaption(this.strAutoRecover);
|
this.chAutosave.setCaption(this.strAutoRecover);
|
||||||
this.lblAutosave.text(this.textAutoRecover);
|
this.lblAutosave.text(this.textAutoRecover);
|
||||||
}
|
}
|
||||||
|
|
|
@ -213,7 +213,7 @@ define([
|
||||||
this.mode = mode;
|
this.mode = mode;
|
||||||
$('tr.edit', this.el)[mode.isEdit?'show':'hide']();
|
$('tr.edit', this.el)[mode.isEdit?'show':'hide']();
|
||||||
$('tr.autosave', this.el)[mode.isEdit && mode.canAutosave ? 'show' : 'hide']();
|
$('tr.autosave', this.el)[mode.isEdit && mode.canAutosave ? 'show' : 'hide']();
|
||||||
if (this.mode.isDesktopApp) {
|
if (this.mode.isDesktopApp && this.mode.isOffline) {
|
||||||
this.chAutosave.setCaption(this.strAutoRecover);
|
this.chAutosave.setCaption(this.strAutoRecover);
|
||||||
this.lblAutosave.text(this.textAutoRecover);
|
this.lblAutosave.text(this.textAutoRecover);
|
||||||
}
|
}
|
||||||
|
|
|
@ -554,7 +554,7 @@ define([
|
||||||
setMode: function(mode) {
|
setMode: function(mode) {
|
||||||
this.mode = mode;
|
this.mode = mode;
|
||||||
$('tr.autosave', this.el)[mode.isEdit && mode.canAutosave ? 'show' : 'hide']();
|
$('tr.autosave', this.el)[mode.isEdit && mode.canAutosave ? 'show' : 'hide']();
|
||||||
if (this.mode.isDesktopApp) {
|
if (this.mode.isDesktopApp && this.mode.isOffline) {
|
||||||
this.chAutosave.setCaption(this.strAutoRecover);
|
this.chAutosave.setCaption(this.strAutoRecover);
|
||||||
this.lblAutosave.text(this.textAutoRecover);
|
this.lblAutosave.text(this.textAutoRecover);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue