Created
January 21, 2015 19:07
-
-
Save lianglee/e7208bfab566467d1d5c to your computer and use it in GitHub Desktop.
Add new code to ossn_wall.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Ossn.RegisterStartupFunction(function() { | |
| $(document).ready(function() { | |
| var OSSN_PUBLIC = 2; | |
| var OSSN_FRIENDS = 3; | |
| var wallprivacy = $('#ossn-wall-privacy').val(); | |
| if (wallprivacy == OSSN_PUBLIC) { | |
| $('#radio-public-privacy').attr('checked', true); | |
| } else if (wallprivacy == OSSN_FRIENDS) { | |
| $('#radio-private-privacy').attr('checked', true); | |
| } | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
will check it locally first.
No, doesn't work this way. :(
wallprivacy value is set correctly here, but the ckecked=true seems to be overwriten later