Set select_options for <listbox> widget type of "select-account" with egw->accounts client-side method

This commit is contained in:
Hadi Nategh 2014-04-24 11:49:39 +00:00
parent 1c8c4032dc
commit 334c66d203

View File

@ -507,6 +507,10 @@ var et2_selectbox = et2_inputWidget.extend(
"title": et2_readAttrWithDefault(options[i], "title", "") "title": et2_readAttrWithDefault(options[i], "title", "")
}; };
} }
if (this.options.type == 'select-account')
{
jQuery.extend(this.options.select_options, this.egw().accounts(this.options.account_type));
}
this.set_select_options(this.options.select_options); this.set_select_options(this.options.select_options);
}, },