diff --git a/.travis.yml b/.travis.yml index c7d95a73..a2aecc8c 100755 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,11 @@ language: php php: - - 5.4 - 5.5 + - 5.6 before_script: - composer self-update - composer install --no-interaction --dev -script: VERBOSE=true vendor/bin/tester tests/ \ No newline at end of file +script: VERBOSE=true vendor/bin/phing check diff --git a/Resources/public/js/application.js b/Resources/public/js/application.js index 9ed4183a..737aafaf 100755 --- a/Resources/public/js/application.js +++ b/Resources/public/js/application.js @@ -275,13 +275,19 @@ $(function () { }); $.nette.ext('alerts', { success: function () { - var $alert = $(".alert"); - $alert.fadeTo(0, 0).fadeTo(500, 1); - window.setTimeout(function() { - $alert.fadeTo(500, 0).slideUp(500, function(){ - $(this).remove(); - }); - }, 4000); + $('#snippet--flashes .alert').each(function () { + var $alert = $(this); + + if (!$alert.data('venne-animation-apply')) { + $alert.attr('data-venne-animation-apply', true); + $alert.fadeTo(0, 0).fadeTo(500, 1); + window.setTimeout(function () { + $alert.fadeTo(500, 0).slideUp(500, function () { + $(this).remove(); + }); + }, 4000); + } + }); } }); $.nette.init(); diff --git a/Resources/templates/@layout.latte b/Resources/templates/@layout.latte index cb7697ea..a6d552e9 100755 --- a/Resources/templates/@layout.latte +++ b/Resources/templates/@layout.latte @@ -27,7 +27,7 @@