:update => :users,
:url => autocomplete_for_user_group_path(@group),
:method => :get,
+ :before => '$("user_search").addClassName("ajax-loading")',
+ :complete => '$("user_search").removeClassName("ajax-loading")',
:with => 'q')
%>
:update => :principals,
:url => autocomplete_project_memberships_path(@project),
:method => :get,
+ :before => '$("principal_search").addClassName("ajax-loading")',
+ :complete => '$("principal_search").removeClassName("ajax-loading")',
:with => 'q')
%>
:frequency => 0.5,
:update => :users_for_watcher,
:method => :get,
+ :before => '$("user_search").addClassName("ajax-loading")',
+ :complete => '$("user_search").removeClassName("ajax-loading")',
:url => {
:controller => 'watchers',
:action => 'autocomplete_for_user',
request.options.requestHeaders[header] = token;
}
- if ($('ajax-indicator') && Ajax.activeRequestCount > 0) {
+ if ($('ajax-indicator') && Ajax.activeRequestCount > 0 && $$('input.ajax-loading').size() == 0) {
Element.show('ajax-indicator');
}
},
table.members td.group { padding-left: 20px; background: url(../images/group.png) no-repeat 0% 50%; }
input#principal_search, input#user_search {width:100%}
+input#principal_search, input#user_search {
+ background: url(../images/magnifier.png) no-repeat 2px 50%; padding-left:20px;
+ border:1px solid #9EB1C2; border-radius:3px; height:1.5em; width:95%;
+}
+input#principal_search.ajax-loading, input#user_search.ajax-loading {
+ background-image: url(../images/loading.gif);
+}
* html div#tab-content-members fieldset div { height: 450px; }