mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-15 01:12:12 +00:00
fix switch-to-normal/promoted-posts to be compatible with different themes. add polyglot.t() to strings
This commit is contained in:
parent
0c1dbae4e6
commit
70e38192de
@ -22,12 +22,12 @@ var InterfaceFunctions = function()
|
|||||||
$( ".userMenu-home.current a").click(function() {
|
$( ".userMenu-home.current a").click(function() {
|
||||||
requestTimelineUpdate("latest",postsPerRefresh,followingUsers,promotedPostsOnly);});
|
requestTimelineUpdate("latest",postsPerRefresh,followingUsers,promotedPostsOnly);});
|
||||||
|
|
||||||
$( ".promoted-posts-only").click(function() {
|
$( ".promoted-posts-only").click(function() {
|
||||||
promotedPostsOnly = !promotedPostsOnly;
|
promotedPostsOnly = !promotedPostsOnly;
|
||||||
|
|
||||||
if(theme == 'nin')
|
if(theme == 'nin')
|
||||||
{
|
{
|
||||||
// modify the way promoted posts are shown
|
// modify the way promoted posts are shown
|
||||||
//active promoted posts tab
|
//active promoted posts tab
|
||||||
$(this).children('.promoted-posts').addClass(promotedPostsOnly ? "active" : "disabled");
|
$(this).children('.promoted-posts').addClass(promotedPostsOnly ? "active" : "disabled");
|
||||||
$(this).children('.normal-posts').addClass(promotedPostsOnly ? "disabled" : "active");
|
$(this).children('.normal-posts').addClass(promotedPostsOnly ? "disabled" : "active");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user