This commit is contained in:
albert
2013-03-01 06:41:30 -08:00
parent 48953df07b
commit bd316e2bbc
5 changed files with 22 additions and 2 deletions

View File

@@ -136,6 +136,16 @@
if (Danbooru.Cookie.get("close-nav-help") === "1") {
$("#nav-help").hide();
}
$("#close-search-seq-nav").click(function(e) {
Danbooru.Cookie.put("close-search-seq", "1");
$("#search-seq-nav").hide();
e.preventDefault();
});
if (Danbooru.Cookie.get("close-search-seq") === "1") {
$("#search-seq-nav").hide();
}
}
Danbooru.Post.initialize_titles = function() {

View File

@@ -132,6 +132,7 @@ div#c-posts {
margin-bottom: 1em;
background: #EEE;
border: 1px solid #AAA;
position: relative;
p {
margin: 0;
@@ -234,6 +235,13 @@ div#c-posts {
height: 1.5em;
}
}
span.close-button {
position: absolute;
top: 5px;
right: 5px;
cursor: pointer;
}
}
div#quick-edit-div {

View File

@@ -68,7 +68,7 @@ class UserFeedback < ActiveRecord::Base
end
def create_dmail
body = %{#{creator_name} created a "#{category} record":/user_feedbacks?search[user_id]=#{user_id} for your account.}
body = %{#{creator_name} created a "#{category} record":/user_feedbacks?search[user_id]=#{user_id} for your account. #{body}}
Dmail.create_split(:to_id => user_id, :title => "Your user record has been updated", :body => body)
end

View File

@@ -1,3 +1,3 @@
<div id="nav-help" class="ui-corner-all nav-notice">
<p class="hint">Press <span class="key">&larr;</span> or <span class="key">&rarr;</span> to navigate posts and <span class="key">space</span> to scroll [<%= link_to "close", "#", :id => "close-nav-help-link" %>]</p>
<p class="hint">Press <span class="key">&larr;</span> or <span class="key">&rarr;</span> to navigate posts and <span class="key">space</span> to scroll <span class="close-button ui-icon ui-icon-closethick" id="close-nav-help-link"></span></p>
</div>

View File

@@ -6,4 +6,6 @@
<%= link_to "next&raquo;".html_safe, show_seq_post_path(post, :tags => params[:tags], :seq => "next"), :rel => "next" %>
</li>
</ul>
<span class="close-button ui-icon ui-icon-closethick" id="close-search-seq-nav"></span>
</div>