JBoss Rich Faces SVN: r23156 - in modules/tests/metamer/trunk/application/src/main: webapp/resources/script and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: jjamrich
Date: 2012-01-18 03:41:09 -0500 (Wed, 18 Jan 2012)
New Revision: 23156
Added:
modules/tests/metamer/trunk/application/src/main/webapp/resources/script/pushHelper.js
Removed:
modules/tests/metamer/trunk/application/src/main/webapp/resources/script/push.js
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/demo/push/TopicsContextMessageProducer.java
Log:
RFPL-982: Change default message from pushBot
Change message to better describe that message is generated periodically by bot, and pushed to client
Modified: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/demo/push/TopicsContextMessageProducer.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/demo/push/TopicsContextMessageProducer.java 2012-01-17 11:32:37 UTC (rev 23155)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/demo/push/TopicsContextMessageProducer.java 2012-01-18 08:41:09 UTC (rev 23156)
@@ -39,8 +39,8 @@
public static final String PUSH_TOPICS_CONTEXT_TOPIC = "pushTopicsContext";
- private String text = "Servus!";
- private String author = "Janko Hrasko";
+ private String text = "Hello, still alive!";
+ private String author = "Push Bot";
/*
* (non-Javadoc)
Deleted: modules/tests/metamer/trunk/application/src/main/webapp/resources/script/push.js
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/resources/script/push.js 2012-01-17 11:32:37 UTC (rev 23155)
+++ modules/tests/metamer/trunk/application/src/main/webapp/resources/script/push.js 2012-01-18 08:41:09 UTC (rev 23156)
@@ -1,6 +0,0 @@
-function updateList(data) {
- author = '<span style="font-weight:bold" class="author">' + data.author + '</span>: ';
- message = '<span class="message">' + data.text + '</span>';
- timestamp = ' <span>[' + data.timestamp + ']</span>';
- jQuery("ul.push-list").append('<li>' + author + message + timestamp + '</li>');
-}
Copied: modules/tests/metamer/trunk/application/src/main/webapp/resources/script/pushHelper.js (from rev 23155, modules/tests/metamer/trunk/application/src/main/webapp/resources/script/push.js)
===================================================================
--- modules/tests/metamer/trunk/application/src/main/webapp/resources/script/pushHelper.js (rev 0)
+++ modules/tests/metamer/trunk/application/src/main/webapp/resources/script/pushHelper.js 2012-01-18 08:41:09 UTC (rev 23156)
@@ -0,0 +1,6 @@
+function updateList(data) {
+ author = '<span style="font-weight:bold" class="author">' + data.author + '</span>: ';
+ message = '<span class="message">' + data.text + '</span>';
+ timestamp = ' <span>[' + data.timestamp + ']</span>';
+ jQuery("ul.push-list").append('<li>' + author + message + timestamp + '</li>');
+}