[open-ils-commits] r995 - conifer/branches/rel_1_6_1/web/opac/skin/algoma/js (risard)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Sep 15 17:48:21 EDT 2010
Author: risard
Date: 2010-09-15 17:48:15 -0400 (Wed, 15 Sep 2010)
New Revision: 995
Modified:
conifer/branches/rel_1_6_1/web/opac/skin/algoma/js/reserves.js
Log:
Fixed problem that was causing 'too much recursion' error
Modified: conifer/branches/rel_1_6_1/web/opac/skin/algoma/js/reserves.js
===================================================================
--- conifer/branches/rel_1_6_1/web/opac/skin/algoma/js/reserves.js 2010-09-14 12:13:25 UTC (rev 994)
+++ conifer/branches/rel_1_6_1/web/opac/skin/algoma/js/reserves.js 2010-09-15 21:48:15 UTC (rev 995)
@@ -113,6 +113,7 @@
var oldparams = {'id': cresCopy.id(), 'location': cresCopy.location().id(), 'circ_modifier': cresCopy.circ_modifier()};
var joldparams = dojo.toJson(oldparams);
+
var pcrudcpy = new openils.PermaCrud({"authtoken":G.user.session});
var cpy = pcrudcpy.retrieve("acp", cresCopy.id());
cpy.location(copy_location);
@@ -198,13 +199,14 @@
var selector = $('cresSelector');
var id = selector.options[selector.selectedIndex].value;
setSelector( selector, 'start' );
- var circmod = $('cresCircModSelector');
- var loc = $('cresLocSelector');
+ var circModSelector = $('cresCircModSelector');
+ var circMod = circModSelector.options[circModSelector.selectedIndex].value;
+ var loc = $('cresLocSelector').value;
var cresInsert = containerCresCreateItem( id.substring(10), cresCopy.id() )
if ( cresInsert ) {
- if ( containerCresCreateNote(cresInsert, circmod, loc)) { alert($('rdetail_bb_item_success').innerHTML);}
+ if ( containerCresCreateNote(cresInsert, circMod, loc)) { alert($('rdetail_bb_item_success').innerHTML);}
}
}
More information about the open-ils-commits
mailing list