From 8691608c5d78a55204aada145d2f273c2204bf0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20B=C3=B6hlke?= Date: Sat, 5 Sep 2015 16:08:40 +0200 Subject: [PATCH] Fix javascript syntax --- openslides/core/views.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/openslides/core/views.py b/openslides/core/views.py index da2f36ebb..d95688025 100644 --- a/openslides/core/views.py +++ b/openslides/core/views.py @@ -117,10 +117,14 @@ class AppsJsView(utils_views.View): return result.promise(); }; """ + - "angular.module('OpenSlidesApp.{app}', {angular_modules});" - "var deferres = [];" - "{js_files}.forEach(function(js_file)deferres.push(loadScript(js_file)));" - "$.when.apply(this,deferres).done(function()angular.bootstrap(document,['OpenSlidesApp.{app}']));" + """ + angular.module('OpenSlidesApp.{app}', {angular_modules}); + var deferres = []; + {js_files}.forEach( function(js_file) {{ deferres.push(loadScript(js_file)); }} ); + $.when.apply(this,deferres).done(function() {{ + angular.bootstrap(document,['OpenSlidesApp.{app}']); + }} ); + """ .format( app=kwargs.get('openslides_app'), angular_modules=angular_modules,