Browse Source

[closes #116] added hide callback to display none the flash msg after animation

Come 8 years ago
parent
commit
8542e0f1e6
1 changed files with 4 additions and 2 deletions
  1. 4 2
      tracim/tracim/templates/pod.mak

+ 4 - 2
tracim/tracim/templates/pod.mak View File

@@ -10,7 +10,7 @@
10 10
 <%def name="HELP_MODAL_DIALOG(help_page)"><div id="help-modal-dialog-${help_page}" class="modal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true"><div class="modal-dialog"><div class="modal-content"></div></div></div></%def>
11 11
 
12 12
 <%def name="NO_CONTENT_INFO(message)"><div class="alert alert-warning" role="alert">${ICO(32, 'status/dialog-information')} ${message|n}</div></%def>
13
-                
13
+
14 14
 <%def name="ICO_ACTION(icon_size, icon_path, title, link_url, current_user, required_profile_id)">
15 15
     % if current_user.profile.id>=required_profile_id:
16 16
         <a href="${link_url}">${ICO_TOOLTIP(icon_size, icon_path, title)}</a>
@@ -79,7 +79,9 @@
79 79
                 $('.alert-error').removeClass('alert-error').addClass('alert-danger');
80 80
 
81 81
                 window.setTimeout(function() {
82
-                    $("#flash-message-to-fade-out").fadeTo(2000, 0.75).fadeTo(2000, 0.5).fadeTo(8000, 0);
82
+                    $("#flash-message-to-fade-out").fadeTo(8000, 0, 'linear', function () {
83
+                        $(this).hide()
84
+                    });
83 85
                 }, 2000);
84 86
             });
85 87
         </script>