From e358c96cac5953f33fec0570e68f99f61802a436 Mon Sep 17 00:00:00 2001 From: anuko Date: Mon, 20 Feb 2017 00:04:30 +0000 Subject: [PATCH] Refactoring - removed unused tabindex. --- WEB-INF/lib/form/Checkbox.class.php | 5 +---- WEB-INF/lib/form/Combobox.class.php | 5 +---- WEB-INF/lib/form/FormElement.class.php | 4 ---- WEB-INF/templates/footer.tpl | 2 +- 4 files changed, 3 insertions(+), 13 deletions(-) diff --git a/WEB-INF/lib/form/Checkbox.class.php b/WEB-INF/lib/form/Checkbox.class.php index 6822adf7..428d4289 100644 --- a/WEB-INF/lib/form/Checkbox.class.php +++ b/WEB-INF/lib/form/Checkbox.class.php @@ -52,10 +52,7 @@ class Checkbox extends FormElement { $html = "\n\tname\" id=\"$this->id\""; - - if ($this->mTabindex!="") - $html .= " tabindex=\"$this->mTabindex\""; - + if ($this->mOnChange!="") $html .= " onchange=\"$this->mOnChange\""; diff --git a/WEB-INF/lib/form/Combobox.class.php b/WEB-INF/lib/form/Combobox.class.php index 4d8df251..a421b66a 100644 --- a/WEB-INF/lib/form/Combobox.class.php +++ b/WEB-INF/lib/form/Combobox.class.php @@ -78,10 +78,7 @@ class Combobox extends FormElement { if ($this->mMultiple) $html .= " multiple"; - - if ($this->mTabindex!="") - $html .= " tabindex=\"$this->mTabindex\""; - + if ($this->mOnChange!="") $html .= " onchange=\"$this->mOnChange\""; diff --git a/WEB-INF/lib/form/FormElement.class.php b/WEB-INF/lib/form/FormElement.class.php index 3cab655a..f8b92d6f 100644 --- a/WEB-INF/lib/form/FormElement.class.php +++ b/WEB-INF/lib/form/FormElement.class.php @@ -35,7 +35,6 @@ class FormElement { var $size = ''; var $max_length = ''; // TODO: refactoring ongoing down from here. - var $mTabindex = ""; var $mAccesskey = ""; var $mOnSelect = ""; var $mOnChange = ""; @@ -78,9 +77,6 @@ class FormElement { function setMaxLength($value) { $this->max_length = $value; } function getMaxLength() { return $this->max_length; } - function setTabindex($value) { $this->mTabindex = $value; } - function getTabindex() { return $this->mTabindex; } - function setAccesskey($value) { $this->mAccesskey = $value; } function getAccesskey() { return $this->mAccesskey; } diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 102c648b..5340fa46 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.10.38.3596 | Copyright © Anuko | +  Anuko Time Tracker 1.10.38.3597 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} -- 2.20.1