[open-ils-commits] r803 - in servres/trunk/conifer: static templates (gfawcett)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Feb 25 22:55:46 EST 2010


Author: gfawcett
Date: 2010-02-25 22:55:44 -0500 (Thu, 25 Feb 2010)
New Revision: 803

Added:
   servres/trunk/conifer/static/common.js
Modified:
   servres/trunk/conifer/static/main.css
   servres/trunk/conifer/templates/master.xhtml
Log:
Fix bug that made radio button circles into 100%-wide ovals.

To keep the text INPUTs and TEXTAREAs as wide as possible, but other
inputs small, I added a JavaScript snippet to ensure the text elements
have a CSS-addressable class ('text'); then I updated the stylesheet
to only set 'text' inputs 100% wide.

Added: servres/trunk/conifer/static/common.js
===================================================================
--- servres/trunk/conifer/static/common.js	                        (rev 0)
+++ servres/trunk/conifer/static/common.js	2010-02-26 03:55:44 UTC (rev 803)
@@ -0,0 +1,4 @@
+$(function() { 
+    // make sure all INPUT and TEXTAREA elements are in the 'text' class, for CSS.
+    $('input:text,textarea').addClass('textinput'); 
+});
\ No newline at end of file

Modified: servres/trunk/conifer/static/main.css
===================================================================
--- servres/trunk/conifer/static/main.css	2010-02-26 03:43:25 UTC (rev 802)
+++ servres/trunk/conifer/static/main.css	2010-02-26 03:55:44 UTC (rev 803)
@@ -309,7 +309,7 @@
 .metadata_table tbody td {
     padding: 8px; border: #ddd 1px solid;
 }
-.metadata_table input { width: 600px; }
+.metadata_table .textinput { width: 600px; }
 .metadata_table .meta3 input { width: 10px; }
 
 .metadata_table tbody th {

Modified: servres/trunk/conifer/templates/master.xhtml
===================================================================
--- servres/trunk/conifer/templates/master.xhtml	2010-02-26 03:43:25 UTC (rev 802)
+++ servres/trunk/conifer/templates/master.xhtml	2010-02-26 03:55:44 UTC (rev 803)
@@ -20,6 +20,7 @@
     using the trunk version of jquery to get around some IE 8 problems
     -->
     <script type="text/javascript" src="${ROOT}/static/jquery/js/jquery.js"/>
+    <script type="text/javascript" src="${ROOT}/static/common.js"/>
     <!--
     <script type="text/javascript" src="${ROOT}/static/jquery/js/jquery-1.3.2.min.js"/>
     -->



More information about the open-ils-commits mailing list