added option (suppressEditFields) to suppress fields from an autogrid's EditPane
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 30 Aug 2010 17:39:27 +0000 (17:39 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 30 Aug 2010 17:39:27 +0000 (17:39 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17391 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/widget/AutoGrid.js

index 8f70175..923c9b4 100644 (file)
@@ -20,6 +20,7 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) {
             editStyle : 'dialog',
             editReadOnly : false,
             suppressFields : null,
+            suppressEditFields : null,
             hideSelector : false,
             selectorWidth : '1.5',
             showColumnPicker : false,
@@ -384,6 +385,7 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) {
                     overrideWidgetArgs : this.overrideWidgetArgs,
                     disableWidgetTest : this.disableWidgetTest,
                     requiredFields : this.requiredFields,
+                    suppressFields : this.suppressEditFields,
                     onPostSubmit : function() {
                         for(var i in fmObject._fields) {
                             var field = fmObject._fields[i];
@@ -424,6 +426,7 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) {
                     overrideWidgetArgs : this.overrideWidgetArgs,
                     disableWidgetTest : this.disableWidgetTest,
                     requiredFields : this.requiredFields,
+                    suppressFields : this.suppressEditFields,
                     onPostSubmit : function(req, cudResults) {
                         var fmObject = cudResults[0];
                         if(grid.onPostCreate)