From b141de12e541e6e4d898da5cf591ad132c556c5d Mon Sep 17 00:00:00 2001 From: Chris Hallberg <crhallberg@gmail.com> Date: Tue, 17 Dec 2013 11:30:17 -0500 Subject: [PATCH] Blueprint object index bug for holdings lightbox. --- themes/blueprint/js/common.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/themes/blueprint/js/common.js b/themes/blueprint/js/common.js index 4d3d5112c8c..be419d4427d 100644 --- a/themes/blueprint/js/common.js +++ b/themes/blueprint/js/common.js @@ -375,16 +375,15 @@ $(document).ready(function(){ // Support holds cancel list buttons: function cancelHolds(type) { - var ids = $('[name="'+type+'IDS[]"]'); + var typeIDS = type+'IDS'; + var ids = $('[name="'+typeIDS+'[]"]'); var cancelIDS = []; for(var i=0;i<ids.length;i++) { cancelIDS.push(ids[i].value); } - var postParams = { - 'confirm': 0, - type: 1, - type+'IDS': cancelIDS - }; + var postParams = {'confirm':0}; + postParams[type] = 1; + postParams[typeIDS] = cancelIDS; getLightbox('MyResearch', 'Holds', '', '', '', 'MyResearch', 'Holds', '', postParams); return false; } -- GitLab