From c6d6749d6f1446862ceb10c4bfe05a820b565560 Mon Sep 17 00:00:00 2001 From: Samantha Doherty Date: Wed, 8 Jun 2011 15:59:05 -0400 Subject: [PATCH] Only unbind privacy checkbox when actually on mobile profile, oops. --- plugins/MobileProfile/MobileProfilePlugin.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/plugins/MobileProfile/MobileProfilePlugin.php b/plugins/MobileProfile/MobileProfilePlugin.php index e149573e88..5d84c28dc7 100644 --- a/plugins/MobileProfile/MobileProfilePlugin.php +++ b/plugins/MobileProfile/MobileProfilePlugin.php @@ -348,9 +348,18 @@ class MobileProfilePlugin extends WAP20Plugin $("#navtoggle").text( text == "Show Navigation" ? "Hide Navigation" : "Show Navigation"); }); - $(".checkbox-wrapper").unbind("click"); });' ); + + if ($this->serveMobile) { + $action->inlineScript(' + $(function() { + $(".checkbox-wrapper").unbind("click"); + });' + ); + } + + }