From: Yasin Date: Thu, 17 Jul 2014 15:55:11 +0000 (+0200) Subject: slice-tab-users-view.html X-Git-Tag: myslice-1.0~55^2~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=7c531a6449b59e8e65f6bbc78e51992c882a1f03;p=unfold.git slice-tab-users-view.html --- diff --git a/portal/templates/slice-tab-users-view.html b/portal/templates/slice-tab-users-view.html index eef41614..103a1ff8 100644 --- a/portal/templates/slice-tab-users-view.html +++ b/portal/templates/slice-tab-users-view.html @@ -71,15 +71,8 @@ $( "#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))} });