diff --git a/admin-dev/tabs/AdminAccess.php b/admin-dev/tabs/AdminAccess.php index 5888fc254..d0c353b08 100644 --- a/admin-dev/tabs/AdminAccess.php +++ b/admin-dev/tabs/AdminAccess.php @@ -140,16 +140,6 @@ class AdminAccess extends AdminTab }); }); - function showSuccessMessage(msg) - { - $("#ajax_confirmation").show().html("
"+msg+"
").delay(3000).fadeOut("slow"); - } - - function showErrorMessage(msg) - { - $("#ajax_confirmation").show().html("
\"ERROR\""+msg+"
"); - } - '; } /** @@ -174,7 +164,6 @@ class AdminAccess extends AdminTab -
diff --git a/admin-dev/themes/template/footer.tpl b/admin-dev/themes/template/footer.tpl index 3e7579ff9..691f5c64c 100644 --- a/admin-dev/themes/template/footer.tpl +++ b/admin-dev/themes/template/footer.tpl @@ -43,5 +43,6 @@ + diff --git a/js/admin.js b/js/admin.js index b12741690..a0af2ad8c 100644 --- a/js/admin.js +++ b/js/admin.js @@ -886,4 +886,21 @@ function refreshImagePositions(imageTable) imageTable.find("tr td.dragHandle a:hidden").show(); imageTable.find("tr td.dragHandle:first a:first").hide(); imageTable.find("tr td.dragHandle:last a:last").hide(); -} \ No newline at end of file +} + +/** display a success message in a #ajax_confirmation container + * @param string msg string to display + */ +function showSuccessMessage(msg) +{ + $("#ajax_confirmation").show().html("
"+msg+"
").delay(3000).fadeOut("slow"); +} + +/** display a warning message in a #ajax_confirmation container + * @param string msg string to display + */ +function showErrorMessage(msg) +{ + $("#ajax_confirmation").show() + .html("
\"ERROR\""+msg+"
"); +}