summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/model/common.mod.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/app/model/common.mod.php b/app/model/common.mod.php
index 07b86df..e478e9d 100644
--- a/app/model/common.mod.php
+++ b/app/model/common.mod.php
@@ -34,6 +34,8 @@ class CommonModel extends MasterModel
function __construct()
{
parent::__construct();
+ $this->first_setting_tab_active = 0;
+ $this->first_setting_tab_disp = 0;
$this->common_handleFormSubmissions($_REQUEST['input'], $_FILES['attachment']);
$this->common_deflt();
}
@@ -363,6 +365,34 @@ class CommonModel extends MasterModel
$this->redirectTo($this->ar() . "/");
}
}
+
+ /*
+ * Set CSS class for the first tab title in the setting modal only
+ */
+ function getSettingModalTabActiveClass()
+ {
+ if (!$this->first_setting_tab_active)
+ {
+ $this->first_setting_tab_active = 1;
+ return "active";
+ }
+
+ return "";
+ }
+
+ /*
+ * Set CSS classes for the first tab in the setting modal only
+ */
+ function getSettingModalTabDispClasses()
+ {
+ if (!$this->first_setting_tab_disp)
+ {
+ $this->first_setting_tab_disp = 1;
+ return "in active";
+ }
+
+ return "";
+ }
}
?>