|
Lines 137-145
Link Here
|
| 137 |
var cb = $(this); |
137 |
var cb = $(this); |
| 138 |
$.ajax({ |
138 |
$.ajax({ |
| 139 |
url: "process.pl", |
139 |
url: "process.pl", |
| 140 |
data: { 'op': 'cud-' + op, 'operationid': this.value }, |
140 |
data: { |
|
|
141 |
'op': 'cud-' + op, |
| 142 |
'operationid': this.value, |
| 143 |
'csrf_token': $('meta[name="csrf-token"]').attr('content') |
| 144 |
}, |
| 141 |
async: false, |
145 |
async: false, |
| 142 |
dataType: "text", |
146 |
dataType: "text", |
|
|
147 |
type: "POST", |
| 143 |
success: function(data) { |
148 |
success: function(data) { |
| 144 |
if( data == "Added." ){ |
149 |
if( data == "Added." ){ |
| 145 |
cb.replaceWith(_("Added.")); |
150 |
cb.replaceWith(_("Added.")); |
| 146 |
- |
|
|