Mercurial > hg > fapweb
comparison admajax.js.php @ 1120:b2bca5f6d0ff default tip
Cosmetic cleanup: remove trailing whitespace.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 13 Dec 2020 13:47:13 +0200 |
parents | 0a2117349f46 |
children |
comparison
equal
deleted
inserted
replaced
1119:a4daa7ea7479 | 1120:b2bca5f6d0ff |
---|---|
227 var mcb_ok = function (data) | 227 var mcb_ok = function (data) |
228 { | 228 { |
229 jsSendPOSTRequest("action=delete&type="+type+"&id="+id, msuccess); | 229 jsSendPOSTRequest("action=delete&type="+type+"&id="+id, msuccess); |
230 item.className = tmp; | 230 item.className = tmp; |
231 } | 231 } |
232 | 232 |
233 var mcb_cancel = function (data) | 233 var mcb_cancel = function (data) |
234 { | 234 { |
235 item.className = tmp; | 235 item.className = tmp; |
236 } | 236 } |
237 | 237 |
238 if (dsc) | 238 if (dsc) |
239 jsConfirmBox("Are you sure you want to delete "+dsc+" #"+id+"?", mcb_ok, mcb_cancel, 0); | 239 jsConfirmBox("Are you sure you want to delete "+dsc+" #"+id+"?", mcb_ok, mcb_cancel, 0); |
240 else | 240 else |
241 jsConfirmBox(dsc2, mcb_ok, mcb_cancel, 0); | 241 jsConfirmBox(dsc2, mcb_ok, mcb_cancel, 0); |
242 } | 242 } |
484 } | 484 } |
485 | 485 |
486 | 486 |
487 function deleteCompo(id) | 487 function deleteCompo(id) |
488 { | 488 { |
489 jsDeleteItem(id, "compo", "compo", function () { refreshDispatchCC("Compos"); }, 0, | 489 jsDeleteItem(id, "compo", "compo", function () { refreshDispatchCC("Compos"); }, 0, |
490 "Are you ABSOLUTELY sure you want to delete compo #"+id+"? "+ | 490 "Are you ABSOLUTELY sure you want to delete compo #"+id+"? "+ |
491 "This will delete all votes AND entries related to it!"); | 491 "This will delete all votes AND entries related to it!"); |
492 } | 492 } |
493 | 493 |
494 | 494 |
673 | 673 |
674 var mcb_cancel = function (data) | 674 var mcb_cancel = function (data) |
675 { | 675 { |
676 userKeyRefresh(id); | 676 userKeyRefresh(id); |
677 } | 677 } |
678 | 678 |
679 if (lastPostArgs["active"] == 0) | 679 if (lastPostArgs["active"] == 0) |
680 jsConfirmBox("Are you sure you want to deactivate vote key #"+id+"?", mcb_ok, mcb_cancel, 0); | 680 jsConfirmBox("Are you sure you want to deactivate vote key #"+id+"?", mcb_ok, mcb_cancel, 0); |
681 else | 681 else |
682 mcb_ok(0); | 682 mcb_ok(0); |
683 } | 683 } |
689 | 689 |
690 var mcb_ok = function (data) | 690 var mcb_ok = function (data) |
691 { | 691 { |
692 userKeyUpdate(id, (mode ? "assign" : "clear"), args); | 692 userKeyUpdate(id, (mode ? "assign" : "clear"), args); |
693 } | 693 } |
694 | 694 |
695 if (mode == 0) | 695 if (mode == 0) |
696 jsConfirmBox("Are you sure you want to clear vote key assign #"+id+"?", mcb_ok, 0, 0); | 696 jsConfirmBox("Are you sure you want to clear vote key assign #"+id+"?", mcb_ok, 0, 0); |
697 else | 697 else |
698 mcb_ok(0); | 698 mcb_ok(0); |
699 } | 699 } |
728 if (id == 0) | 728 if (id == 0) |
729 jsSendPOSTRequest("action=randomize&type=all&patch="+patch, msuccess); | 729 jsSendPOSTRequest("action=randomize&type=all&patch="+patch, msuccess); |
730 else | 730 else |
731 jsSendPOSTRequest("action=randomize&type=compo&id="+id+"&patch="+patch, msuccess); | 731 jsSendPOSTRequest("action=randomize&type=compo&id="+id+"&patch="+patch, msuccess); |
732 } | 732 } |
733 | 733 |
734 if (patch == 0) | 734 if (patch == 0) |
735 { | 735 { |
736 jsConfirmBox("Are you <b>ABSOLUTELY CERTAIN</b> you want to delete and regenerate entry show positions "+ | 736 jsConfirmBox("Are you <b>ABSOLUTELY CERTAIN</b> you want to delete and regenerate entry show positions "+ |
737 (id == 0 ? "for ALL compos" : "for this compo") +"? "+ | 737 (id == 0 ? "for ALL compos" : "for this compo") +"? "+ |
738 "<b>This will completely annihilate current show position numbers! AND FUCK UP YOUR EXPORTED FILE ORDER (ask ccr to know what that means.)</b>", mcb_ok, 0, 0); | 738 "<b>This will completely annihilate current show position numbers! AND FUCK UP YOUR EXPORTED FILE ORDER (ask ccr to know what that means.)</b>", mcb_ok, 0, 0); |