diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-04-20 18:44:19 +0000 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-04-20 18:44:19 +0000 |
| commit | ad10584dc1ba40aa045ece4db3e09dfc3ec8039c (patch) | |
| tree | 4dfe6bd847473ba96d314e86c2535e2781a23037 /modules/organize/views | |
| parent | e8d99f22a1605c47bf2e83cf02a548c5e5c2c87e (diff) | |
1) Add rearrange processing as a task
2) Improved drop location determination
3) Add a revert if dropped on an invalid target
4) Add a popup dialog to display ajax errors
Still to do progress bar, pause/continue and status messages
Diffstat (limited to 'modules/organize/views')
| -rw-r--r-- | modules/organize/views/organize.html.php | 2 | ||||
| -rw-r--r-- | modules/organize/views/organize_thumb_grid.html.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/modules/organize/views/organize.html.php b/modules/organize/views/organize.html.php index 6b9eb3c6..c2b2070e 100644 --- a/modules/organize/views/organize.html.php +++ b/modules/organize/views/organize.html.php @@ -1,8 +1,10 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> <!-- ?= html::script("modules/organize/js/organize.js") ? --> <script> + var FATAL_ERROR = "<?= t("Fatal Error") ?>"; var item_id = <?= $item->id ?>; var csrf = "<?= $csrf ?>"; + var rearrangeUrl = "<?= url::site("__URI__/{$item->id}__TASK_ID__?csrf=$csrf") ?>"; $("#doc3").ready(function() { organize_dialog_init(); }); diff --git a/modules/organize/views/organize_thumb_grid.html.php b/modules/organize/views/organize_thumb_grid.html.php index 484d1260..64d8aaf3 100644 --- a/modules/organize/views/organize_thumb_grid.html.php +++ b/modules/organize/views/organize_thumb_grid.html.php @@ -4,7 +4,7 @@ <? if ($child->is_album()): ?> <? $item_class = "gAlbum"; ?> <? endif ?> -<li id="thumb_<?= $child->id ?>" class="gMicroThumbContainer" ref="<?= $child->id ?>" ordinal="<?= $offset + $i ?>"> +<li id="thumb_<?= $child->id ?>" class="gMicroThumbContainer" ref="<?= $child->id ?>"> <div id="gMicroThumb-<?= $child->id ?>" class="gMicroThumb <?= $item_class ?>"> <?= $child->thumb_tag(array("class" => "gThumbnail"), $thumbsize, true) ?> </div> |
