-rw-r--r-- | frontend/beta/js/Clipperz/PM/DataModel/UserPreferences.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/beta/js/Clipperz/PM/DataModel/UserPreferences.js b/frontend/beta/js/Clipperz/PM/DataModel/UserPreferences.js index 9e80b3a..919289d 100644 --- a/frontend/beta/js/Clipperz/PM/DataModel/UserPreferences.js +++ b/frontend/beta/js/Clipperz/PM/DataModel/UserPreferences.js @@ -150,45 +150,46 @@ Clipperz.PM.DataModel.UserPreferences.prototype = MochiKit.Base.update(null, { this.setConfigValue('disableUnsecureFaviconLoadingForIE', aValue); }, //------------------------------------------------------------------------- 'serializedData': function() { return this.config(); }, //------------------------------------------------------------------------- 'saveChanges': function(aReferenceElement) { var deferredResult; deferredResult = new MochiKit.Async.Deferred(); deferredResult.addCallback(MochiKit.Base.method(Clipperz.PM.Components.MessageBox(), 'deferredShow'), { title:"", // Clipperz.PM.Strings['accountPreferencesSavingPanelTitle_Step1'], text:"", // Clipperz.PM.Strings['accountPreferencesSavingPanelText_Step1'], width:240, showProgressBar:true, showCloseButton:false }, aReferenceElement ); deferredResult.addCallback(Clipperz.NotificationCenter.deferredNotification, this, 'updatedProgressState', 'account_savingPreferences_1'); deferredResult.addCallback(MochiKit.Base.method(this.user(), 'encryptedData')); deferredResult.addCallback(function(res) { return {user:res}; }) deferredResult.addCallback(Clipperz.NotificationCenter.deferredNotification, this, 'updatedProgressState', 'account_savingPreferences_2'); - deferredResult.addCallback(MochiKit.Base.method(this.user().connection(), 'message'), 'updateData'); +// deferredResult.addCallback(MochiKit.Base.method(this.user().connection(), 'message'), 'updateData'); + deferredResult.addCallback(MochiKit.Base.method(this.user().connection(), 'message'), 'saveChanges'); deferredResult.addCallback(Clipperz.PM.Components.MessageBox().hide, YAHOO.ext.Element.get('main')); deferredResult.addCallback(Clipperz.NotificationCenter.deferredNotification, this, 'updatedPreferences', null); deferredResult.callback(); return deferredResult; }, //------------------------------------------------------------------------- __syntaxFix__: "syntax fix" }); |