diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-02-11 12:12:03 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-02-11 12:12:03 +1300 |
commit | 2f1a58642ff7fc17cf026fa1b03b179b4658c08e (patch) | |
tree | 95e8963257413a004c6718dc2ffea950a006404d /web/load.js | |
parent | bb64d35e56882aa3cf36ac8cf7a46ea1ce0db472 (diff) | |
download | etbsa-traccar-web-2f1a58642ff7fc17cf026fa1b03b179b4658c08e.tar.gz etbsa-traccar-web-2f1a58642ff7fc17cf026fa1b03b179b4658c08e.tar.bz2 etbsa-traccar-web-2f1a58642ff7fc17cf026fa1b03b179b4658c08e.zip |
Update JavaScript libraries
Diffstat (limited to 'web/load.js')
-rw-r--r-- | web/load.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/web/load.js b/web/load.js index 2ef2ac7..fc676b7 100644 --- a/web/load.js +++ b/web/load.js @@ -119,7 +119,7 @@ extjsVersion = '6.2.0'; fontAwesomeVersion = '4.7.0'; - olVersion = '3.20.1'; + olVersion = '4.0.0'; if (debugMode) { addScriptFile('//cdnjs.cloudflare.com/ajax/libs/extjs/' + extjsVersion + '/ext-all-debug.js'); @@ -138,7 +138,11 @@ addStyleFile('//cdnjs.cloudflare.com/ajax/libs/font-awesome/' + fontAwesomeVersion + '/css/font-awesome.min.css'); addStyleFile('//cdnjs.cloudflare.com/ajax/libs/ol3/' + olVersion + '/ol.css'); - addScriptFile('//cdnjs.cloudflare.com/ajax/libs/ol3/' + olVersion + '/ol-debug.js'); + if (debugMode) { + addScriptFile('//cdnjs.cloudflare.com/ajax/libs/ol3/' + olVersion + '/ol-debug.js'); + } else { + addScriptFile('//cdnjs.cloudflare.com/ajax/libs/ol3/' + olVersion + '/ol.js'); + } addSvgFile('images/default.svg', 'defaultSvg'); addSvgFile('images/arrow.svg', 'arrowSvg'); |