Просмотр исходного кода

Fade existing alerts before swapping them for new ones.

Rafał Pitoń 10 лет назад
Родитель
Сommit
8659f6dfea
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      misago/static/misago/js/misago-posts.js

+ 1 - 0
misago/static/misago/js/misago-posts.js

@@ -65,6 +65,7 @@ $(function() {
 
       if (!Misago.ReportPost.is_open()) {
         Misago.ReportPost.open(_this, _this.$e.data('report-url'), function(data) {
+          _this.$alerts.fadeTo(0, 0.2);
           _this.$alerts.html(data.alerts);
           _this.$alerts.fadeIn();
           _this.$report.attr('disabled', 'disabled');