inital commit
This commit is contained in:
23
webroot/forum/admin/jscripts/admincp.js
Normal file
23
webroot/forum/admin/jscripts/admincp.js
Normal file
@@ -0,0 +1,23 @@
|
||||
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.trigger('submit');
|
||||
}
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
$(function()
|
||||
{
|
||||
AdminCP.init();
|
||||
});
|
||||
Reference in New Issue
Block a user