1
0
mirror of synced 2024-11-30 00:26:03 +03:00

pass element attr to initSelection for selects upon init

This commit is contained in:
Igor Vaynberg 2012-09-24 09:22:36 -07:00
parent fccc84cd11
commit 98976946d6

View File

@ -1612,7 +1612,7 @@
var selected = element.find(":selected"); var selected = element.find(":selected");
// a single select box always has a value, no need to null check 'selected' // a single select box always has a value, no need to null check 'selected'
if ($.isFunction(callback)) if ($.isFunction(callback))
callback({id: selected.attr("value"), text: selected.text()}); callback({id: selected.attr("value"), text: selected.text(), element:selected});
}; };
} }