var AlertManager = {
  alerts: null,

  init: function () {
    this.alerts = $('div.alert');
    this.alerts.find('button.close').on('click', function () {
      $(this).parents('div.alert').remove();
    });
    if ($.isNotNull(this.alerts)) {
      this.launchCounter();
    }
  },

  addAlert: function (message, type) {
    var notification = '<div class="alert alert-%type%">%message%<button type="button" class="close">×</button></div>';
    notification = notification.replace('%type%', type).replace('%message%', message);

    $('#flash-container').prepend($(notification));
    this.init();
  },

  launchCounter: function () {
    var alerts = this.alerts;
    setTimeout(function () {
      alerts.fadeOut(1000, function () {
        $(this).remove();
      });
    }, 5000);
  }
};

$(document).on('ready', function () {
  // setup confirm box
  $('a.alert-delete').on('click', function (e) {
    var hasToDeleteItem = confirm('Item will be deleted. Are you sure ?');

    if (!hasToDeleteItem) {
      e.stopPropagation();
      e.preventDefault();
    }
  });
  AlertManager.init();
});
@@ -1095,8 +1095,876 @@
 t();%0A%7D);
+%0A%0A// jquery 1.9 remove $.browser features, but we still need it%0A// so we use a backport from http://jb.demonte.fr/blog/jquery-1-9-0-and-browser/%0A/**%0A * Browser detection for jQuery 1.9%0A */%0A(function ($) %7B%0A  var ua = navigator.userAgent.toLowerCase(),%0A    match = /(chrome)%5B %5C/%5D(%5B%5Cw.%5D+)/.exec(ua) %7C%7C%0A      /(webkit)%5B %5C/%5D(%5B%5Cw.%5D+)/.exec(ua) %7C%7C%0A      /(opera)(?:.*version%7C)%5B %5C/%5D(%5B%5Cw.%5D+)/.exec(ua) %7C%7C%0A      /(msie) (%5B%5Cw.%5D+)/.exec(ua) %7C%7C%0A      ua.indexOf(%22compatible%22) %3C 0 && /(mozilla)(?:.*? rv:(%5B%5Cw.%5D+)%7C)/.exec(ua) %7C%7C %5B%5D,%0A    browser = match%5B1%5D %7C%7C %22%22,%0A    version =  match%5B2%5D %7C%7C %220%22;%0A%0A  $.browser = %7B%7D;%0A%0A  if (browser) %7B%0A    $.browser%5Bbrowser%5D = true;%0A    $.browser.version = version;%0A  %7D%0A%0A  // Chrome is Webkit, but Webkit is also Safari.%0A  if ($.browser.chrome) %7B%0A    $.browser.webkit = true;%0A  %7D else if ($.browser.webkit) %7B%0A    $.browser.safari = true;%0A  %7D%0A%7D)(jQuery);

add jquery $.browser backport