default to empty ccvm grid; added crad selector attr and crad/ccvm required attrs...
[evergreen-equinox.git] / Open-ILS / web / templates / default / conify / global / config / coded_value_map.tt2
index 269a3be..592e539 100644 (file)
@@ -31,7 +31,6 @@
     dojo.require('openils.widget.AutoGrid');
     dojo.require('openils.widget.AutoFieldWidget');
 
-    var firstRun = true;
     openils.Util.addOnLoad(
         function() {
 
                         function(newVal) {
                             ccvmGrid.resetStore();
                             ccvmGrid.loadAll({order_by : {ccvm : 'code'}}, {ctype : newVal});
+                            ccvmGrid.overrideWidgetArgs.ctype = {dijitArgs : {value : newVal}};
+                            // ^-- why is this not working?
                         }
                     );
-                    // start with something arbitrary that has some data
-                    w.attr('value', 'audience'); 
                 }
             );
+
+            // hide the progress indicator since we're not loading any data up front
+            dojo.style(ccvmGrid.loadProgressIndicator, 'visibility', 'hidden');
         }
     );