##// END OF EJS Templates
Restyles user search fields and ajax indicator....
Jean-Philippe Lang -
r8754:bd2581e7c958
parent child
Show More
@@ -38,6 +38,8
38 38 :update => :users,
39 39 :url => autocomplete_for_user_group_path(@group),
40 40 :method => :get,
41 :before => '$("user_search").addClassName("ajax-loading")',
42 :complete => '$("user_search").removeClassName("ajax-loading")',
41 43 :with => 'q')
42 44 %>
43 45
@@ -70,6 +70,8
70 70 :update => :principals,
71 71 :url => autocomplete_project_memberships_path(@project),
72 72 :method => :get,
73 :before => '$("principal_search").addClassName("ajax-loading")',
74 :complete => '$("principal_search").removeClassName("ajax-loading")',
73 75 :with => 'q')
74 76 %>
75 77
@@ -12,6 +12,8
12 12 :frequency => 0.5,
13 13 :update => :users_for_watcher,
14 14 :method => :get,
15 :before => '$("user_search").addClassName("ajax-loading")',
16 :complete => '$("user_search").removeClassName("ajax-loading")',
15 17 :url => {
16 18 :controller => 'watchers',
17 19 :action => 'autocomplete_for_user',
@@ -503,7 +503,7 Ajax.Responders.register({
503 503 request.options.requestHeaders[header] = token;
504 504 }
505 505
506 if ($('ajax-indicator') && Ajax.activeRequestCount > 0) {
506 if ($('ajax-indicator') && Ajax.activeRequestCount > 0 && $$('input.ajax-loading').size() == 0) {
507 507 Element.show('ajax-indicator');
508 508 }
509 509 },
@@ -517,6 +517,13 div#tab-content-members fieldset div, div#tab-content-users fieldset div { max-h
517 517 table.members td.group { padding-left: 20px; background: url(../images/group.png) no-repeat 0% 50%; }
518 518
519 519 input#principal_search, input#user_search {width:100%}
520 input#principal_search, input#user_search {
521 background: url(../images/magnifier.png) no-repeat 2px 50%; padding-left:20px;
522 border:1px solid #9EB1C2; border-radius:3px; height:1.5em; width:95%;
523 }
524 input#principal_search.ajax-loading, input#user_search.ajax-loading {
525 background-image: url(../images/loading.gif);
526 }
520 527
521 528 * html div#tab-content-members fieldset div { height: 450px; }
522 529
General Comments 0
You need to be logged in to leave comments. Login now