https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26899

--- Comment #2 from Christopher Brannon <[email protected]> ---
I updated the jQuery so it doesn't have to modified each time something
changes.  It just checks the patron's home library against the dropdown
choices.

//Reroute Patron Pick-up Locations
  //if($.inArray($('#opac-holds #members
span.loggedinusername').attr('data-branchcode'),
['LAKECITY','POSTFALLS','ATHOL','RATHDRUM']) != -1) {
  if ( !$('#opac-holds select[name="branch"] option[value=' + $('#opac-holds
#members span.loggedinusername').attr('data-branchcode') + ']').length ) {
    $('#opac-holds select[name="branch"]').prepend('<option value="NONE">BRANCH
CLOSED - CHOOSE PICK UP LOCATION</option>').val('NONE').width('350px');
    $('#opac-holds select[name="branch"]
option[value="NONE"]').prop('disabled', true);
    $('#opac-holds input.placehold').prop('disabled', true);
    $('#opac-holds select[name="branch"]').change(function() {
                $('#opac-holds input.placehold').prop('disabled', false);
        });
  }
//End Reroute

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to