author | Giulio Cesare Solaroli <giulio.cesare@clipperz.com> | 2012-03-03 22:03:57 (UTC) |
---|---|---|
committer | Giulio Cesare Solaroli <giulio.cesare@clipperz.com> | 2012-03-03 22:03:57 (UTC) |
commit | cf9c0c34e1358452e0c7276c5b3ec6598f0c089d (patch) (side-by-side diff) | |
tree | d9366dae335a9bded5c0ee859895abe251790818 /frontend/gamma/js/main.js | |
parent | 7804333809bf725e32a08c531a06acd7d668e190 (diff) | |
download | clipperz-cf9c0c34e1358452e0c7276c5b3ec6598f0c089d.zip clipperz-cf9c0c34e1358452e0c7276c5b3ec6598f0c089d.tar.gz clipperz-cf9c0c34e1358452e0c7276c5b3ec6598f0c089d.tar.bz2 |
Added static resources used when exiting the application
Signed-off-by: Giulio Cesare Solaroli <giulio.cesare@clipperz.com>
-rw-r--r-- | frontend/gamma/js/main.js | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/frontend/gamma/js/main.js b/frontend/gamma/js/main.js index 352c4c7..a9fd65e 100644 --- a/frontend/gamma/js/main.js +++ b/frontend/gamma/js/main.js @@ -46,53 +46,40 @@ MochiKit.Logging.logError("## MainController - GENERIC ERROR" + "\n" + "==>> " + Clipperz.PM.RunTime = {}; function run() { var shouldShowRegistrationForm; var useCompactDesign; var controllerParameters; -// var iPhoneDesign; - -// MochiKit.Signal.connect(document.body, 'onkeydown', _pm_logEvent); -// MochiKit.Signal.connect(document.body, 'onkeypress', _pm_logEvent); -// MochiKit.Signal.connect(document.body, 'onclick', _pm_logEvent); controllerParameters = {}; - MochiKit.DOM.removeElement('javaScriptAlert'); +// MochiKit.DOM.removeElement('javaScriptAlert'); Clipperz.PM.Strings.Languages.initSetup(); if (window.location.search.indexOf('registration') != -1) { shouldShowRegistrationForm = true; } else { shouldShowRegistrationForm = false; } if (window.location.search.indexOf('autocomplete') != -1) { controllerParameters['autocomplete'] = 'on' } -// if ((window.location.search.indexOf('iPhone') != -1) || (navigator.userAgent.match('iPhone'))) { -// iPhoneDesign = true; -// } else { -// iPhoneDesign = false; -// } - if (window.location.search.indexOf('compact') != -1) { useCompactDesign = true; } else { useCompactDesign = false; } if (useCompactDesign == true) { Clipperz.PM.RunTime.mainController = new Clipperz.PM.UI.Compact.Controllers.MainController(controllerParameters); -// } else if (iPhoneDesign == true) { -// Clipperz.PM.RunTime.mainController = new Clipperz.PM.UI.iPhone.Controllers.MainController(); } else { Clipperz.PM.RunTime.mainController = new Clipperz.PM.UI.Web.Controllers.MainController(controllerParameters); } Clipperz.PM.RunTime.mainController.run(shouldShowRegistrationForm); //Clipperz.log("HASH: " + window.location.hash); if (window.location.hash != "") { |