[open-ils-commits] r12123 - trunk/Open-ILS/web/js/dojo/openils/widget (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Feb 9 16:54:31 EST 2009
Author: erickson
Date: 2009-02-09 16:54:27 -0500 (Mon, 09 Feb 2009)
New Revision: 12123
Modified:
trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js
Log:
by default, don't show sequence columns, which will usually be 'id' columns. configurable
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js 2009-02-09 21:53:48 UTC (rev 12122)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js 2009-02-09 21:54:27 UTC (rev 12123)
@@ -15,6 +15,9 @@
editOnEnter : false,
defaultCellWidth : null,
+ /* by default, don't show auto-generated (sequence) fields */
+ showSequenceFields : false,
+
startup : function() {
this.selectionMode = 'single';
@@ -27,6 +30,8 @@
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;
More information about the open-ils-commits
mailing list