]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Only unbind privacy checkbox when actually on mobile profile, oops.
authorSamantha Doherty <sammy@status.net>
Wed, 8 Jun 2011 19:59:05 +0000 (15:59 -0400)
committerSamantha Doherty <sammy@status.net>
Wed, 8 Jun 2011 19:59:05 +0000 (15:59 -0400)
plugins/MobileProfile/MobileProfilePlugin.php

index e149573e88dc65fbde74770761d4ce02377d41ae..5d84c28dc7bba5edf6c013318d3e40a4ed6e0071 100644 (file)
@@ -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");
+                });'
+            );
+        }
+
+
     }