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.
This commit is contained in:
Tim Almdal
2009-04-28 21:29:14 +00:00
parent 1596c9f3da
commit 12d976b94d
5 changed files with 224 additions and 172 deletions

View File

@@ -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") ?>