Revision ff5c64a5
Added by Amos Benari about 10 years ago
app/assets/javascripts/application.js | ||
---|---|---|
return false;
|
||
});
|
||
|
||
$('*[data-ajax-url]').each(function() {
|
||
var url = $(this).data('ajax-url');
|
||
$(this).load(url, function(response, status, xhr) {
|
||
if (status == "error") {
|
||
$(this).closest(".tab-content").find("#spinner").html(__('Failed to fetch: ') + xhr.status + " " + xhr.statusText);
|
||
}
|
||
if ($(this).data('on-complete')){
|
||
window[$(this).data('on-complete')].call(null, this, status);
|
||
}
|
||
});
|
||
});
|
||
|
||
multiSelectOnLoad();
|
||
}
|
||
|
||
... | ... | |
return URL_PREFIX + path;
|
||
}
|
||
|
||
$(function() {
|
||
$('*[data-ajax-url]').each(function() {
|
||
var url = $(this).data('ajax-url');
|
||
$(this).load(url, function(response, status, xhr) {
|
||
if (status == "error") {
|
||
$(this).closest(".tab-content").find("#spinner").html(__('Failed to fetch: ') + xhr.status + " " + xhr.statusText);
|
||
}
|
||
if ($(this).data('on-complete')){
|
||
window[$(this).data('on-complete')].call(null, this, status);
|
||
}
|
||
});
|
||
});
|
||
});
|
||
|
||
$.fn.indicator_show = function(){
|
||
$(this).parents('.form-group').find('img').show();
|
||
}
|
Also available in: Unified diff
fixes #5470 vm state doesn't load on show page after redirect from new host