If account selectbox can expand (has + button) and user's preference includes a search popup, automatically expend when they open the popup.

This commit is contained in:
Nathan Gray 2015-11-23 22:00:27 +00:00
parent 47c1839b01
commit 59fbccdfcb

View File

@ -131,6 +131,12 @@ var et2_selectAccount = et2_selectbox.extend(
var button = jQuery(document.createElement("span"))
.addClass("et2_clickable")
.click(this, jQuery.proxy(function(e) {
// Auto-expand
if(this.options.expand_multiple_rows && !this.options.multiple)
{
this.set_multiple(true, this.options.expand_multiple_rows);
}
if(this.options.multiple)
{
this._open_multi_search(e);