|
424 | 424 | document.recorded_actions.pop();
|
425 | 425 | ra_len = document.recorded_actions.length;
|
426 | 426 | }
|
427 |
| - // Again for click & more changes. |
428 | 427 | if (ra_len > 0 && document.recorded_actions[ra_len-1][1] === selector)
|
429 | 428 | {
|
430 | 429 | document.recorded_actions.pop();
|
|
446 | 445 | document.recorded_actions[ra_len-1][1] === selector &&
|
447 | 446 | tag_name === 'input' && e_type === 'checkbox')
|
448 | 447 | {
|
449 |
| - // Pop extra checkbox changes. |
450 | 448 | document.recorded_actions.pop();
|
451 | 449 | ra_len = document.recorded_actions.length;
|
452 | 450 | if (ra_len > 0 && document.recorded_actions[ra_len-1][1] === selector)
|
453 | 451 | document.recorded_actions.pop();
|
454 | 452 | }
|
455 |
| - // Use 'if' again, not 'else if'. |
456 | 453 | if (tag_name === 'input' && e_type === 'checkbox' && element.checked)
|
457 | 454 | document.recorded_actions.push(['c_box', selector, 'yes', d_now]);
|
458 | 455 | else if (tag_name === 'input' && e_type === 'checkbox' && !element.checked)
|
|
471 | 468 | if (ra_len > 0 && document.recorded_actions[ra_len-1][0] === 'mo_dn')
|
472 | 469 | document.recorded_actions.pop();
|
473 | 470 | if (tag_name === 'select') {
|
474 |
| - // Do Nothing. (Handle in 'change' action.) |
| 471 | + // Do Nothing. ('change' action.) |
475 | 472 | }
|
476 | 473 | else
|
477 | 474 | document.recorded_actions.push(['mo_dn', selector, '', d_now]);
|
|
500 | 497 | if (rec_mode === '2' || (rec_mode === '3' && sel_has_contains)) {
|
501 | 498 | origin = window.location.origin;
|
502 | 499 | document.recorded_actions.push(['as_el', selector, origin, d_now]);
|
| 500 | + json_rec_act = JSON.stringify(document.recorded_actions); |
| 501 | + sessionStorage.setItem('recorded_actions', json_rec_act); |
503 | 502 | return;
|
504 | 503 | }
|
505 | 504 | else if (rec_mode === '3') {
|
|
522 | 521 | }
|
523 | 522 | tex_sel = [text, selector];
|
524 | 523 | document.recorded_actions.push([action, tex_sel, origin, d_now]);
|
| 524 | + json_rec_act = JSON.stringify(document.recorded_actions); |
| 525 | + sessionStorage.setItem('recorded_actions', json_rec_act); |
525 | 526 | return;
|
526 | 527 | }
|
527 | 528 | }
|
|
0 commit comments