diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-03 07:15:40 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-03 07:15:40 +1300 |
commit | e0b3da5a311bd138e11079e61d05a2c788ebaad5 (patch) | |
tree | e0392a70b041118426d529e2ce0a0237429650cd /web/load.js | |
parent | f97cba3ce4bac8b1e5df62e31b082bc68c7ac320 (diff) | |
download | trackermap-web-e0b3da5a311bd138e11079e61d05a2c788ebaad5.tar.gz trackermap-web-e0b3da5a311bd138e11079e61d05a2c788ebaad5.tar.bz2 trackermap-web-e0b3da5a311bd138e11079e61d05a2c788ebaad5.zip |
Extract version numbers
Diffstat (limited to 'web/load.js')
-rw-r--r-- | web/load.js | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/web/load.js b/web/load.js index ea3ae530..0e29fc3e 100644 --- a/web/load.js +++ b/web/load.js @@ -99,25 +99,29 @@ }); + var extjsVersion = '6.0.1'; + var fontAwesomeVersion = '4.6.3'; + var olVersion = '3.18.2'; + if (debugMode) { - addScriptFile('//cdnjs.cloudflare.com/ajax/libs/extjs/6.0.1/ext-all-debug.js'); + addScriptFile('//cdnjs.cloudflare.com/ajax/libs/extjs/' + extjsVersion + '/ext-all-debug.js'); } else { - addScriptFile('//cdnjs.cloudflare.com/ajax/libs/extjs/6.0.1/ext-all.js'); + addScriptFile('//cdnjs.cloudflare.com/ajax/libs/extjs/' + extjsVersion + '/ext-all.js'); } - addScriptFile('//cdnjs.cloudflare.com/ajax/libs/extjs/6.0.1/classic/locale/locale-' + locale.languages[locale.language].code + '.js'); + addScriptFile('//cdnjs.cloudflare.com/ajax/libs/extjs/' + extjsVersion + '/classic/locale/locale-' + locale.languages[locale.language].code + '.js'); if (touchMode) { - addStyleFile('//cdnjs.cloudflare.com/ajax/libs/extjs/6.0.1/classic/theme-crisp-touch/resources/theme-crisp-touch-all.css'); - addScriptFile('//cdnjs.cloudflare.com/ajax/libs/extjs/6.0.1/classic/theme-crisp-touch/theme-crisp-touch.js'); + addStyleFile('//cdnjs.cloudflare.com/ajax/libs/extjs/' + extjsVersion + '/classic/theme-crisp-touch/resources/theme-crisp-touch-all.css'); + addScriptFile('//cdnjs.cloudflare.com/ajax/libs/extjs/' + extjsVersion + '/classic/theme-crisp-touch/theme-crisp-touch.js'); } else { - addStyleFile('//cdnjs.cloudflare.com/ajax/libs/extjs/6.0.1/classic/theme-crisp/resources/theme-crisp-all.css'); - addScriptFile('//cdnjs.cloudflare.com/ajax/libs/extjs/6.0.1/classic/theme-crisp/theme-crisp.js'); + addStyleFile('//cdnjs.cloudflare.com/ajax/libs/extjs/' + extjsVersion + '/classic/theme-crisp/resources/theme-crisp-all.css'); + addScriptFile('//cdnjs.cloudflare.com/ajax/libs/extjs/' + extjsVersion + '/classic/theme-crisp/theme-crisp.js'); } - addStyleFile('//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css'); + addStyleFile('//cdnjs.cloudflare.com/ajax/libs/font-awesome/' + fontAwesomeVersion + '/css/font-awesome.min.css'); - addStyleFile('//cdnjs.cloudflare.com/ajax/libs/ol3/3.18.2/ol.css'); - addScriptFile('//cdnjs.cloudflare.com/ajax/libs/ol3/3.18.2/ol-debug.js'); + addStyleFile('//cdnjs.cloudflare.com/ajax/libs/ol3/' + olVersion + '/ol.css'); + addScriptFile('//cdnjs.cloudflare.com/ajax/libs/ol3/' + olVersion + '/ol-debug.js'); addStyleFile('app.css'); addScriptFile('arrow.js'); |