[open-ils-commits] r13335 - branches/rel_1_4_0/Open-ILS/web/opac/skin/default/js (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jun 5 14:32:06 EDT 2009
Author: miker
Date: 2009-06-05 14:32:03 -0400 (Fri, 05 Jun 2009)
New Revision: 13335
Modified:
branches/rel_1_4_0/Open-ILS/web/opac/skin/default/js/rresult.js
Log:
allow bookbag (rlist) display to work with just one record id
Modified: branches/rel_1_4_0/Open-ILS/web/opac/skin/default/js/rresult.js
===================================================================
--- branches/rel_1_4_0/Open-ILS/web/opac/skin/default/js/rresult.js 2009-06-05 18:31:52 UTC (rev 13334)
+++ branches/rel_1_4_0/Open-ILS/web/opac/skin/default/js/rresult.js 2009-06-05 18:32:03 UTC (rev 13335)
@@ -200,7 +200,14 @@
function rresultHandleList() {
var ids = new CGI().param(PARAM_RLIST);
- if(ids) _rresultHandleIds(ids, ids.length);
+ var count;
+ if(!dojo.isArray(ids)) {
+ count = 1;
+ ids = [ids];
+ } else {
+ count = ids.length;
+ }
+ if(ids) _rresultHandleIds(ids, count);
}
var rresultTries = 0;
More information about the open-ils-commits
mailing list