summaryrefslogtreecommitdiffstats
path: root/scripts/unocommands.py
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2018-04-12 15:57:00 -0400
committerHenry Castro <hcastro@collabora.com>2018-05-10 20:30:16 +0200
commit8618885b3175781a95573c261f876e8626978573 (patch)
tree3a21c1df1e9d836f901765ea2fefa4ac3dcef537 /scripts/unocommands.py
parentRevert "ChildSession: use NoFileSync as default during convert-to as well" (diff)
downloadonline-8618885b3175781a95573c261f876e8626978573.tar.gz
online-8618885b3175781a95573c261f876e8626978573.zip
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-xscripts/unocommands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/unocommands.py b/scripts/unocommands.py
index d3b7a887d5..808887da34 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')