Implement queue when setting preferences

This commit is contained in:
Nathan Gray 2013-06-11 22:48:27 +00:00
parent 936c375a2d
commit 3300e82b27

View File

@ -88,8 +88,7 @@ egw.extend('preferences', egw.MODULE_GLOBAL, function() {
*/ */
set_preference: function(_app, _name, _val) set_preference: function(_app, _name, _val)
{ {
// TODO: Queue this.jsonq('home.egw_framework.ajax_set_preference.template',[_app, _name, _val]);
xajax_doXMLHTTP('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!) // 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; if (typeof prefs[_app] != 'undefined') prefs[_app][_name] = _val;