Browse Source

improved theme selection mechanism: don't force display:block on every themable element.

master
Miguel Freitas 10 years ago
parent
commit
f3b82534e4
  1. 2
      home.html
  2. 4
      js/interface_common.js

2
home.html

@ -472,7 +472,7 @@ @@ -472,7 +472,7 @@
<!-- ÁREA DE POSTS INIT -->
<div class="postboard">
<h2>
<span class="selectable_theme theme_original">Posts</span>
<span class="selectable_theme theme_original theme_calm">Posts</span>
<!-- o botão de novas postagens deve ser ocultado quando o usuário clicá-lo via javascript -->
<button class="postboard-news" style="display:none;"></button>
</h2>

4
js/interface_common.js

@ -1232,8 +1232,8 @@ function changeStyle() { @@ -1232,8 +1232,8 @@ function changeStyle() {
}
$('#stylecss').attr('href', style);
$('#profilecss').attr('href', profile);
$("<style type='text/css'> .selectable_theme{display:none!important;}\n" +
".theme_" + theme + "{display:block!important;}</style>").appendTo("head");
$("<style type='text/css'> .selectable_theme:not(.theme_" + theme + ")" +
"{display:none!important;}\n</style>").appendTo("head");
setTimeout(function(){$(menu).removeAttr('style')}, 0);
}

Loading…
Cancel
Save