You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by an...@apache.org on 2007/04/23 03:11:15 UTC
svn commit: r531307 -
/tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js
Author: andyhot
Date: Sun Apr 22 18:11:13 2007
New Revision: 531307
URL: http://svn.apache.org/viewvc?view=rev&rev=531307
Log:
Support a 'status' type - default behavior is to publish the message to the specified topic (think toaster amongst others)
Modified:
tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js
Modified: tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js?view=diff&rev=531307&r1=531306&r2=531307
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js (original)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/core.js Sun Apr 22 18:11:13 2007
@@ -128,6 +128,13 @@
window.location=elms[i].getAttribute("url");
return;
}
+
+ if (elmType == "status") {
+ dojo.event.topic.publish(id,
+ {message: tapestry.html.getContentAsString(elms[i])}
+ );
+ continue;
+ }
// handle javascript evaluations
if (elmType == "script") {