firing select.change on option.click

pull/37/head
Nicholas Bollweg 11 years ago
parent 7643b3ccf0
commit 39e7836ddc

@ -454,6 +454,7 @@ define([
.text(item)
.attr('data-value', encodeURIComponent(item))
.attr('selected_label', item)
.on("click", $.proxy(that.handle_click, that))
.appendTo(that.$listbox);
}
});
@ -503,6 +504,13 @@ define([
}
},
handle_click: function (e) {
/**
* Handle when a new value is clicked.
*/
this.$listbox.val($(e.target).val()).change();
},
handle_change: function (e) {
/**
* Handle when a new value is selected.

Loading…
Cancel
Save