From 3300e82b27079b011113f91411661630e98794df Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 11 Jun 2013 22:48:27 +0000 Subject: [PATCH] Implement queue when setting preferences --- phpgwapi/js/jsapi/egw_preferences.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/phpgwapi/js/jsapi/egw_preferences.js b/phpgwapi/js/jsapi/egw_preferences.js index a182d57bea..8f27a258f7 100644 --- a/phpgwapi/js/jsapi/egw_preferences.js +++ b/phpgwapi/js/jsapi/egw_preferences.js @@ -88,8 +88,7 @@ egw.extend('preferences', egw.MODULE_GLOBAL, function() { */ set_preference: function(_app, _name, _val) { - // TODO: Queue - xajax_doXMLHTTP('home.egw_framework.ajax_set_preference.template', _app, _name, _val); + this.jsonq('home.egw_framework.ajax_set_preference.template',[_app, _name, _val]); // update own preference cache, if _app prefs are loaded (dont update otherwise, as it would block loading of other _app prefs!) if (typeof prefs[_app] != 'undefined') prefs[_app][_name] = _val;