[rhmessaging-commits] rhmessaging commits: r3739 - mgmt/trunk/wooly/python/wooly.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Mon Dec 14 11:19:49 EST 2009


Author: justi9
Date: 2009-12-14 11:19:49 -0500 (Mon, 14 Dec 2009)
New Revision: 3739

Modified:
   mgmt/trunk/wooly/python/wooly/forms.strings
Log:
Make the show fields link a button

Modified: mgmt/trunk/wooly/python/wooly/forms.strings
===================================================================
--- mgmt/trunk/wooly/python/wooly/forms.strings	2009-12-11 18:51:55 UTC (rev 3738)
+++ mgmt/trunk/wooly/python/wooly/forms.strings	2009-12-14 16:19:49 UTC (rev 3739)
@@ -176,11 +176,18 @@
     display: none;
 }
 
+div.heading {
+    margin: 1em 0;
+}
+
 [ShowableFieldSet.javascript]
 (function() {
     wooly.toggleFieldDisplay = function(id) {
         elem = $(id);
-        a = elem.getFirst("a");
+
+        div = elem.getFirst("div");
+        a = div.getFirst("a");
+
         table = elem.getFirst("table");
 
         if (table.getStyle("display") === "table") {
@@ -195,7 +202,9 @@
 
 [ShowableFieldSet.html]
 <div id="{id}" class="ShowableFieldSet">
-  <a onclick="wooly.toggleFieldDisplay('{id}');">Show extra fields</a>
+  <div class="heading">
+    <a onclick="wooly.toggleFieldDisplay('{id}');" class="action">Show extra fields</a>
+  </div>
 
   <table class="FormFieldSet">
     <tbody>{fields}</tbody>



More information about the rhmessaging-commits mailing list