diff options
author | Henry Castro <hcastro@collabora.com> | 2018-04-12 15:57:00 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2018-05-10 20:30:16 +0200 |
commit | 8618885b3175781a95573c261f876e8626978573 (patch) | |
tree | 3a21c1df1e9d836f901765ea2fefa4ac3dcef537 /scripts/unocommands.py | |
parent | 62df2c114fd114c195356ef884978db214ee03ac (diff) |
use Makefile to build loleaflet
Concatenate and minify all javascript files in the release build but not
in the debug build. Also, it is enabled to use a build directory
Change-Id: Ia120447a827cfe236241ddf188bf43a088f877a7
Reviewed-on: https://gerrit.libreoffice.org/52802
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
Diffstat (limited to 'scripts/unocommands.py')
-rwxr-xr-x | scripts/unocommands.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/unocommands.py b/scripts/unocommands.py index d3b7a887d..808887da3 100755 --- a/scripts/unocommands.py +++ b/scripts/unocommands.py @@ -218,7 +218,7 @@ var unoCommandsArray = {\n''') f.write('''}; -global._UNO = function(string, component, isContext) { +window._UNO = function(string, component, isContext) { \tvar command = string.substr(5); \tvar context = 'menu'; \tif (isContext === true) { @@ -252,7 +252,7 @@ global._UNO = function(string, component, isContext) { def parseUnocommandsJS(onlineDir): strings = {} - f = open(onlineDir + '/loleaflet/unocommands.js', 'r') + f = open(onlineDir + '/loleaflet/src/unocommands.js', 'r') readingCommands = False for line in f: line = line.decode('utf-8') |