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) (unidiff) | |
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 | |||
@@ -50,17 +50,12 @@ Clipperz.PM.RunTime = {}; | |||
50 | function run() { | 50 | function run() { |
51 | var shouldShowRegistrationForm; | 51 | var shouldShowRegistrationForm; |
52 | var useCompactDesign; | 52 | var useCompactDesign; |
53 | var controllerParameters; | 53 | var controllerParameters; |
54 | //var iPhoneDesign; | ||
55 | |||
56 | //MochiKit.Signal.connect(document.body, 'onkeydown', _pm_logEvent); | ||
57 | //MochiKit.Signal.connect(document.body, 'onkeypress', _pm_logEvent); | ||
58 | //MochiKit.Signal.connect(document.body, 'onclick', _pm_logEvent); | ||
59 | 54 | ||
60 | controllerParameters = {}; | 55 | controllerParameters = {}; |
61 | 56 | ||
62 | MochiKit.DOM.removeElement('javaScriptAlert'); | 57 | //MochiKit.DOM.removeElement('javaScriptAlert'); |
63 | Clipperz.PM.Strings.Languages.initSetup(); | 58 | Clipperz.PM.Strings.Languages.initSetup(); |
64 | 59 | ||
65 | if (window.location.search.indexOf('registration') != -1) { | 60 | if (window.location.search.indexOf('registration') != -1) { |
66 | shouldShowRegistrationForm = true; | 61 | shouldShowRegistrationForm = true; |
@@ -71,24 +66,16 @@ function run() { | |||
71 | if (window.location.search.indexOf('autocomplete') != -1) { | 66 | if (window.location.search.indexOf('autocomplete') != -1) { |
72 | controllerParameters['autocomplete'] = 'on' | 67 | controllerParameters['autocomplete'] = 'on' |
73 | } | 68 | } |
74 | 69 | ||
75 | //if ((window.location.search.indexOf('iPhone') != -1) || (navigator.userAgent.match('iPhone'))) { | ||
76 | // iPhoneDesign = true; | ||
77 | //} else { | ||
78 | // iPhoneDesign = false; | ||
79 | //} | ||
80 | |||
81 | if (window.location.search.indexOf('compact') != -1) { | 70 | if (window.location.search.indexOf('compact') != -1) { |
82 | useCompactDesign = true; | 71 | useCompactDesign = true; |
83 | } else { | 72 | } else { |
84 | useCompactDesign = false; | 73 | useCompactDesign = false; |
85 | } | 74 | } |
86 | 75 | ||
87 | if (useCompactDesign == true) { | 76 | if (useCompactDesign == true) { |
88 | Clipperz.PM.RunTime.mainController = new Clipperz.PM.UI.Compact.Controllers.MainController(controllerParameters); | 77 | Clipperz.PM.RunTime.mainController = new Clipperz.PM.UI.Compact.Controllers.MainController(controllerParameters); |
89 | //} else if (iPhoneDesign == true) { | ||
90 | // Clipperz.PM.RunTime.mainController = new Clipperz.PM.UI.iPhone.Controllers.MainController(); | ||
91 | } else { | 78 | } else { |
92 | Clipperz.PM.RunTime.mainController = new Clipperz.PM.UI.Web.Controllers.MainController(controllerParameters); | 79 | Clipperz.PM.RunTime.mainController = new Clipperz.PM.UI.Web.Controllers.MainController(controllerParameters); |
93 | } | 80 | } |
94 | 81 | ||