* Console: Add ability to hide news

This commit is contained in:
zzz
2011-11-09 18:38:39 +00:00
parent af42b9e9a8
commit 37e3e9e2cf
8 changed files with 93 additions and 41 deletions

View File

@ -48,6 +48,17 @@ public class CSSHelper extends HelperBase {
return Messages.getLanguage(_context);
}
/**
* Show / hide news on home page
* @param val if non-null, "1" to show, else hide
* @since 0.8.12
*/
public void setNews(String val) {
// Protected with nonce in css.jsi
if (val != null)
NewsFetcher.getInstance(_context).showNews(val.equals("1"));
}
/** change refresh and save it */
public void setRefresh(String r) {
_context.router().setConfigSetting(PROP_REFRESH, r);