You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2013/11/26 19:10:31 UTC

git commit: TAP5-2237: t5/core/alert module - wrong default CSS class for alert

Updated Branches:
  refs/heads/master 817b15b61 -> d34783f05


TAP5-2237: t5/core/alert module - wrong default CSS class for alert


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/d34783f0
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/d34783f0
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/d34783f0

Branch: refs/heads/master
Commit: d34783f050b4aa0c659998f21028a81de0c08691
Parents: 817b15b
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Tue Nov 26 10:10:25 2013 -0800
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Tue Nov 26 10:10:25 2013 -0800

----------------------------------------------------------------------
 .../src/main/coffeescript/META-INF/modules/t5/core/alert.coffee   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/d34783f0/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/alert.coffee
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/alert.coffee b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/alert.coffee
index 1a1bfcd..4816b8f 100644
--- a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/alert.coffee
+++ b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/alert.coffee
@@ -106,7 +106,8 @@ define ["./dom", "./console", "./messages", "./ajax", "underscore", "./bootstrap
 
       return unless container
 
-      className = severityToClass[data.severity] or "alert"
+      # Map from severity name to a CSS class; using alert-info if no severity, or unknown severity
+      className = severityToClass[data.severity] or "alert-info"
 
       content = if data.markup then data.message else _.escape data.message