mirror of
https://github.com/SWG-Source/auth-site.git
synced 2026-07-13 22:01:16 -04:00
23 lines
389 B
JavaScript
23 lines
389 B
JavaScript
var AdminCP = {
|
|
init: function()
|
|
{
|
|
},
|
|
|
|
deleteConfirmation: function(element, message)
|
|
{
|
|
if(!element) return false;
|
|
confirmReturn = confirm(message);
|
|
if(confirmReturn == true)
|
|
{
|
|
form = $("<form />", { method: "post", action: element.href, style: "display: none;" });
|
|
$("body").append(form);
|
|
form.submit();
|
|
}
|
|
return false;
|
|
}
|
|
};
|
|
|
|
$(function()
|
|
{
|
|
AdminCP.init();
|
|
}); |