Commit 38db9b32 authored by Julia Radzhabova's avatar Julia Radzhabova

[Desktop] Bug 31337. Правка к ревизии 8092 (7fe0b1676024). "Autorecover"...

[Desktop] Bug 31337. Правка к ревизии 8092 (7fe0b1676024). "Autorecover" только для локальных файлов.
parent 64b8732b
......@@ -268,7 +268,7 @@ define([
this.mode = mode;
$('tr.edit', this.el)[mode.isEdit?'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.lblAutosave.text(this.textAutoRecover);
}
......
......@@ -213,7 +213,7 @@ define([
this.mode = mode;
$('tr.edit', this.el)[mode.isEdit?'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.lblAutosave.text(this.textAutoRecover);
}
......
......@@ -554,7 +554,7 @@ define([
setMode: function(mode) {
this.mode = mode;
$('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.lblAutosave.text(this.textAutoRecover);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment