dojo.forEach(this.getChildren(),
function(child) {
- for(var i in self.cells) {
- var name = self.cells[i].name;
- if(name == child.attr('label')) {
- child.field = {label:name, ident:self.cells[i].field};
- break;
- }
- }
+ dojo.forEach(self.cells,
+ function(cell) {
+ if(cell.name == child.attr('label')) {
+ if(cell.nonSelectable) {
+ console.log("removing child " + child.attr('label'));
+ self.removeChild(child);
+ } else {
+ child.field = {label:name, ident:cell.field};
+ }
+ return;
+ }
+ }
+ )
}
);
this.load();
function resetVlQueueGridLayout() {
vlQueueGridLayout = [{
cells : [[
- {name: '<input id="vl-queue-grid-row-selector" type="checkbox" onclick="vlToggleQueueGridSelect();"/>',
- get: vlQueueGridDrawSelectBox, styles : 'text-align: center;' },
- { name: '&vandelay.view.marc;',
+ {
+ name: '<input id="vl-queue-grid-row-selector" type="checkbox" onclick="vlToggleQueueGridSelect();"/>',
+ get: vlQueueGridDrawSelectBox,
+ styles : 'text-align: center;',
+ nonSelectable : true
+ }, {
+ name: '&vandelay.view.marc;',
get: vlGetViewMARC, styles : 'text-align: center;',
- value:'<a href="javascript:void(0);" onclick="vlLoadMARCHtml(RECID, false, '+
- 'function(){displayGlobalDiv(\'vl-queue-div\');});">&vandelay.view.marc;</a>'
- },
- { name: '&vandelay.matches;',
+ value: '<a href="javascript:void(0);" onclick="vlLoadMARCHtml(RECID, false, '+
+ 'function(){displayGlobalDiv(\'vl-queue-div\');});">&vandelay.view.marc;</a>',
+ nonSelectable : true
+ }, {
+ name: '&vandelay.matches;',
get: vlGetViewMatches, styles : 'text-align: center;',
- value:'<a href="javascript:void(0);" onclick="vlLoadMatchUI(RECID);">&vandelay.matches;</a>'
- },
- {name: '&vandelay.import.time;', field:'import_time', styles : 'text-align: center;',
- get:vlGetDateTimeField, selectableColumn:true}
+ value:'<a href="javascript:void(0);" onclick="vlLoadMatchUI(RECID);">&vandelay.matches;</a>',
+ nonSelectable : true
+ }, {
+ name: '&vandelay.import.time;', field:'import_time', styles : 'text-align: center;',
+ get:vlGetDateTimeField,
+ }
]]
}];
}