From 2e29c8496a90000d1f1c6cf7ba1c228d5e316dec Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 9 Feb 2009 21:54:27 +0000 Subject: [PATCH] by default, don't show sequence columns, which will usually be 'id' columns. configurable git-svn-id: svn://svn.open-ils.org/ILS/trunk@12123 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/openils/widget/AutoGrid.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js index adb4a71d38..63ea180081 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js @@ -15,6 +15,9 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) { editOnEnter : false, defaultCellWidth : null, + /* by default, don't show auto-generated (sequence) fields */ + showSequenceFields : false, + startup : function() { this.selectionMode = 'single'; @@ -27,6 +30,8 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) { for(var f in this.sortedFieldList) { var field = this.sortedFieldList[f]; if(!field || field.virtual) continue; + if(!this.showSequenceFields && field.name == this.fmIDL.pkey && this.fmIDL.pkey_sequence) + continue; var entry = existing.filter( function(i){return (i.field == field.name)})[0]; if(entry) entry.name = field.label; -- 2.11.0