[open-ils-commits] r10544 - trunk/Open-ILS/web/vandelay
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Sep 5 10:45:36 EDT 2008
Author: erickson
Date: 2008-09-05 10:45:34 -0400 (Fri, 05 Sep 2008)
New Revision: 10544
Modified:
trunk/Open-ILS/web/vandelay/vandelay.js
Log:
make sure record is selected for import if overlay has been selected. pre-select overlay target if it's already been chosen
Modified: trunk/Open-ILS/web/vandelay/vandelay.js
===================================================================
--- trunk/Open-ILS/web/vandelay/vandelay.js 2008-09-05 14:04:39 UTC (rev 10543)
+++ trunk/Open-ILS/web/vandelay/vandelay.js 2008-09-05 14:45:34 UTC (rev 10544)
@@ -362,8 +362,13 @@
function vlGetOverlayTargetSelector(rowIdx) {
data = this.grid.model.getRow(rowIdx);
- if(data)
- return this.value.replace('ID', data.id);
+ if(data) {
+ var value = this.value.replace('ID', data.id);
+ var overlay = currentOverlayRecordsMap[currentImportRecId];
+ if(overlay && overlay == data.id)
+ value = value.replace('/>', 'checked="checked"/>');
+ return value;
+ }
}
/**
@@ -377,11 +382,13 @@
if(dojo.byId('vl-overlay-target-'+matchRecId).checked) {
console.log("found overlay target " + matchRecId);
currentOverlayRecordsMap[currentImportRecId] = matchRecId;
+ dojo.byId('vl-record-list-selected-' + currentImportRecId).checked = true;
return;
}
}
} else {
delete currentOverlayRecordsMap[currentImportRecId];
+ dojo.byId('vl-record-list-selected-' + currentImportRecId).checked = false;
}
}
More information about the open-ils-commits
mailing list