]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/MobileProfile/MobileProfilePlugin.php
Only unbind privacy checkbox when actually on mobile profile, oops.
[quix0rs-gnu-social.git] / 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");
+                });'
+            );
+        }
+
+
     }