X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Fregistration_view.html;h=7ed1bd1135cb0763701d14d33a8c0bcce913b368;hb=1ca2768a7aad52401201b6746e42d51194c00f15;hp=5ce34592ec56d300166f80ae9e08fa9f47c980fa;hpb=5d6232c324cc1baa1117854ff498c910994e4bfd;p=myslice.git diff --git a/portal/templates/registration_view.html b/portal/templates/registration_view.html index 5ce34592..7ed1bd11 100644 --- a/portal/templates/registration_view.html +++ b/portal/templates/registration_view.html @@ -34,10 +34,10 @@

Enter your last name

- +
- +

An authority responsible for vetting your account

@@ -114,9 +114,18 @@ jQuery(document).ready(function(){ {value:"",label:"No authority found !!!"} {% endif %} ]; - $( "#auth_list" ).autocomplete({ + jQuery( "#authority_hrn" ).autocomplete({ source: availableTags, - select: function( event, ui ) {console.log(jQuery(this))} + minLength: 0, + change: function (event, ui) { + if(!ui.item){ + //http://api.jqueryui.com/autocomplete/#event-change - + // The item selected from the menu, if any. Otherwise the property is null + //so clear the item for force selection + jQuery("#authority_hrn").val(""); + } + } + //select: function( event, ui ) {console.log(jQuery(this))} }); });