@@ 684-705 (lines=22) @@ | ||
681 | } |
|
682 | } |
|
683 | ||
684 | window.changeParent = function (parentId, menuDiskId) { |
|
685 | var str2 = 'diskedit_ajax_'; |
|
686 | var diskEditAjax = str2.concat(menuDiskId); |
|
687 | if (menuDiskId === '') { |
|
688 | $('#disk_edit_ajax').html(''); |
|
689 | } else { |
|
690 | $.ajax({ |
|
691 | // The URL for the request |
|
692 | url: 'db_menu_disk.php', |
|
693 | data: 'action=change_menu_disk_parent&parent_id=' + parentId + '&menu_disk_id=' + menuDiskId, |
|
694 | type: 'POST', |
|
695 | dataType: 'html', |
|
696 | // Code to run if the request succeeds; |
|
697 | success: function (html) { |
|
698 | var returnHtml = html.split('[BRK]'); |
|
699 | $('#' + diskEditAjax).html(returnHtml[0]); |
|
700 | window.OSDMessageDisplay(returnHtml[1]); |
|
701 | document.getElementById(diskEditAjax).reset(); |
|
702 | } |
|
703 | }); |
|
704 | } |
|
705 | } |
|
706 | // Are you sure question Delete |
|
707 | window.deleteGamefromMenuButton = function (str, menuDiskId) { |
|
708 | $('#JSGenericModal').dialog({ |
|
@@ 661-682 (lines=22) @@ | ||
658 | } |
|
659 | } |
|
660 | ||
661 | window.changeYear = function (yearId, menuDiskId) { |
|
662 | var str2 = 'diskedit_ajax_'; |
|
663 | var diskEditAjax = str2.concat(menuDiskId); |
|
664 | if (menuDiskId === '') { |
|
665 | $('#' + diskEditAjax).html(''); |
|
666 | } else { |
|
667 | $.ajax({ |
|
668 | // The URL for the request |
|
669 | url: 'db_menu_disk.php', |
|
670 | data: 'action=change_menu_disk_year&year_id=' + yearId + '&menu_disk_id=' + menuDiskId, |
|
671 | type: 'POST', |
|
672 | dataType: 'html', |
|
673 | // Code to run if the request succeeds; |
|
674 | success: function (html) { |
|
675 | var returnHtml = html.split('[BRK]'); |
|
676 | $('#' + diskEditAjax).html(returnHtml[0]); |
|
677 | window.OSDMessageDisplay(returnHtml[1]); |
|
678 | document.getElementById(diskEditAjax).reset(); |
|
679 | } |
|
680 | }); |
|
681 | } |
|
682 | } |
|
683 | ||
684 | window.changeParent = function (parentId, menuDiskId) { |
|
685 | var str2 = 'diskedit_ajax_'; |
|
@@ 617-638 (lines=22) @@ | ||
614 | } |
|
615 | } |
|
616 | ||
617 | window.changeState = function (stateId, menuDiskId) { |
|
618 | var str2 = 'diskedit_ajax_'; |
|
619 | var diskEditAjax = str2.concat(menuDiskId); |
|
620 | if (menuDiskId === '') { |
|
621 | $('#' + diskEditAjax).html(''); |
|
622 | } else { |
|
623 | $.ajax({ |
|
624 | // The URL for the request |
|
625 | url: 'db_menu_disk.php', |
|
626 | data: 'action=change_menu_disk_state&state_id=' + stateId + '&menu_disk_id=' + menuDiskId, |
|
627 | type: 'POST', |
|
628 | dataType: 'html', |
|
629 | // Code to run if the request succeeds; |
|
630 | success: function (html) { |
|
631 | var returnHtml = html.split('[BRK]'); |
|
632 | $('#' + diskEditAjax).html(returnHtml[0]); |
|
633 | window.OSDMessageDisplay(returnHtml[1]); |
|
634 | document.getElementById(diskEditAjax).reset(); |
|
635 | } |
|
636 | }); |
|
637 | } |
|
638 | } |
|
639 | ||
640 | window.changeDoctype = function (docTypeId, docId, menuDiskId) { |
|
641 | if (docTypeId === '') { |