slice-tab-users-view.html
authorYasin <mohammed-yasin.rahman@lip6.fr>
Thu, 17 Jul 2014 15:55:11 +0000 (17:55 +0200)
committerYasin <mohammed-yasin.rahman@lip6.fr>
Thu, 17 Jul 2014 15:55:11 +0000 (17:55 +0200)
portal/templates/slice-tab-users-view.html

index eef4161..103a1ff 100644 (file)
                                $( "#auth_list" ).autocomplete({
                                source: list_authorities,
                                minLength: 0,
-                               change: function (event, ui) {
-                                               get_users_in_slice(this.value); 
-                                       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("#auth_list").val("");
-                                                       alert("Please select an authority from the given list.")
-                                       }
+                               select: function (event, ui) {
+                                               get_users_in_slice(ui.item.value);
                                }
                                //select: function( event, ui ) {console.log(jQuery(this))}
                        });