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 |
if ( $('#add_to_patron_list').val() == 'new' ) { |
80 |
var new_patron_list_added = $("<option>", { |
81 |
value: data.patron_list.patron_list_id, |
82 |
text: data.patron_list.name |
83 |
}); |
84 |
$("#add_to_patron_list optgroup").append(new_patron_list_added); |
85 |
$("#add_to_patron_list").val(data.patron_list.patron_list_id); |
86 |
$("#new_patron_list").val(''); |
87 |
$('#add_to_patron_list').change(); |
88 |
} |
79 |
}, |
89 |
}, |
80 |
error: function() { |
90 |
error: function() { |
81 |
alert("an error occurred"); |
91 |
alert("an error occurred"); |
82 |
- |
|
|