[desktop] for bug 60014
This commit is contained in:
parent
f91bc6e50e
commit
9e608f168d
|
@ -283,6 +283,15 @@ define([
|
||||||
}).show();
|
}).show();
|
||||||
|
|
||||||
native.execCommand('webapps:features', JSON.stringify(features));
|
native.execCommand('webapps:features', JSON.stringify(features));
|
||||||
|
|
||||||
|
api.asc_registerCallback('asc_onDocumentName', function () {
|
||||||
|
if ( features.readonly ) {
|
||||||
|
if ( api.asc_getLocalRestrictions() == Asc.c_oAscLocalRestrictionType.None ) {
|
||||||
|
features.readonly = false;
|
||||||
|
native.execCommand('webapps:features', JSON.stringify(features));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue