|
Lines 246-252
function editAction( mmta_id, ordering, action, field_number, from_field, from_s
Link Here
|
| 246 |
document.getElementById('mmta_id').value = mmta_id; |
246 |
document.getElementById('mmta_id').value = mmta_id; |
| 247 |
|
247 |
|
| 248 |
setSelectByValue( 'action', action ); |
248 |
setSelectByValue( 'action', action ); |
| 249 |
document.getElementById('action').onchange(); |
249 |
$('#action').change(); |
| 250 |
|
250 |
|
| 251 |
setSelectByValue( 'field_number', field_number ); |
251 |
setSelectByValue( 'field_number', field_number ); |
| 252 |
|
252 |
|
|
Lines 265-277
function editAction( mmta_id, ordering, action, field_number, from_field, from_s
Link Here
|
| 265 |
} |
265 |
} |
| 266 |
|
266 |
|
| 267 |
setSelectByValue( 'conditional', conditional ); |
267 |
setSelectByValue( 'conditional', conditional ); |
| 268 |
document.getElementById('conditional').onchange(); |
268 |
$('#conditional').change(); |
| 269 |
|
269 |
|
| 270 |
document.getElementById('conditional_field').value = conditional_field; |
270 |
document.getElementById('conditional_field').value = conditional_field; |
| 271 |
document.getElementById('conditional_subfield').value = conditional_subfield; |
271 |
document.getElementById('conditional_subfield').value = conditional_subfield; |
| 272 |
|
272 |
|
| 273 |
setSelectByValue( 'conditional_comparison', conditional_comparison ); |
273 |
setSelectByValue( 'conditional_comparison', conditional_comparison ); |
| 274 |
document.getElementById('conditional_comparison').onchange(); |
274 |
$('#conditional_comparison').change(); |
| 275 |
|
275 |
|
| 276 |
document.getElementById('conditional_value').value = conditional_value; |
276 |
document.getElementById('conditional_value').value = conditional_value; |
| 277 |
|
277 |
|
|
Lines 290-296
function cancelEditAction() {
Link Here
|
| 290 |
document.getElementById('mmta_id').value = ''; |
290 |
document.getElementById('mmta_id').value = ''; |
| 291 |
|
291 |
|
| 292 |
setSelectByValue( 'action', 'delete_field' ); |
292 |
setSelectByValue( 'action', 'delete_field' ); |
| 293 |
document.getElementById('action').onchange(); |
293 |
$('#action').change(); |
| 294 |
|
294 |
|
| 295 |
document.getElementById('from_field').value = ''; |
295 |
document.getElementById('from_field').value = ''; |
| 296 |
document.getElementById('from_subfield').value = ''; |
296 |
document.getElementById('from_subfield').value = ''; |
|
Lines 302-318
function cancelEditAction() {
Link Here
|
| 302 |
$("#to_regex_modifiers").val(""); |
302 |
$("#to_regex_modifiers").val(""); |
| 303 |
$("#description").val(""); |
303 |
$("#description").val(""); |
| 304 |
|
304 |
|
| 305 |
document.getElementById('to_field_regex').checked = false; |
305 |
$('#to_field_regex').prop('checked', false).change(); |
| 306 |
document.getElementById('to_field_regex').onchange(); |
|
|
| 307 |
|
306 |
|
| 308 |
setSelectByValue( 'conditional', '' ); |
307 |
setSelectByValue( 'conditional', '' ); |
| 309 |
document.getElementById('conditional').onchange(); |
308 |
$('#conditional').change(); |
| 310 |
|
309 |
|
| 311 |
document.getElementById('conditional_field').value = ''; |
310 |
document.getElementById('conditional_field').value = ''; |
| 312 |
document.getElementById('conditional_subfield').value = ''; |
311 |
document.getElementById('conditional_subfield').value = ''; |
| 313 |
|
312 |
|
| 314 |
setSelectByValue( 'conditional_comparison', '' ); |
313 |
setSelectByValue( 'conditional_comparison', '' ); |
| 315 |
document.getElementById('conditional_comparison').onchange(); |
314 |
$('#conditional_comparison').change(); |
| 316 |
|
315 |
|
| 317 |
document.getElementById('conditional_value').value = ''; |
316 |
document.getElementById('conditional_value').value = ''; |
| 318 |
|
317 |
|
| 319 |
- |
|
|