grid heigth fixes, formatting, removed old imported JS since it was only a few lines...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 11 May 2009 01:50:43 +0000 (01:50 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 11 May 2009 01:50:43 +0000 (01:50 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13122 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/conify/global/config/circ_modifier.js [deleted file]
Open-ILS/web/templates/default/conify/global/config/circ_modifier.tt2

diff --git a/Open-ILS/web/js/ui/default/conify/global/config/circ_modifier.js b/Open-ILS/web/js/ui/default/conify/global/config/circ_modifier.js
deleted file mode 100644 (file)
index 983ea91..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-dojo.require('dojox.grid.DataGrid');
-dojo.require('dojox.grid.cells.dijit');
-dojo.require('dojo.data.ItemFileWriteStore');
-dojo.require('dijit.form.CheckBox');
-dojo.require('dijit.form.FilteringSelect');
-dojo.require('openils.widget.AutoGrid');
-
-var cmCache = {};
-
-function buildCMGrid() {
-
- cmGrid.overrideEditWidgets.sip2_media_type = sip2Selector;   
- cmGrid.loadAll({order_by:{ccm : 'name'}});
-}
-   
-openils.Util.addOnLoad(buildCMGrid);
-
-
-
-         
\ No newline at end of file
index 961f1ff..9fef57a 100644 (file)
@@ -1,38 +1,49 @@
 [% WRAPPER default/base.tt2 %]
-<script src='[% ctx.media_prefix %]/js/ui/default/conify/global/config/circ_modifier.js'> </script>
 <h1>Circulation Modifier</h1> <br/>
 
 <div dojoType="dijit.layout.ContentPane" layoutAlign="top">
     <script type ="text/javascript">
+
+        dojo.require('dijit.form.FilteringSelect');
+        dojo.require('openils.widget.AutoGrid');
+
         function formatSIPMediaType(inDatum) {
-        switch (inDatum) {
-        case '000':
-        return 'Other';
-        case '001':
-        return 'Book';
-        case '002':
-        return 'Magazine';
-        case '003':
-        return 'Bound Journal';
-        case '004':
-        return 'Audio Tape';
-        case '005':
-        return 'Video Tape';
-        case '006':
-        return 'CD/CDROM';
-        case '007':
-        return 'Diskette';
-        case '008':
-        return 'Book with diskette';
-        case '009':
-        return 'Book with CD';
-        case '010':
-        return 'Book with audio tape';
-        }
+            switch (inDatum) {
+                case '000':
+                    return 'Other';
+                case '001':
+                    return 'Book';
+                case '002':
+                    return 'Magazine';
+                case '003':
+                    return 'Bound Journal';
+                case '004':
+                    return 'Audio Tape';
+                case '005':
+                    return 'Video Tape';
+                case '006':
+                    return 'CD/CDROM';
+                case '007':
+                    return 'Diskette';
+                case '008':
+                    return 'Book with diskette';
+                case '009':
+                    return 'Book with CD';
+                case '010':
+                    return 'Book with audio tape';
+            }
         }
 
+        openils.Util.addOnLoad(
+            function() {
+                cmGrid.overrideEditWidgets.sip2_media_type = sip2Selector;
+                cmGrid.loadAll({order_by:{ccm : 'name'}});
+            }
+        );
+
     </script>
-    <div class="hidden"> <select dojoType="dijit.form.FilteringSelect" jsId="sip2Selector">
+    <div class="hidden"> 
+        <select dojoType="dijit.form.FilteringSelect" jsId="sip2Selector">
             <option value='000'>Other</option>
             <option value='001' selected='selected'>Book</option>
             <option value='002'>Magazine</option>
                 editOnEnter='true'>
             <thead>
                 <tr>
-                    <th field="magnetic_media"
-                        options='No,Yes' values='f,t'
-                        formatter='formatMagneticMedia'/>
+                    <th field="magnetic_media" options='No,Yes' values='f,t'/>
                     <th field="sip2_media_type" formatter='formatSIPMediaType'/>
-
                 </tr>
-
             </thead>
         </table>
     </div>