From a08a38bd23e922ac0f4bd9e6436c1f42706cac9d Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 4 Dec 2006 06:29:38 +0000 Subject: [PATCH] r1330: - Rewrote the product selection HTML constructors - Got rid of that awful AJAX stuff that took forever to load (even though it looks kinda cool) - Moving verification stuff into the APIs --- includes/api_bug.php | 10 +- includes/functions_product.php | 170 ++------------------------------- newreport.php | 19 ++-- showreport.php | 2 +- templates/global.js | 84 ---------------- templates/headinclude.tpl | 3 +- templates/jquery.js | 1 - templates/newreport.tpl | 6 +- templates/showreport.tpl | 8 +- 9 files changed, 28 insertions(+), 275 deletions(-) delete mode 100644 templates/jquery.js diff --git a/includes/api_bug.php b/includes/api_bug.php index f915c05..d1da1d4 100644 --- a/includes/api_bug.php +++ b/includes/api_bug.php @@ -125,7 +125,10 @@ class BugAPI extends API */ function verify_product() { - $this->verify_nozero('product'); + if (!($nozero = $this->verify_nozero('product'))) + { + return $nozero; + } if (!$this->registry->datastore['product'][ $this->values['product'] ]) { @@ -167,7 +170,10 @@ class BugAPI extends API */ function verify_version() { - $this->verify_nozero('version'); + if (!($nozero = $this->verify_nozero('version'))) + { + return $nozero; + } if (!$this->registry->datastore['version'][ $this->values['version'] ]) { diff --git a/includes/functions_product.php b/includes/functions_product.php index 851cefc..65cd58d 100644 --- a/includes/functions_product.php +++ b/includes/functions_product.php @@ -26,16 +26,16 @@ * because certain browsers (Safari) do not support