Bug 34478: Fix op variable in item circulation alerts
The AJAX call in the template still used "action" instead of "op". The patch also fixes references to "action" in the POD and corrects "toggle" to "cud-toggle". Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
1825c93fe4
commit
0af9d12027
2 changed files with 3 additions and 3 deletions
|
@ -146,7 +146,7 @@ patron category, and item type, this is where that policy would be set.
|
|||
=head2 URLs
|
||||
|
||||
|
||||
=head3 ?action=show
|
||||
=head3 ?op=show
|
||||
|
||||
Display a branches item circulation alert preferences.
|
||||
|
||||
|
@ -163,7 +163,7 @@ branch '*' is used.
|
|||
|
||||
|
||||
|
||||
=head3 ?action=toggle
|
||||
=head3 ?op=cud-toggle
|
||||
|
||||
Toggle a preference via AJAX
|
||||
|
||||
|
|
|
@ -211,7 +211,7 @@
|
|||
url : '/cgi-bin/koha/admin/item_circulation_alerts.pl',
|
||||
type : 'POST',
|
||||
dataType : 'json',
|
||||
data : { action: 'cud-toggle', id: id, branch: $branch },
|
||||
data : { op: 'cud-toggle', id: id, branch: $branch },
|
||||
success : function(response){
|
||||
if ($branch == '*' && response.classes.match(/default/)) {
|
||||
td.html(disabledForAll);
|
||||
|
|
Loading…
Reference in a new issue