slice-tab-users-view.html
[myslice.git] / portal / templates / slice-tab-users-view.html
index 22fd93e..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("");
-                                       }
+                               select: function (event, ui) {
+                                               get_users_in_slice(ui.item.value);
                                }
                                //select: function( event, ui ) {console.log(jQuery(this))}
                        });
                  <li class="list-group-item">Authority</li>
                  <li class="list-group-item" style="padding-left:5px;">
                        <input type="text" id="auth_list"  style ="min-width:190px;" 
-                       title="This is the authority that you belong to. You can view users of other authorities (organization) from the list that apears when you click in the field and start to type.
-                                Use the arrow keys to scroll through the list; type part of the name to narrow down the list."/>
+                       title="The default value is  the authority that you belong to and the selected users belong to this slice.
+                                  You can view users of other authorities (organizations) from the list that apears when you click in the field and start to type.
+                                  Use the arrow keys to scroll through the list; type part of the name to narrow down the list."/>
           </li>
                </ul>