From 6d2aa1b4877e8d0d1742af178e84cac671392b6b Mon Sep 17 00:00:00 2001 From: kremsy Date: Mon, 6 Jan 2014 22:38:33 +0100 Subject: [PATCH] temp map confirm stayonclick --- application/core/Maps/MapList.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/core/Maps/MapList.php b/application/core/Maps/MapList.php index 30a72476..33bb71d2 100644 --- a/application/core/Maps/MapList.php +++ b/application/core/Maps/MapList.php @@ -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);