summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Kieffer <chad@2tbsp.com>2009-01-12 03:49:19 +0000
committerChad Kieffer <chad@2tbsp.com>2009-01-12 03:49:19 +0000
commit5fdcdc0e682f3ae42652bddea274e824e2a51974 (patch)
treeab54b9010283d159b37c5baa4134d0e3a0b1ad2d
parente4f340b1c78f6857d7e48d11e29f2bfbd7ce66fd (diff)
Applied jquery ui dialog titlebar to dashboard blocks to add a close button. It's not semantically "nice" but it works for now.
-rw-r--r--themes/admin_default/css/screen.css4
-rw-r--r--themes/admin_default/views/block.html.php9
2 files changed, 9 insertions, 4 deletions
diff --git a/themes/admin_default/css/screen.css b/themes/admin_default/css/screen.css
index 6c369b54..edc1beab 100644
--- a/themes/admin_default/css/screen.css
+++ b/themes/admin_default/css/screen.css
@@ -65,12 +65,12 @@
margin-bottom: 0;
}
-#gContent .gBlock h2 {
- background-color: #e8e8e8;
+#gContent .gBlock .ui-dialog-titlebar {
margin: -.8em -.3em 0 -.3em;
}
#gSidebar .gBlock h2 {
+ background: none;
margin: -.9em -.4em 0 -.3em;
cursor: move;
}
diff --git a/themes/admin_default/views/block.html.php b/themes/admin_default/views/block.html.php
index 42d09196..7f14353a 100644
--- a/themes/admin_default/views/block.html.php
+++ b/themes/admin_default/views/block.html.php
@@ -1,6 +1,11 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
-<div id="<?= $id ?>" class="gBlock">
- <h2><?= $title ?></h2>
+<div id="<?= $id ?>" class="gBlock ui-widget-dialog">
+ <div class="ui-dialog-titlebar ui-widget-header">
+ <a href="#" class="ui-dialog-titlebar-close">
+ <span class="ui-icon ui-icon-closethick">close</span>
+ </a>
+ <?= $title ?>
+ </div>
<div class="gBlockContent">
<?= $content ?>
</div>