[Desktop] Bug 31337. Правка к ревизии 8092 (7fe0b1676024). "Autorecover" только для локальных файлов.

This commit is contained in:
Julia Radzhabova 2016-03-18 16:48:33 +03:00
parent 64b8732bdc
commit 38db9b32cb
3 changed files with 3 additions and 3 deletions

View file

@ -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);
}

View file

@ -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);
}

View file

@ -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);
}