Make sure to open correct dialog, even if multiple option gets changed after creation.

This commit is contained in:
Nathan Gray 2015-11-17 20:09:19 +00:00
parent c8478e0635
commit b136d22c3a

View File

@ -130,7 +130,16 @@ var et2_selectAccount = et2_selectbox.extend(
{
var button = jQuery(document.createElement("span"))
.addClass("et2_clickable")
.click(this, this.options.multiple ? this._open_multi_search : this._open_search)
.click(this, jQuery.proxy(function(e) {
if(this.options.multiple)
{
this._open_multi_search(e);
}
else
{
this._open_search(e);
}
},this))
.attr("title", egw.lang("popup with search"))
.append('<span class="ui-icon ui-icon-search" style="display:inline-block"/>');