[open-ils-commits] r10533 - trunk/Open-ILS/web/vandelay
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Sep 4 09:04:01 EDT 2008
Author: erickson
Date: 2008-09-04 09:04:00 -0400 (Thu, 04 Sep 2008)
New Revision: 10533
Modified:
trunk/Open-ILS/web/vandelay/vandelay.js
Log:
no longer working around double-header issue. sorting attr defs on ID (experimenting) instead of name
Modified: trunk/Open-ILS/web/vandelay/vandelay.js
===================================================================
--- trunk/Open-ILS/web/vandelay/vandelay.js 2008-09-04 13:01:50 UTC (rev 10532)
+++ trunk/Open-ILS/web/vandelay/vandelay.js 2008-09-04 13:04:00 UTC (rev 10533)
@@ -76,8 +76,8 @@
bibAttrsFetched = true;
bibAttrDefs = bibAttrDefs.sort(
function(a, b) {
- if(a.description() > b.description()) return 1;
- if(a.description() < b.description()) return -1;
+ if(a.id() > b.id()) return 1;
+ if(a.id() < b.id()) return -1;
return 0;
}
);
@@ -101,8 +101,8 @@
authAttrsFetched = true;
authAttrDefs = authAttrDefs.sort(
function(a, b) {
- if(a.description() > b.description()) return 1;
- if(a.description() < b.description()) return -1;
+ if(a.id() > b.id()) return 1;
+ if(a.id() < b.id()) return -1;
return 0;
}
);
@@ -145,12 +145,11 @@
form: dojo.byId('vl-marc-upload-form'),
handle: function(data,ioArgs){
var content = data.documentElement.textContent;
- var key = content.split(/\n/)[2]; /* XXX have to strip the headers.. (why?) */
dojo.style(dojo.byId('vl-input-td'),"display","inline");
dojo.style(dojo.byId('vl-upload-progress-span'),"display","none");
dojo.style(dojo.byId('vl-file-label'), 'display', 'inline');
dojo.style(dojo.byId('vl-file-uploading'), 'display', 'none');
- onload(key);
+ onload(content);
}
});
}
@@ -278,7 +277,7 @@
return '<div class="match_div">' +
'<a href="javascript:void(0);" onclick="vlLoadMatchUI('+
rec.id()+',\''+matches[0].field_type()+'\');">'+
- attr.attr_value() + ' ('+matches.length+')</a></div>';
+ attr.attr_value() + ' ('+matches.length+')</a></div>';
}
return attr.attr_value();
@@ -376,6 +375,20 @@
vlQueueGrid.update();
}
+/*
+function test() {
+ alert(vlQueueGridLayout.picker);
+ vlQueueGridLayout.oils = {};
+ vlQueueGridLayout[0].cells[0].pop();
+ vlQueueGridLayout[0].cells[0].pop();
+ vlQueueGridLayout[0].cells[0].pop();
+ vlQueueGridLayout[0].cells[0].pop();
+ vlQueueGridLayout[0].cells[0].pop();
+ vlQueueGrid.setStructure(vlQueueGridLayout);
+ vlQueueGrid.update();
+}
+*/
+
var selectableGridRecords = {};
function vlQueueGridDrawSelectBox(rowIdx) {
var data = this.grid.model.getRow(rowIdx);
More information about the open-ils-commits
mailing list