summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-03-04 14:34:44 +0300
committerAndrew Dolgov <[email protected]>2017-03-04 14:34:44 +0300
commit1bfe1d7b31d5202846beb3425039776fbdbbfb85 (patch)
treee4c291a6938c060696bd9f499fab89ebcac394ab /include
parente6d66fe55ca217aeb0fb54b49ac9e7338d519c96 (diff)
simplify error handling
* less convoluted exception dialogs * use window.onerror for the majority of exception catching/reporting * remove most of now useless try/catch blocks * report stacktrace instead of manually specified error locations
Diffstat (limited to 'include')
-rw-r--r--include/functions.php2
-rw-r--r--include/functions2.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php
index cdd783cdc..c6de853d4 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -1917,7 +1917,7 @@
$attributes, $include_all_cats = true, $root_id = false, $nest_level = 0) {
if (!$root_id) {
- print "<select id=\"$id\" name=\"$id\" default=\"$default_id\" onchange=\"catSelectOnChange(this)\" $attributes>";
+ print "<select id=\"$id\" name=\"$id\" default=\"$default_id\" $attributes>";
}
if ($root_id)
diff --git a/include/functions2.php b/include/functions2.php
index f3570e56b..d68d1ecc3 100644
--- a/include/functions2.php
+++ b/include/functions2.php
@@ -1902,7 +1902,7 @@
WHERE owner_uid = '".$_SESSION["uid"]."' ORDER BY caption");
print "<select default=\"$value\" name=\"" . htmlspecialchars($name) .
- "\" $attributes onchange=\"labelSelectOnChange(this)\" >";
+ "\" $attributes>";
while ($line = db_fetch_assoc($result)) {