Until some way is devised to force min-width on a column, give the title column a...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 13 Aug 2008 16:36:51 +0000 (16:36 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 13 Aug 2008 16:36:51 +0000 (16:36 +0000)
so it won't get lost in 1024x768.  other columns have to be forced to width:'auto' not to
get sloughed off the side

git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@10353 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html

index 57b23d6..76621b7 100644 (file)
@@ -57,30 +57,30 @@ pointing to the JUB model (and store) that you have created.
     }
     JUBGrid.jubGridLayout = [{
         cells: [[
-            {name: '${_("ID")}', field: 'id'},
-            {name: '${_("Title")}', width: "auto", get:JUBGrid.getJUBTitle},
-            {name: '${_("Author")}', get:JUBGrid.getJUBAuthor},
-            {name: '${_("ISBN")}', get:JUBGrid.getJUBIsbn},
-            {name: '${_("Pubdate")}', get:JUBGrid.getJUBPubdate},
+            {name: '${_("ID")}', field: 'id', width:'auto'},
+            {name: '${_("Title")}', width: "180px", get:JUBGrid.getJUBTitle},
+            {name: '${_("Author")}', get:JUBGrid.getJUBAuthor, width:'auto'},
+            {name: '${_("ISBN")}', get:JUBGrid.getJUBIsbn, width:'auto'},
+            {name: '${_("Pubdate")}', get:JUBGrid.getJUBPubdate, width:'auto'},
             {name: '${_("Actual Price")}', 
                 field:'actual_price',
                 get:JUBGrid.getJUBActualPrice,
-                editor:dojox.grid.editors.Dijit, 
+                editor:dojox.grid.editors.Dijit, width:'auto', 
                 editorClass: "dijit.form.CurrencyTextBox" 
             },
             {name: '${_("Estimated Price")}', 
                 field:'estimated_price',
-                get:JUBGrid.getJUBEstimatedPrice,
+                get:JUBGrid.getJUBEstimatedPrice, width:'auto',
                 editor:dojox.grid.editors.Dijit, 
                 editorClass: "dijit.form.CurrencyTextBox" 
             },
-            {name: '${_("Vendor")}',
+            {name: '${_("Vendor")}', width:'auto',
             field: 'provider', get:JUBGrid.getProvider,
             editor:openils.editors.ProviderSelectEditor,
            },
-            {name: '${_("No. Copies")}', field: 'item_count'},
-            {name: '${_("State")}', field: 'state'},
-            {name: '${_("PO")}', get:JUBGrid.getPO}
+            {name: '${_("No. Copies")}', field: 'item_count', width:'auto'},
+            {name: '${_("State")}', field: 'state', width:'auto'},
+            {name: '${_("PO")}', get:JUBGrid.getPO, width:'auto'}
         ]]
     }];