173 |
} ) ; |
} ) ; |
174 |
} |
} |
175 |
|
|
176 |
function load_css(css_filename) { |
function load_css( css_filename ) { |
177 |
|
|
178 |
if (loading.css) { |
if (loading.css) { |
179 |
Logger.info('loading of css '+css_filename+' skipped, load in progress'); |
Logger.info('loading of css '+css_filename+' skipped, load in progress'); |
180 |
return; |
return; |
181 |
} |
} |
182 |
|
|
183 |
Logger.info('load_css '+css_filename); |
var css_url = url + 'css?css_filename='+css_filename; |
184 |
|
|
185 |
|
Logger.info('load_css '+css_url); |
186 |
|
|
187 |
show_working(); |
show_working(); |
188 |
|
|
189 |
new Ajax.Updater( 'row_css', url+'css', { |
new Ajax.Updater( 'row_css', css_url, { |
190 |
asynchronous: 1, |
asynchronous: 1, |
191 |
onLoading: function(request) { |
onLoading: function(request) { |
192 |
loading.css = 1; |
loading.css = 1; |
206 |
if (! css_filename) css_filename = 'user.css'; |
if (! css_filename) css_filename = 'user.css'; |
207 |
|
|
208 |
css_rnd++; |
css_rnd++; |
209 |
var css_url = url + 'css/' + css_filename + '?' + css_rnd; |
var css_url = '/css/' + css_filename + '?' + css_rnd; |
210 |
Logger.info('reload_css from '+css_url); |
Logger.info('reload_css from '+css_url); |
211 |
$('user_css_link').href = css_url; |
$('user_css_link').href = css_url; |
212 |
|
|