Skip to content

Instantly share code, notes, and snippets.

@lianglee
Created January 21, 2015 19:07
Show Gist options
  • Select an option

  • Save lianglee/e7208bfab566467d1d5c to your computer and use it in GitHub Desktop.

Select an option

Save lianglee/e7208bfab566467d1d5c to your computer and use it in GitHub Desktop.
Add new code to ossn_wall.php
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);
}
});
});
@githubertus
Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment