Mailinglist Archive: yast-commit (883 mails)
| < Previous | Next > |
[yast-commit] <web-client> master : Clear flash message after display
- From: Klaus Kämpf <kkaempf@xxxxxxx>
- Date: Fri, 17 Jul 2009 18:09:38 +0200
- Message-id: <E1MRq0M-0004A4-MJ@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit a1d4d55f265606b6a35ab9dd4feea2fc65d2c749
Author: Klaus Kämpf <kkaempf@xxxxxxx>
Date: Fri Jul 17 18:09:38 2009 +0200
Clear flash message after display
Huh, this should be handled by Rails somehow. For now, I consider it a
workaround.
---
webclient/app/views/layouts/main.rhtml | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/webclient/app/views/layouts/main.rhtml
b/webclient/app/views/layouts/main.rhtml
index 829e3fa..4b97532 100644
--- a/webclient/app/views/layouts/main.rhtml
+++ b/webclient/app/views/layouts/main.rhtml
@@ -60,6 +60,7 @@
<% [:error, :warning, :notice, :message].each do |name| %>
<% if flash[name] %>
<%= "<div class=\"notifications\"
id=\"#{name}\">#{flash[name]}</div>" %>
+ <% flash.delete name -%>
<% end %>
<% end %>
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
commit a1d4d55f265606b6a35ab9dd4feea2fc65d2c749
Author: Klaus Kämpf <kkaempf@xxxxxxx>
Date: Fri Jul 17 18:09:38 2009 +0200
Clear flash message after display
Huh, this should be handled by Rails somehow. For now, I consider it a
workaround.
---
webclient/app/views/layouts/main.rhtml | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/webclient/app/views/layouts/main.rhtml
b/webclient/app/views/layouts/main.rhtml
index 829e3fa..4b97532 100644
--- a/webclient/app/views/layouts/main.rhtml
+++ b/webclient/app/views/layouts/main.rhtml
@@ -60,6 +60,7 @@
<% [:error, :warning, :notice, :message].each do |name| %>
<% if flash[name] %>
<%= "<div class=\"notifications\"
id=\"#{name}\">#{flash[name]}</div>" %>
+ <% flash.delete name -%>
<% end %>
<% end %>
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
| < Previous | Next > |