Commit 4221949b069d744846d6e6680526f4c85b94a186
1 parent
63c12a71
Exists in
master
and in
28 other branches
Replacing prototype with jQuery on the loading method
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
public/javascripts/application.js
@@ -110,9 +110,9 @@ function hideOthersIconSelector(current_div) { | @@ -110,9 +110,9 @@ function hideOthersIconSelector(current_div) { | ||
110 | } | 110 | } |
111 | 111 | ||
112 | function loading(element_id, message) { | 112 | function loading(element_id, message) { |
113 | - $(element_id).addClassName('loading'); | 113 | + jQuery(element_id).addClass('loading'); |
114 | if (message) { | 114 | if (message) { |
115 | - $(element_id).update(message); | 115 | + jQuery(element_id).html(message); |
116 | } | 116 | } |
117 | } | 117 | } |
118 | function small_loading(element_id, message) { | 118 | function small_loading(element_id, message) { |
@@ -122,9 +122,9 @@ function small_loading(element_id, message) { | @@ -122,9 +122,9 @@ function small_loading(element_id, message) { | ||
122 | } | 122 | } |
123 | } | 123 | } |
124 | function loading_done(element_id) { | 124 | function loading_done(element_id) { |
125 | - $(element_id).removeClassName('loading'); | ||
126 | - $(element_id).removeClassName('small-loading'); | ||
127 | - $(element_id).removeClassName('small-loading-dark'); | 125 | + jQuery(element_id).removeClass('loading'); |
126 | + jQuery(element_id).removeClass('small-loading'); | ||
127 | + jQuery(element_id).removeClass('small-loading-dark'); | ||
128 | } | 128 | } |
129 | function open_loading(message) { | 129 | function open_loading(message) { |
130 | jQuery('body').append("<div id='overlay_loading' class='ui-widget-overlay' style='display: none'/><div id='overlay_loading_modal' style='display: none'><p>"+message+"</p><img src='/images/loading-dark.gif'/></div>"); | 130 | jQuery('body').append("<div id='overlay_loading' class='ui-widget-overlay' style='display: none'/><div id='overlay_loading_modal' style='display: none'><p>"+message+"</p><img src='/images/loading-dark.gif'/></div>"); |