added default net access level - removed the ability to select no net access level
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 14 Sep 2006 20:33:45 +0000 (20:33 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 14 Sep 2006 20:33:45 +0000 (20:33 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6113 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/xul/staff_client/server/patron/ue.xhtml
Evergreen/xul/staff_client/server/patron/ue_config.js
Evergreen/xul/staff_client/server/patron/ue_ui.js

index 963a204..40cff81 100644 (file)
                                                                                <td>
                                                                                        <div class='wide left'>
                                                                                                <select id='ue_net_level'>
-                                                                                                       <option value=''> -- None Selected -- </option>
                                                                                                </select>
                                                                                        </div>
                                                                                </td>
index 7f24f8a..b582e85 100644 (file)
@@ -16,6 +16,7 @@ const CHECK_BARCODE           = 'open-ils.actor:open-ils.actor.barcode.exists';
 const defaultState             = 'GA';
 const defaultCountry           = 'USA';
 const defaultNetAccess = 'None';
+const defaultNetLevel   = 1;
 const CSS_INVALID_DATA = 'invalid_value';
 const ADULT_AGE                        = 18;
 //const GUARDIAN_NOTE          = 'SYSTEM: Parent/Guardian';
@@ -887,6 +888,8 @@ function uEditBuildSCMField(statcat, row) {
                                        /* map does not exist in the map array but now has data */
                                        if(newval) { 
                                                map.isnew(1);
+                                               if(!patron.stat_cat_entries())
+                                                       patron.stat_cat_entries([]);
                                                patron.stat_cat_entries().push(map);
                                        }
                                }
index 4d492c9..afa17ca 100644 (file)
@@ -458,6 +458,7 @@ function uEditDrawNetLevels(netLevels) {
                        insertSelectorVal( sel, -1, i.name(), i.id() );
                }
        );
+       setSelector(sel, defaultNetLevel);
 }