[desktop] debug for locked file
This commit is contained in:
parent
6892321fb5
commit
37094765cb
|
@ -200,6 +200,13 @@ define([
|
||||||
$('.toolbar').addClass('editor-native-color');
|
$('.toolbar').addClass('editor-native-color');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Common.NotificationCenter.on('document:ready', function () {
|
||||||
|
var maincontroller = webapp.getController('Main');
|
||||||
|
if ( maincontroller.api.asc_isReadOnly && maincontroller.api.asc_isReadOnly() ) {
|
||||||
|
maincontroller.warningDocumentIsLocked();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
Common.NotificationCenter.on('action:undocking', function (opts) {
|
Common.NotificationCenter.on('action:undocking', function (opts) {
|
||||||
native.execCommand('editor:event', JSON.stringify({action:'undocking', state: opts == 'dock' ? 'dock' : 'undock'}));
|
native.execCommand('editor:event', JSON.stringify({action:'undocking', state: opts == 'dock' ? 'dock' : 'undock'}));
|
||||||
});
|
});
|
||||||
|
|
|
@ -1058,10 +1058,6 @@ define([
|
||||||
|
|
||||||
Common.NotificationCenter.trigger('document:ready', 'main');
|
Common.NotificationCenter.trigger('document:ready', 'main');
|
||||||
me.applyLicense();
|
me.applyLicense();
|
||||||
|
|
||||||
if ( me.api.asc_isReadOnly() ) {
|
|
||||||
me.warningDocumentIsLocked();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}, 50);
|
}, 50);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue