From: Samantha Doherty Date: Wed, 8 Jun 2011 19:59:05 +0000 (-0400) Subject: Only unbind privacy checkbox when actually on mobile profile, oops. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c6d6749d6f1446862ceb10c4bfe05a820b565560;p=quix0rs-gnu-social.git Only unbind privacy checkbox when actually on mobile profile, oops. --- 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"); + });' + ); + } + + }