temp map confirm stayonclick

This commit is contained in:
kremsy 2014-01-06 22:38:33 +01:00
parent be1beb78e7
commit 6d2aa1b487

View File

@ -397,7 +397,8 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
$eraseLabel->setTextColor('a00');
$confirmFrame = $this->buildConfirmFrame($maniaLink, $y, $id, $map->uid);
$script->addToggle($eraseLabel, $confirmFrame);
//$script->addToggle($eraseLabel, $confirmFrame); //TODO
$script->addTooltip($eraseLabel, $confirmFrame, Script::OPTION_TOOLTIP_STAYONCLICK);
// Description Label
$descriptionLabel = clone $preDefinedDescriptionLabel;
@ -419,7 +420,8 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener {
$switchLabel->setTextColor('0f0');
$confirmFrame = $this->buildConfirmFrame($maniaLink, $y, $id);
$script->addToggle($switchLabel, $confirmFrame);
$script->addTooltip($switchLabel, $confirmFrame, Script::OPTION_TOOLTIP_STAYONCLICK); //TODO
//$script->addToggle($switchLabel, $confirmFrame);
$descriptionLabel = clone $preDefinedDescriptionLabel;
$frame->add($descriptionLabel);