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
This commit is contained in:
Tim Almdal
2009-04-20 18:44:19 +00:00
parent e8d99f22a1
commit ad10584dc1
6 changed files with 206 additions and 23 deletions

View File

@@ -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();
});