diff options
Diffstat (limited to 'sca-cpp/trunk/modules/edit/htdocs/page/index.html')
-rw-r--r-- | sca-cpp/trunk/modules/edit/htdocs/page/index.html | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sca-cpp/trunk/modules/edit/htdocs/page/index.html b/sca-cpp/trunk/modules/edit/htdocs/page/index.html index 92f286fdc6..5f9d93efed 100644 --- a/sca-cpp/trunk/modules/edit/htdocs/page/index.html +++ b/sca-cpp/trunk/modules/edit/htdocs/page/index.html @@ -37,14 +37,12 @@ <script type="text/javascript"> /** - * Return the current app name. + * The current app name. */ -function appname() { - return ui.queryParams()['app']; -} +var appname = ui.queryParams()['app']; // Load the menu bar -ui.loadwidget('menu', '/menu.html?app=' + appname()); +ui.loadwidget('menu', '/menu.html?app=' + appname); /** * Display the page editor for an app. @@ -60,7 +58,7 @@ function editapp(name) { } // Display the editor for the current app -editapp(appname()); +editapp(appname); </script> </body> |