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"); + });' + ); + } + + }