Project

General

Profile

« Previous | Next » 

Revision 5d6ab0b1

Added by Amos Benari over 10 years ago

refs #3811 - additional bootstrap 3 updates/fixes

  • css renamed alert-error is now alert-danger
  • spinner progress indicators are back
  • fixed progress bar on create host

View differences:

app/assets/javascripts/application.js
}
$('.flash.error').each(function(index, item) {
if ($('.alert-message.alert-error.base').length == 0) {
if ($('.alert-message.alert-danger.base').length == 0) {
if ($('#host-conflicts-modal').length == 0) {
notify(item, 'error');
}
......
var data = $("form").serialize().replace('method=put', 'method=post');
data = data + '&host_id=' + host_id
if (env_id == "") return;
$(element).indicator_show();
$.ajax({
type: 'post',
url: url,
......
$('[rel="twipsy"]').tooltip();
},
complete: function() {
$('#hostgroup_indicator').hide();
$(element).indicator_hide();
}
})
}
......
});
$.fn.indicator_show = function(){
$(this).parent().find('img').show();
$(this).parents('.form-group').find('img').show();
}
$.fn.indicator_hide = function(){
$(this).parent().find('img').hide();
$(this).parents('.form-group').find('img').hide();
}
function spinner_placeholder(text){

Also available in: Unified diff