author | Giulio Cesare Solaroli <giulio.cesare@clipperz.com> | 2013-04-26 09:16:55 (UTC) |
---|---|---|
committer | Giulio Cesare Solaroli <giulio.cesare@clipperz.com> | 2013-04-26 09:16:55 (UTC) |
commit | 65f064cb6c99dde320d49e6c4157607c25e2d092 (patch) (unidiff) | |
tree | 9734d2d1c658d8affc1038caa5937b479f3aa03e | |
parent | e68efe56187ce0f264159c9fe7574e68d1131404 (diff) | |
download | clipperz-65f064cb6c99dde320d49e6c4157607c25e2d092.zip clipperz-65f064cb6c99dde320d49e6c4157607c25e2d092.tar.gz clipperz-65f064cb6c99dde320d49e6c4157607c25e2d092.tar.bz2 |
Disabled a debug log
-rw-r--r-- | frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/AppController.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/AppController.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/AppController.js index 3d9d6d3..1448dee 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/AppController.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/AppController.js | |||
@@ -241,108 +241,108 @@ MochiKit.Base.update(Clipperz.PM.UI.Web.Controllers.AppController.prototype, { | |||
241 | // deferredResult.addMethod(this.directLoginsController(), 'run', {slot:this.appPage().slotNamed('directLoginGrid'), user:user}); | 241 | // deferredResult.addMethod(this.directLoginsController(), 'run', {slot:this.appPage().slotNamed('directLoginGrid'), user:user}); |
242 | deferredResult.addMethod(this, 'populateUserInfo'); | 242 | deferredResult.addMethod(this, 'populateUserInfo'); |
243 | 243 | ||
244 | deferredResult.addCallback(MochiKit.Visual.ScrollTo, 'miscLinks', {duration:0}); | 244 | deferredResult.addCallback(MochiKit.Visual.ScrollTo, 'miscLinks', {duration:0}); |
245 | deferredResult.addCallback(MochiKit.Signal.signal, Clipperz.Signal.NotificationCenter, 'CARDS_CONTROLLER_DID_RUN'); | 245 | deferredResult.addCallback(MochiKit.Signal.signal, Clipperz.Signal.NotificationCenter, 'CARDS_CONTROLLER_DID_RUN'); |
246 | deferredResult.addMethod(this.tabSidePanel(), 'selectTab', 'cards'); | 246 | deferredResult.addMethod(this.tabSidePanel(), 'selectTab', 'cards'); |
247 | deferredResult.callback(); | 247 | deferredResult.callback(); |
248 | }, | 248 | }, |
249 | 249 | ||
250 | //----------------------------------------------------------------------------- | 250 | //----------------------------------------------------------------------------- |
251 | 251 | ||
252 | 'handleTabSelected': function (selectedTabName) { | 252 | 'handleTabSelected': function (selectedTabName) { |
253 | var aTabName; | 253 | var aTabName; |
254 | var aSlotName; | 254 | var aSlotName; |
255 | 255 | ||
256 | //Clipperz.log(">>> AppController.handleTabSelected", selectedTabName); | 256 | //Clipperz.log(">>> AppController.handleTabSelected", selectedTabName); |
257 | this.hideAllAppPageTabSlots(); | 257 | this.hideAllAppPageTabSlots(); |
258 | this.appPage().showSlot(this.slotNameForTab(selectedTabName)); | 258 | this.appPage().showSlot(this.slotNameForTab(selectedTabName)); |
259 | 259 | ||
260 | switch (selectedTabName) { | 260 | switch (selectedTabName) { |
261 | case 'cards': | 261 | case 'cards': |
262 | this.cardsController().focus(); | 262 | this.cardsController().focus(); |
263 | break; | 263 | break; |
264 | // case 'directLogins': | 264 | // case 'directLogins': |
265 | // this.directLoginsController().focus(); | 265 | // this.directLoginsController().focus(); |
266 | // break; | 266 | // break; |
267 | case 'data': | 267 | case 'data': |
268 | break; | 268 | break; |
269 | case 'account': | 269 | case 'account': |
270 | break; | 270 | break; |
271 | case 'tools': | 271 | case 'tools': |
272 | break; | 272 | break; |
273 | } | 273 | } |
274 | //Clipperz.log("<-- AppController.handleTabSelected", aTabName); | 274 | //Clipperz.log("<-- AppController.handleTabSelected", aTabName); |
275 | }, | 275 | }, |
276 | 276 | ||
277 | //============================================================================= | 277 | //============================================================================= |
278 | 278 | ||
279 | 'handleAddCard': function (aSourceElement) { | 279 | 'handleAddCard': function (aSourceElement) { |
280 | //Clipperz.log("=== AppController.addCard", aSourceElement); | 280 | //Clipperz.log("=== AppController.addCard", aSourceElement); |
281 | this.cardsController().addCard(aSourceElement); | 281 | this.cardsController().addCard(aSourceElement); |
282 | }, | 282 | }, |
283 | 283 | ||
284 | //============================================================================= | 284 | //============================================================================= |
285 | 285 | ||
286 | 'userDataSuccessfullySavedHandler': function (anEvent) { | 286 | 'userDataSuccessfullySavedHandler': function (anEvent) { |
287 | this.populateUserInfo(); | 287 | this.populateUserInfo(); |
288 | }, | 288 | }, |
289 | 289 | ||
290 | //============================================================================= | 290 | //============================================================================= |
291 | 291 | ||
292 | 'handleLogout': function(anEvent) { | 292 | 'handleLogout': function(anEvent) { |
293 | var deferredResult; | 293 | var deferredResult; |
294 | 294 | ||
295 | deferredResult = new Clipperz.Async.Deferred("AppController.handleLogout", {trace:false}); | 295 | deferredResult = new Clipperz.Async.Deferred("AppController.handleLogout", {trace:false}); |
296 | deferredResult.addMethod(this.user(), 'logout'); | 296 | deferredResult.addMethod(this.user(), 'logout'); |
297 | deferredResult.addCallback(MochiKit.Signal.signal, this, 'logout'); | 297 | deferredResult.addCallback(MochiKit.Signal.signal, this, 'logout'); |
298 | deferredResult.callback(); | 298 | deferredResult.callback(); |
299 | 299 | ||
300 | return deferredResult; | 300 | return deferredResult; |
301 | }, | 301 | }, |
302 | 302 | ||
303 | //----------------------------------------------------------------------------- | 303 | //----------------------------------------------------------------------------- |
304 | 304 | ||
305 | 'handleLock': function (anEvent) { | 305 | 'handleLock': function (anEvent) { |
306 | return Clipperz.Async.callbacks("AppController.handleLock", [ | 306 | return Clipperz.Async.callbacks("AppController.handleLock", [ |
307 | MochiKit.Base.method(this.cardsController(), 'deleteAllCleanTextData'), | 307 | MochiKit.Base.method(this.cardsController(), 'deleteAllCleanTextData'), |
308 | MochiKit.Base.method(this.user(), 'lock') | 308 | MochiKit.Base.method(this.user(), 'lock') |
309 | ], {trace:false}); | 309 | ], {trace:false}); |
310 | }, | 310 | }, |
311 | 311 | ||
312 | //............................................................................. | 312 | //............................................................................. |
313 | 313 | ||
314 | 'handleUnlock': function (anEvent) { | 314 | 'handleUnlock': function (anEvent) { |
315 | return Clipperz.Async.callbacks("AppController.handleUnock", [ | 315 | return Clipperz.Async.callbacks("AppController.handleUnock", [ |
316 | MochiKit.Base.partial(MochiKit.Signal.signal, Clipperz.Signal.NotificationCenter, 'initProgress'), | 316 | MochiKit.Base.partial(MochiKit.Signal.signal, Clipperz.Signal.NotificationCenter, 'initProgress'), |
317 | MochiKit.Base.method(this.user(), 'login'), | 317 | MochiKit.Base.method(this.user(), 'login'), |
318 | MochiKit.Base.method(this.cardsController(), 'focus'), | 318 | MochiKit.Base.method(this.cardsController(), 'focus'), |
319 | MochiKit.Base.partial(MochiKit.Signal.signal, Clipperz.Signal.NotificationCenter, 'progressDone'), | 319 | MochiKit.Base.partial(MochiKit.Signal.signal, Clipperz.Signal.NotificationCenter, 'progressDone'), |
320 | MochiKit.Base.method(this.userInfoBox(), 'unlock') | 320 | MochiKit.Base.method(this.userInfoBox(), 'unlock') |
321 | ], {trace:false}); | 321 | ], {trace:false}); |
322 | }, | 322 | }, |
323 | 323 | ||
324 | 'handleDownloadOfflineCopy': function (anEvent) { | 324 | 'handleDownloadOfflineCopy': function (anEvent) { |
325 | var downloadHref; | 325 | var downloadHref; |
326 | 326 | ||
327 | downloadHref = window.location.href.replace(/\/[^\/]*$/,'') + Clipperz_dumpUrl; | 327 | downloadHref = window.location.href.replace(/\/[^\/]*$/,'') + Clipperz_dumpUrl; |
328 | 328 | ||
329 | if (Clipperz_IEisBroken == true) { | 329 | if (Clipperz_IEisBroken == true) { |
330 | window.open(downloadHref, ""); | 330 | window.open(downloadHref, ""); |
331 | } else { | 331 | } else { |
332 | vardeferredResult; | 332 | vardeferredResult; |
333 | var newWindow; | 333 | var newWindow; |
334 | 334 | ||
335 | newWindow = window.open("", ""); | 335 | newWindow = window.open("", ""); |
336 | 336 | ||
337 | deferredResult = new Clipperz.Async.Deferred("AppController.handleDownloadOfflineCopy", {trace:true}); | 337 | deferredResult = new Clipperz.Async.Deferred("AppController.handleDownloadOfflineCopy", {trace:false}); |
338 | deferredResult.addCallback(MochiKit.Base.method(this.user().connection(), 'message'), 'echo', {'echo':"echo"}); | 338 | deferredResult.addCallback(MochiKit.Base.method(this.user().connection(), 'message'), 'echo', {'echo':"echo"}); |
339 | deferredResult.addCallback(function(aWindow) { | 339 | deferredResult.addCallback(function(aWindow) { |
340 | aWindow.location.href = downloadHref; | 340 | aWindow.location.href = downloadHref; |
341 | }, newWindow); | 341 | }, newWindow); |
342 | deferredResult.callback(); | 342 | deferredResult.callback(); |
343 | } | 343 | } |
344 | }, | 344 | }, |
345 | 345 | ||
346 | //============================================================================= | 346 | //============================================================================= |
347 | __syntaxFix__: "syntax fix" | 347 | __syntaxFix__: "syntax fix" |
348 | }); | 348 | }); |