Author: rgardler
Date: Tue Mar 27 23:21:02 2012
New Revision: 1306050

URL: http://svn.apache.org/viewvc?rev=1306050&view=rev
Log:
allow a widget to be demoed from the URL with 'id=http://foo' - enables faster 
development cycle

Modified:
    incubator/wookie/trunk/WebContent/demo/wookie.js

Modified: incubator/wookie/trunk/WebContent/demo/wookie.js
URL: 
http://svn.apache.org/viewvc/incubator/wookie/trunk/WebContent/demo/wookie.js?rev=1306050&r1=1306049&r2=1306050&view=diff
==============================================================================
--- incubator/wookie/trunk/WebContent/demo/wookie.js (original)
+++ incubator/wookie/trunk/WebContent/demo/wookie.js Tue Mar 27 23:21:02 2012
@@ -64,6 +64,11 @@ function getWidgets(){
   });
 
   Wookie.getWidgets(updateWidgets);
+
+  var id = $.getUrlVar("id");
+  if(id) {
+      showWidget(id);
+  }  
 }
 
 function updateWidgets(widgets){


Reply via email to