Browse Source

Evolution #85: Bandeau de confirmation

bastien 13 years ago
parent
commit
446a1176ba
1 changed files with 10 additions and 0 deletions
  1. 10 0
      src/Muzich/CoreBundle/Resources/views/layout.html.twig

+ 10 - 0
src/Muzich/CoreBundle/Resources/views/layout.html.twig View File

@@ -43,6 +43,16 @@
43 43
       <a class="message-close" href="#" title="fermer"><img alt="close" src="{{ asset('bundles/muzichcore/img/1317386146_cancel.png') }}" /></a>
44 44
       <h3>{{ flash|trans({}, 'flash') }}</h3>
45 45
     </div>
46
+  
47
+    {% if key == 'success' %}
48
+    <script type="text/javascript" >
49
+      $(document).ready(function(){
50
+        window.setTimeout(function(){
51
+          $('div.success').slideUp();
52
+        }, 3000);
53
+      });
54
+    </script>
55
+    {% endif %}
46 56
   {% endfor %}
47 57
   
48 58
   {% include "MuzichCoreBundle:Info:container.html.twig" %}