diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-04-28 21:29:14 +0000 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-04-28 21:29:14 +0000 |
| commit | 12d976b94d6e7b13e1124b2c943c33d8cd0876e8 (patch) | |
| tree | 71241ffcbedbc94472d6a889a8be1b29d71fc50f /modules/organize/views | |
| parent | 1596c9f3da148143a12474596408d788f7c3ba4a (diff) | |
1) Refactor the ajax calls so that the code is reused across multipl
request types.
2) Enable/Disable the drawer handle buttons depending on the number of
items selcted
3) Image rotation works.
Diffstat (limited to 'modules/organize/views')
| -rw-r--r-- | modules/organize/views/organize.html.php | 5 | ||||
| -rw-r--r-- | modules/organize/views/organize_button_pane.html.php | 11 |
2 files changed, 5 insertions, 11 deletions
diff --git a/modules/organize/views/organize.html.php b/modules/organize/views/organize.html.php index c423f5a1..1b4a130a 100644 --- a/modules/organize/views/organize.html.php +++ b/modules/organize/views/organize.html.php @@ -5,12 +5,7 @@ var PAUSE_BUTTON = "<?= t("Pause") ?>"; var RESUME_BUTTON = "<?= t("Resume") ?>"; var CANCEL_BUTTON = "<?= t("Cancel") ?>"; - var OPERATION_RUNNING = "<?= t("Operation in Progress") ?>"; var INVALID_DROP_TARGET = "<div class=\"gError\"><?= t("Drop cancelled as it would result in a recursive move") ?></div>"; - var MOVE_PAUSED = "<div class=\"gWarning\"><?= t("The move operation was paused") ?></div>"; - var MOVE_RESUMED = "<div class=\"gWarning\"><?= t("The move operation was resumed") ?></div>"; - var REARRANGE_PAUSED = "<div class=\"gWarning\"><?= t("The rearrange operation was paused") ?></div>"; - var REARRANGE_RESUMED = "<div class=\"gWarning\"><?= t("The rearrange operation was resumed") ?></div>"; var item_id = <?= $item->id ?>; diff --git a/modules/organize/views/organize_button_pane.html.php b/modules/organize/views/organize_button_pane.html.php index a39c643c..9902eafb 100644 --- a/modules/organize/views/organize_button_pane.html.php +++ b/modules/organize/views/organize_button_pane.html.php @@ -1,7 +1,6 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> - -<a class="gButtonLink ui-corner-all ui-state-default" href="#" ref="edit" +<a class="gButtonLink ui-corner-all ui-state-default ui-state-disabled" href="#" ref="edit" disabled="1" title="<?= t("Edit Selection") ?>"> <span class="ui-icon ui-icon-pencil"> <?= t("Edit Selection") ?> @@ -9,14 +8,14 @@ </a> <? if (graphics::can("rotate")): ?> -<a class="gButtonLink ui-corner-all ui-state-default" href="#" ref="rotate_ccw" +<a class="gButtonLink ui-corner-all ui-state-default ui-state-disabled" href="#" ref="rotateCcw" disabled="1" title="<?= t("Rotate 90 degrees counter clockwise") ?>"> <span class="ui-icon ui-icon-rotate-ccw"> <?= t("Rotate 90 degrees counter clockwise") ?> </span> </a> -<a class="gButtonLink ui-corner-all ui-state-default" href="#" ref="rotate_cw" +<a class="gButtonLink ui-corner-all ui-state-default ui-state-disabled" href="#" ref="rotateCw" disabled="1" title="<?= t("Rotate 90 degrees clockwise") ?>"> <span class="ui-icon ui-icon-rotate-cw"> <?= t("Rotate 90 degrees clockwise") ?> @@ -24,14 +23,14 @@ </a> <? endif ?> -<a class="gButtonLink ui-corner-all ui-state-default" href="#" ref="album_cover" +<a class="gButtonLink ui-corner-all ui-state-default ui-state-disabled" href="#" ref="albumCover" disabled="1" title="<?= t("Choose this photo as the album cover") ?>"> <span class="ui-icon ui-icon-star"> <?= t("Choose this photo as the album cover") ?> </span> </a> -<a class="gButtonLink ui-corner-all ui-state-default" href="#" ref="delete" +<a class="gButtonLink ui-corner-all ui-state-default ui-state-disabled" href="#" ref="delete" disabled="1" title="<?= t("Delete selection") ?>"> <span class="ui-icon ui-icon-trash"> <?= t("Delete selection") ?> |
