summaryrefslogtreecommitdiff
path: root/modules/gallery/views/admin_theme_options.html.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-08-29 23:09:52 -0700
committerBharat Mediratta <bharat@menalto.com>2010-08-29 23:09:52 -0700
commitbc0d5e79cbf02a2b51c196c0105677a316e0c8bc (patch)
treec510376371da42affaa0b12459a96dbd077cdebb /modules/gallery/views/admin_theme_options.html.php
parent3707d4e94fc46fb3b92c399111ef6fc7f351aaba (diff)
Revert "Change the theme option page to display using tabs if the site theme has an admin page."
This reverts commit d66c496fb1007bbd0b1640496808000c573d95fd. Conflicts: modules/gallery/helpers/theme.php modules/gallery/views/admin_theme_options.html.php themes/admin_wind/css/screen.css
Diffstat (limited to 'modules/gallery/views/admin_theme_options.html.php')
-rw-r--r--modules/gallery/views/admin_theme_options.html.php31
1 files changed, 0 insertions, 31 deletions
diff --git a/modules/gallery/views/admin_theme_options.html.php b/modules/gallery/views/admin_theme_options.html.php
index b4a90682..e452913e 100644
--- a/modules/gallery/views/admin_theme_options.html.php
+++ b/modules/gallery/views/admin_theme_options.html.php
@@ -1,35 +1,4 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
-<script type="text/javascript">
- $("#g-theme-options-form").ready(function() {
- var contents = $("#g-theme-options-form fieldset:not(:last-child)");
- if (contents.length > 1) {
- $("<div id='g-theme-options-form-tabs'>" +
- " <ul class='tabnav'></ul>" +
- "</div>").insertBefore("#g-theme-options-form fieldset:last-child");
- $(contents).each(function(index) {
- var text = $("legend", this).text();
- var tabId = "tab_" + index;
- var tabContentId = "tab_content_" + index;
- if (text == "") {
- text = <?= t("Tab_")->for_js() ?> + index;
- }
- $(".tabnav").append(
- "<li><a id='" + tabId + "' href='#" + tabContentId + "'>" + text + "</a></li>");
- $("#g-theme-options-form-tabs").append(
- "<div id='" + tabContentId + "' class='tabdiv'></div>");
- if ($("li.g-error", this).length > 0) {
- $("#" + tabId).addClass("g-error");
- }
- $("#" + tabContentId).append($("ul", this));
- $(this).remove();
- });
- $("#g-theme-options-form-tabs").tabs({});
- } else {
- $("#g-theme-options-form fieldset:first legend").hide();
- }
- });
-</script>
-
<div class="g-block">
<h1> <?= t("Theme options") ?> </h1>
<div class="g-block-content">