mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
Reafctor client side (EJS) constants
This commit is contained in:
parent
8fb001422a
commit
bde0091a4a
23 changed files with 118 additions and 367 deletions
|
@ -11,7 +11,6 @@
|
|||
|
||||
import $ from 'jquery';
|
||||
import constants from '../constants/constants';
|
||||
import econstants from '../constants/econstants';
|
||||
|
||||
export function initialize(application) {
|
||||
// address insecure jquery defaults (kudos: @nathanhammond)
|
||||
|
@ -24,9 +23,7 @@ export function initialize(application) {
|
|||
});
|
||||
|
||||
let cs = constants.constants;
|
||||
let ec = econstants.econstants;
|
||||
application.register('constants:main', cs);
|
||||
application.register('econstants:main', ec);
|
||||
|
||||
Dropzone.autoDiscover = false;
|
||||
CodeMirror.modeURL = "/codemirror/mode/%N/%N.js";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue