Merge pull request #1094 from syaiful6/select2-docs

update integration docs
This commit is contained in:
Leo Horie 2016-06-05 11:21:06 -04:00
commit ece9376711

View file

@ -38,7 +38,7 @@ var Select2 = {
if (!isInitialized) {
el.select2()
.on("change", function(e) {
var id = el.select2("val");
var id = el.val();
m.startComputation();
//Set the value to the selected option
ctrl.data.map(function(d){
@ -48,7 +48,7 @@ var Select2 = {
});
if (typeof ctrl.onchange == "function"){
ctrl.onchange(el.select2("val"));
ctrl.onchange(el.val());
}
m.endComputation();
});