diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-01-28 11:24:08 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-01-28 13:32:34 +0100 |
commit | 87bc9f1fa1fceccb248254030aaed16da5e6aed8 (patch) | |
tree | 53c264c26b57ab03ccb505796147d7ceaa9430cf /core/js/js.js | |
parent | 8d52a3ac4a9f13c7ff7197b80ba055f37ac575d3 (diff) | |
download | nextcloud-server-87bc9f1fa1fceccb248254030aaed16da5e6aed8.tar.gz nextcloud-server-87bc9f1fa1fceccb248254030aaed16da5e6aed8.zip |
Add OC and OCA namespace declarations to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/js/js.js')
-rw-r--r-- | core/js/js.js | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/core/js/js.js b/core/js/js.js index fd6dcfcff6a..1aaee24af9b 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -39,11 +39,12 @@ function escapeHTML(s) { } /** @namespace OCP */ -var OCP = Object.assign({}, window.OCP), - /** - * @namespace OC - */ - OC = { +var OCP = Object.assign({}, window.OCP); + +/** + * @namespace OC + */ +Object.assign(window.OC, { PERMISSION_NONE:0, PERMISSION_CREATE:4, PERMISSION_READ:1, @@ -900,7 +901,7 @@ var OCP = Object.assign({}, window.OCP), } } -}; +}); /** * Current user attributes @@ -2339,12 +2340,6 @@ OC.set=function(name, value) { })(); /** - * Namespace for apps - * @namespace OCA - */ -window.OCA = {}; - -/** * select a range in an input field * @link http://stackoverflow.com/questions/499126/jquery-set-cursor-position-in-text-area * @param {type} start |