Only unbind privacy checkbox when actually on mobile profile, oops.

This commit is contained in:
Samantha Doherty 2011-06-08 15:59:05 -04:00
parent 40cfc5490a
commit c6d6749d6f
1 changed files with 10 additions and 1 deletions

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