From 20fe1d8b1361e7eeea2c1e256c96b8a650516434 Mon Sep 17 00:00:00 2001 From: dave Date: Fri, 18 Sep 2009 03:29:13 +0000 Subject: [PATCH] - Switch to a global message status area --- admin/award_awards.php | 10 +--------- common.inc.php | 17 +++++++++++++++-- sfiab.js | 22 ++-------------------- theme/default/sfiab.css | 13 ++++++++++++- 4 files changed, 30 insertions(+), 32 deletions(-) diff --git a/admin/award_awards.php b/admin/award_awards.php index 50afb21..12d1c3b 100644 --- a/admin/award_awards.php +++ b/admin/award_awards.php @@ -91,7 +91,7 @@ //now add the new ones if(!is_array($_POST['categories']) || !is_array($_POST['divisions'])) { - echo error(i18n("Invalid data")); + error_("Invalid data"); exit; } @@ -255,7 +255,6 @@ function update_awardinfo() var id = award_id; if(!award_id) return false; // alert("id="+award_id); - notice_div_id('award_notice'); $.getJSON("?action=awardinfo_load&id="+id, function(json){ $("#awardinfo_id").val(json.id); @@ -283,7 +282,6 @@ function awardinfo_save() function update_eligibility() { var id = award_id; - notice_div_id('eligibility_notice'); $.getJSON("?action=eligibilty_load&id="+id, function(json){ $("#eligibility_id").val(json.id); @@ -311,7 +309,6 @@ function prizelist_refresh() function update_prizeinfo() { var id = award_id; - notice_div_id('prize_notice'); $.getJSON("?action=prizeinfo_load&id="+id, function(json) { $(".prizelist_tr").remove(); @@ -396,7 +393,6 @@ function prize_create() function update_feeder() { var id = award_id; - notice_div_id('feeder_notice'); $.getJSON("?action=feeder_load&id="+id, function(json) { $("#feeder_id").val(id); @@ -461,7 +457,6 @@ $(document).ready(function() {

-
@@ -520,7 +515,6 @@ $(document).ready(function() {

-

@@ -557,7 +551,6 @@ $(document).ready(function() {
-


@@ -622,7 +615,6 @@ $(document).ready(function() {
-

diff --git a/common.inc.php b/common.inc.php index 916bf74..cb16337 100644 --- a/common.inc.php +++ b/common.inc.php @@ -394,6 +394,7 @@ if(substr(getcwd(),-6)=="/admin" || substr(getcwd(),-7)=="/config") require_once("../translationseditor.inc.php"); ?> +