Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Support double-clicking to move an element between the available and …

…selected lists
  • Loading branch information...
commit c3b79dd5fdfae15ece1bb6f23b04d7a5014f19d0 1 parent a367576
@hlship authored
View
11 tapx-core/src/main/resources/com/howardlewisship/tapx/core/tapx-multiselect.js
@@ -19,11 +19,14 @@ Tapx.extendInitializer(function() {
select.observe("change", updateButton);
select.observe("tapx:refreshbuttonstate", updateButton);
- button.observe("click", function(event) {
- if (enabled) {
+ function callbackIfEnabled() {
+ if (enabled)
callback();
- }
- });
+ }
+
+ button.observe("click", callbackIfEnabled);
+
+ select.observe("dblclick", callbackIfEnabled);
}
function moveOption(option, to) {
Please sign in to comment.
Something went wrong with that request. Please try again.