Files
gallery3/modules/gallery/views/quick_pane.html.php
Bharat Mediratta 0546f0df13 Fix the bug that the quick menu fires for the wrong photo. This stems
from using a single gQuickPane <div> that we move around.  A race
condition happens when you mouse over two thumbnails quickly.
Whichever server response loses the race gets displayed, and sometimes
it's the one that you're no longer hovering over.

Fix it by changing gQuickPane to be a class and creating a <div> per
thumbnail.

Fixes ticket #290.
2009-07-21 13:39:40 -07:00

27 lines
879 B
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<? foreach ($button_list->main as $button): ?>
<a class="<?= $button->class ?> ui-corner-all ui-state-default" href="<?= $button->href ?>"
title="<?= $button->title ?>">
<span class="ui-icon <?= $button->icon ?>">
<?= $button->title ?>
</span>
</a>
<? endforeach ?>
<? if (!empty($button_list->additional)): ?>
<a class="gButtonLink ui-corner-all ui-state-default options" href="#" title="<?= t("additional options") ?>">
<span class="ui-icon ui-icon-triangle-1-s">
<?= t("Additional options") ?>
</span>
</a>
<ul class="gQuickPaneOptions" style="display: none">
<? foreach ($button_list->additional as $button): ?>
<li><a class="<?= $button->class ?>" href="<?= $button->href ?>"
title="<?= $button->title ?>">
<?= $button->title ?>
</a></li>
<? endforeach ?>
</ul>
<? endif ?>