hide certain elements by default to prevent flickering; fixes #1357

This commit is contained in:
Toks
2013-07-06 16:39:47 -04:00
parent 66dc220d44
commit 0fb44a801b
4 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
<% cache("news-updates", :expires_in => 1.hour) do %>
<div id="news-updates" data-id="<%= NewsUpdate.recent.first.try(:id) %>">
<div id="news-updates" data-id="<%= NewsUpdate.recent.first.try(:id) %>" style="display:none">
<ul>
<% NewsUpdate.recent.each do |news_update| %>
<li><%= news_update.created_at.strftime("%b %d") %>: <%= news_update.message.html_safe %></li>

View File

@@ -1,4 +1,4 @@
<section id="blacklist-box">
<section id="blacklist-box" style="display:none">
<h1>Blacklisted</h1>
<ul id="blacklist-list">
</ul>

View File

@@ -23,5 +23,5 @@
</select>
</form>
</section>
<input id="tag-script-field" placeholder="Enter tag script"></input>
<input id="tag-script-field" placeholder="Enter tag script" style="display:none"></input>
<% end %>

View File

@@ -17,8 +17,8 @@
<li>Favorites: <span id="favcount-for-post-<%= post.id %>"><%= post.fav_count %></span>
<% if CurrentUser.is_gold? %>
<%= link_to "&raquo;".html_safe, "#", :id => "show-favlist-link" %>
<%= link_to "&laquo;".html_safe, "#", :id => "hide-favlist-link" %>
<div id="favlist"><%= post_favlist(post) %></div>
<%= link_to "&laquo;".html_safe, "#", :id => "hide-favlist-link", :style => "display: none" %>
<div id="favlist" style="display:none"><%= post_favlist(post) %></div>
<% end %></li>
<li>
Status: