@@ -38,6 +38,8 | |||||
38 | :update => :users, |
|
38 | :update => :users, | |
39 | :url => autocomplete_for_user_group_path(@group), |
|
39 | :url => autocomplete_for_user_group_path(@group), | |
40 | :method => :get, |
|
40 | :method => :get, | |
|
41 | :before => '$("user_search").addClassName("ajax-loading")', | |||
|
42 | :complete => '$("user_search").removeClassName("ajax-loading")', | |||
41 | :with => 'q') |
|
43 | :with => 'q') | |
42 | %> |
|
44 | %> | |
43 |
|
45 |
@@ -70,6 +70,8 | |||||
70 | :update => :principals, |
|
70 | :update => :principals, | |
71 | :url => autocomplete_project_memberships_path(@project), |
|
71 | :url => autocomplete_project_memberships_path(@project), | |
72 | :method => :get, |
|
72 | :method => :get, | |
|
73 | :before => '$("principal_search").addClassName("ajax-loading")', | |||
|
74 | :complete => '$("principal_search").removeClassName("ajax-loading")', | |||
73 | :with => 'q') |
|
75 | :with => 'q') | |
74 | %> |
|
76 | %> | |
75 |
|
77 |
@@ -12,6 +12,8 | |||||
12 | :frequency => 0.5, |
|
12 | :frequency => 0.5, | |
13 | :update => :users_for_watcher, |
|
13 | :update => :users_for_watcher, | |
14 | :method => :get, |
|
14 | :method => :get, | |
|
15 | :before => '$("user_search").addClassName("ajax-loading")', | |||
|
16 | :complete => '$("user_search").removeClassName("ajax-loading")', | |||
15 | :url => { |
|
17 | :url => { | |
16 | :controller => 'watchers', |
|
18 | :controller => 'watchers', | |
17 | :action => 'autocomplete_for_user', |
|
19 | :action => 'autocomplete_for_user', |
@@ -503,7 +503,7 Ajax.Responders.register({ | |||||
503 | request.options.requestHeaders[header] = token; |
|
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 | Element.show('ajax-indicator'); |
|
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 | table.members td.group { padding-left: 20px; background: url(../images/group.png) no-repeat 0% 50%; } |
|
517 | table.members td.group { padding-left: 20px; background: url(../images/group.png) no-repeat 0% 50%; } | |
518 |
|
518 | |||
519 | input#principal_search, input#user_search {width:100%} |
|
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 | * html div#tab-content-members fieldset div { height: 450px; } |
|
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