fixes #674
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<div id="nav-help" class="ui-corner-all nav-notice">
|
||||
<p class="hint">Press <span class="key">←</span> or <span class="key">→</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">←</span> or <span class="key">→</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>
|
||||
|
||||
@@ -6,4 +6,6 @@
|
||||
<%= link_to "next»".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>
|
||||
|
||||
Reference in New Issue
Block a user