diff options
author | Joey Hess <joey@kitenet.net> | 2012-07-30 14:08:22 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-07-30 14:08:22 -0400 |
commit | a9941308434354046fa51d3327c5e05ff080a247 (patch) | |
tree | 025bc566b43d01f6e41908ed635c467d168cb048 /templates | |
parent | 1f671ee40c7f26d0adb16408ba1cf7fc9ceb3a7a (diff) |
implement server-side alert closing
Rather than using bootstrap's client-side closing.
Now closed alerts stay closed.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/alert.hamlet | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/alert.hamlet b/templates/alert.hamlet index 2d0daf841..bf84482b1 100644 --- a/templates/alert.hamlet +++ b/templates/alert.hamlet @@ -1,4 +1,4 @@ -<div .alert .fade .in .#{divclass} :block:.alert-block ##{alertid}> +<div .alert .fade .in .#{divclass} :block:.alert-block ##{alertid} :closable:onclick="(function( $ ) { $.get('@{closealert}') })( jQuery );"> $if closable <a .close data-dismiss="alert" href="#">×</a> $maybe h <- heading |