##// END OF EJS Templates
firing select.change on option.click
Nicholas Bollweg -
Show More
@@ -454,6 +454,7 b' define(['
454 .text(item)
454 .text(item)
455 .attr('data-value', encodeURIComponent(item))
455 .attr('data-value', encodeURIComponent(item))
456 .attr('selected_label', item)
456 .attr('selected_label', item)
457 .on("click", $.proxy(that.handle_click, that))
457 .appendTo(that.$listbox);
458 .appendTo(that.$listbox);
458 }
459 }
459 });
460 });
@@ -503,6 +504,13 b' define(['
503 }
504 }
504 },
505 },
505
506
507 handle_click: function (e) {
508 /**
509 * Handle when a new value is clicked.
510 */
511 this.$listbox.val($(e.target).val()).change();
512 },
513
506 handle_change: function (e) {
514 handle_change: function (e) {
507 /**
515 /**
508 * Handle when a new value is selected.
516 * Handle when a new value is selected.
General Comments 0
You need to be logged in to leave comments. Login now