mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 23:19:04 +01:00
Remove toolbar prefs correction code
This commit is contained in:
parent
9cc1d409eb
commit
de79b1eaa3
@ -110,20 +110,6 @@ var et2_toolbar = et2_DOMWidget.extend([et2_IInput],
|
|||||||
this.actionbox.append('<div id="' + this.id + '-menulist' +'" class="ui-toolbar-menulist" ></div>');
|
this.actionbox.append('<div id="' + this.id + '-menulist' +'" class="ui-toolbar-menulist" ></div>');
|
||||||
var that = this;
|
var that = this;
|
||||||
|
|
||||||
// toolbar preference id correction,
|
|
||||||
// before toolbar used to address pereference with this.id which were not scalable
|
|
||||||
// need to convert them to dom_id prefix for old pref and the new one come with dom_id automatically
|
|
||||||
//TODO: this part of code needs to be removed later
|
|
||||||
var old_pref = egw.preference(this.id,this.egw().getAppName());
|
|
||||||
if (old_pref)
|
|
||||||
{
|
|
||||||
//Set the old preference with correct id
|
|
||||||
egw.set_preference(this.egw().getAppName(), this.dom_id,old_pref);
|
|
||||||
// delete stored pref with wrong id
|
|
||||||
egw.set_preference(this.egw().getAppName(),this.id);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
var pref = egw.preference(this.dom_id,this.egw().getAppName());
|
var pref = egw.preference(this.dom_id,this.egw().getAppName());
|
||||||
if (pref && !jQuery.isArray(pref)) this.preference = pref;
|
if (pref && !jQuery.isArray(pref)) this.preference = pref;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user