summaryrefslogtreecommitdiff
path: root/themes/admin_default/views
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-18 09:06:46 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-18 09:06:46 +0000
commit8ec0e8471f424ead77a335277d86706c4b6d3add (patch)
tree10ed731ec427af0982f2007ccdaeecdc685d06db /themes/admin_default/views
parent9380e306f4e40da8f6d9a4e9cbe7231b7738ed60 (diff)
Drag and drop in the admin dashboard now saves the location.
* Make block_adder a real block * Suppress the "close" link on block_adder * Move the drag/drop JS into the core code out of the admin theme
Diffstat (limited to 'themes/admin_default/views')
-rw-r--r--themes/admin_default/views/block.html.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/themes/admin_default/views/block.html.php b/themes/admin_default/views/block.html.php
index b92675e3..0ab13b2e 100644
--- a/themes/admin_default/views/block.html.php
+++ b/themes/admin_default/views/block.html.php
@@ -1,10 +1,12 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
-<div id="<?= $css_id ?>" class="gBlock ui-widget-dialog">
+<div block_id="<?= $id ?>" id="<?= $css_id ?>" class="gBlock ui-widget-dialog">
<div class="ui-dialog-titlebar ui-widget-header">
+ <? if ($css_id != "gBlockAdder"): ?>
<a href="<?= url::site("admin/dashboard/remove_block/$id?csrf=" . access::csrf_token()) ?>"
class="ui-dialog-titlebar-close">
<span class="ui-icon ui-icon-closethick">remove</span>
</a>
+ <? endif ?>
<?= $title ?>
</div>
<div class="gBlockContent">