Bug 34478: Rename action with op - offline_circ
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
e8d02c58d2
commit
1875d5e12e
|
|
@ -132,12 +132,12 @@
|
|||
$("#operations input:checkbox").prop("checked", true );
|
||||
});
|
||||
$('#process,#delete').click(function() {
|
||||
var action = $(this).attr("id");
|
||||
var op = $(this).attr("id");
|
||||
$(":checkbox[name=operationid]:checked").each(function() {
|
||||
var cb = $(this);
|
||||
$.ajax({
|
||||
url: "process.pl",
|
||||
data: { 'action': action, 'operationid': this.value },
|
||||
data: { 'op': 'cud-' + op, 'operationid': this.value },
|
||||
async: false,
|
||||
dataType: "text",
|
||||
success: function(data) {
|
||||
|
|
|
|||
|
|
@ -34,13 +34,13 @@ my ($template, $loggedinuser, $cookie) = get_template_and_user({
|
|||
});
|
||||
|
||||
my $operationid = $query->param('operationid');
|
||||
my $action = $query->param('action');
|
||||
my $op = $query->param('op') || q{};
|
||||
my $result;
|
||||
|
||||
if ( $action eq 'process' ) {
|
||||
if ( $op eq 'cud-process' ) {
|
||||
my $operation = GetOfflineOperation( $operationid );
|
||||
$result = ProcessOfflineOperation( $operation );
|
||||
} elsif ( $action eq 'cud-delete' ) {
|
||||
} elsif ( $op eq 'cud-delete' ) {
|
||||
$result = DeleteOfflineOperation( $operationid );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue