X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/6a38c4ea4b6853116bf2302cd73d6c51f696888a..9186b07ad70787977f5b1e589bf20b7a4beed4c0:/project/static/js/views/flash.js?ds=sidebyside diff --git a/project/static/js/views/flash.js b/project/static/js/views/flash.js index 3f4f4759..b2240e43 100644 --- a/project/static/js/views/flash.js +++ b/project/static/js/views/flash.js @@ -27,9 +27,14 @@ var FlashView = View.extend({ modelFirstFlashMessageChanged: function(property, value) { this.element.fadeOut('slow', function() { + this.element.css({'z-index': 0}); this.shownMessage = value; this.render(); - this.element.fadeIn('slow'); + + if(this.shownMessage) { + this.element.css({'z-index': 1000}); + this.element.fadeIn('slow'); + } }.bind(this)); } });