Mercurial > repos > adam-novak > hexagram
changeset 9:b55713868635 draft
Uploaded
author | adam-novak |
---|---|
date | Fri, 18 Oct 2013 19:04:03 -0400 |
parents | 0e9f7c8a85bb |
children | 61f6a1991ae3 |
files | hexagram/hexagram.js |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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; });