Lines 76-81
$(document).ready(function() {
Link Here
|
76 |
$("#patron_list_dialog > span.patrons-length").html(data.patrons_added_to_list); |
76 |
$("#patron_list_dialog > span.patrons-length").html(data.patrons_added_to_list); |
77 |
$("#patron_list_dialog > a").attr("href", "/cgi-bin/koha/patron_lists/list.pl?patron_list_id=" + data.patron_list.patron_list_id); |
77 |
$("#patron_list_dialog > a").attr("href", "/cgi-bin/koha/patron_lists/list.pl?patron_list_id=" + data.patron_list.patron_list_id); |
78 |
$("#patron_list_dialog > a").html(data.patron_list.name); |
78 |
$("#patron_list_dialog > a").html(data.patron_list.name); |
|
|
79 |
var new_patron_list_added = $("<option>", { |
80 |
value: data.patron_list.patron_list_id, |
81 |
text: data.patron_list.name |
82 |
}); |
83 |
$("#add_to_patron_list optgroup").append(new_patron_list_added); |
84 |
$("#add_to_patron_list").val(data.patron_list.patron_list_id); |
85 |
$("#new_patron_list").val(''); |
79 |
}, |
86 |
}, |
80 |
error: function() { |
87 |
error: function() { |
81 |
alert("an error occurred"); |
88 |
alert("an error occurred"); |
82 |
- |
|
|