# HG changeset patch # User adam-novak # Date 1382137443 14400 # Node ID b55713868635ae9f61bb93ef9bc41a7ec952cffa # Parent 0e9f7c8a85bb490c0cbcc91326dd80d1e5cbb313 Uploaded diff -r 0e9f7c8a85bb -r b55713868635 hexagram/hexagram.js --- a/hexagram/hexagram.js Fri Oct 18 18:59:11 2013 -0400 +++ b/hexagram/hexagram.js Fri Oct 18 19:04:03 2013 -0400 @@ -3811,7 +3811,7 @@ }); // Handle result selection - $("#layout-search").on("select2-selecting", function(event) { + $("#layout-search").on("change", function(event) { // The select2 id of the thing clicked (the layout's name) is event.val var layout_name = event.val; @@ -3821,9 +3821,6 @@ initialize_view (0); recreate_map(layout_name, 1); refresh (); - // Don't actually change the selection. - // This keeps the dropdown open when we click. - event.preventDefault(); current_layout_name = layout_name; });