OU settings page tweaks
authorGalen Charlton <gmc@esilibrary.com>
Thu, 19 May 2011 16:47:57 +0000 (12:47 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 25 May 2011 14:33:02 +0000 (10:33 -0400)
* resize grid on window resize
* add 'tall' CSS class to grid

Author: Bob Wicksall <bwicksall@pls-net.org>
Signed-off-by: Bob Wicksall <bwicksall@pls-net.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml

index 017ab39..49d5537 100644 (file)
@@ -59,7 +59,7 @@
                         ]]
                     }];
                 </script>
-                <div dojoType='dojox.Grid' jsId='osGrid'> </div>
+                <div dojoType='dojox.Grid' jsId='osGrid' class='tall'> </div>
             </div>
         </div>
 
     </body>
 </html>
 
+
+                    function resizeGrid() {
+                       osGrid.resize();
+                       osGrid.update();
+                    }
+
+                    dojo.addOnLoad(function() {
+                       dojo.connect(window, "onresize", resizeGrid);
+                    });