From 27e04fff9b2ec67c34957ae8590a0d0fe94e9c30 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 30 Aug 2010 17:39:27 +0000 Subject: [PATCH] added option (suppressEditFields) to suppress fields from an autogrid's EditPane 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js index 8f70175b2..923c9b446 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js @@ -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) -- 2.11.0