From 15e698d66e3714ba42de581230bc3d2e3e931691 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Mon, 19 Jan 2015 15:13:06 -0500 Subject: [PATCH] Revert "LP#1406387 Fix for Holds Placement Advanced Options" Not working for us yet, so reverting. This reverts commit 2322ee5ae9cbe3caefb6998d62c3716cf40411a3. Conflicts: Open-ILS/src/templates/opac/parts/place_hold.tt2 --- Open-ILS/web/js/ui/default/opac/staff.js | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/Open-ILS/web/js/ui/default/opac/staff.js b/Open-ILS/web/js/ui/default/opac/staff.js index fff3aea07d..d281ca2c48 100644 --- a/Open-ILS/web/js/ui/default/opac/staff.js +++ b/Open-ILS/web/js/ui/default/opac/staff.js @@ -42,13 +42,6 @@ function staff_hold_usr_barcode_changed(isload) { } if (!window.xulG) return; - - var adv_link = document.getElementById('advanced_hold_link'); - if (adv_link) { - adv_link.setAttribute('href', adv_link.getAttribute('href').replace(/&?is_requestor=[01]/,'')); - var is_requestor = document.getElementById('hold_usr_is_requestor').checked ? 1 : 0; - adv_link.setAttribute('href', adv_link.getAttribute('href') + '&is_requestor=' + is_requestor.toString()); - } var cur_hold_barcode = undefined; var barcode = isload; @@ -163,21 +156,6 @@ window.onload = function() { // record details page events setTimeout(function() { - - if (location.href.match(/is_requestor=[01]/)) { - var loc = location.href; - var is_req_match = new RegExp("is_requestor=[01]"); - var is_req = is_req_match.exec(loc).toString(); - is_req = is_req.replace(/is_requestor=/, ''); - if (is_req == "1") { - document.getElementById('hold_usr_is_requestor').checked = 'checked'; - document.getElementById('hold_usr_input').disabled = true; - } else { - document.getElementById('hold_usr_is_requestor_not').checked = 'checked'; - document.getElementById('hold_usr_input').disabled = false; - } - } - var rec = location.href.match(/\/opac\/record\/(\d+)/); if(rec && rec[1]) { runEvt('rdetail', 'recordRetrieved', rec[1]); -- 2.11.0