[Jifty-commit] r3582 - jifty/branches/trimclient/share/web/static/js

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Wed Jun 27 22:33:23 EDT 2007


Author: clkao
Date: Wed Jun 27 22:33:23 2007
New Revision: 3582

Modified:
   jifty/branches/trimclient/share/web/static/js/jifty.js

Log:
alright the fabricated render_widget content actually works now.

Modified: jifty/branches/trimclient/share/web/static/js/jifty.js
==============================================================================
--- jifty/branches/trimclient/share/web/static/js/jifty.js	(original)
+++ jifty/branches/trimclient/share/web/static/js/jifty.js	Wed Jun 27 22:33:23 2007
@@ -21,7 +21,7 @@
     var onclick = 'if(event.ctrlKey||event.metaKey||event.altKey||event.shiftKey) return true; return update('
     + JSON.stringify({'continuation': {},
 		      'actions': action_hash,
-		      'fragments': [{'mode': 'Replace', 'args': {}, 'region':'__page_signup_widget', 'path': '_signup'}]})
+		      'fragments': [{'mode': 'Replace', 'args': {}, 'region':'__page-signup_widget', 'path': '_signup'}]})
     +', this)';
     onclick = onclick.replace(/"/g, "'"); //"' )# grr emacs!
     outs(
@@ -33,7 +33,7 @@
 							 'class', 'widget button',
 							 'id', 'S' + (++SERIAL + SERIAL_postfix),
 							 'value', label,
-							 'name', ''] })});
+							 'name', 'J:V-region-__page-signup_widget=_signup|J:ACTIONS=signupnow'] })});
 		     }));
 
 };
@@ -1145,7 +1145,6 @@
         var response = transport.responseXML.documentElement;
 
 	// Get action results
-	try {
         walk_node(response,
 	{ result: function(result) {
 		var moniker = result.getAttribute("moniker");
@@ -1161,7 +1160,6 @@
 				      }
 			      }});
 	    }});
-	}catch(e) { alert(e) };
 	// empty known action. XXX: we should only need to discard actions being submitted
 
         // Loop through the result looking for it


More information about the Jifty-commit mailing list