Merge branch 'master' of github.com:diaspora/diaspora_rails
Conflicts: public/javascripts/publisher.js
This commit is contained in:
commit
85cee4064b
4 changed files with 14 additions and 33 deletions
|
|
@ -14,4 +14,4 @@
|
|||
|
||||
- if mine?(post)
|
||||
.destroy_link
|
||||
= link_to 'Delete', blog_path(post), :confirm => 'Are you sure?', :method => :delete
|
||||
= link_to 'Delete', blog_path(post), :confirm => 'Are you sure?', :method => :delete, :remote=> true
|
||||
|
|
|
|||
|
|
@ -15,4 +15,4 @@
|
|||
|
||||
- if mine?(post)
|
||||
.destroy_link
|
||||
= link_to 'Delete', bookmark_path(post), :confirm => 'Are you sure?', :method => :delete
|
||||
= link_to 'Delete', bookmark_path(post), :confirm => 'Are you sure?', :method => :delete, :remote => true
|
||||
|
|
|
|||
|
|
@ -11,4 +11,4 @@
|
|||
|
||||
- if mine?(post)
|
||||
.destroy_link
|
||||
= link_to 'Delete', status_message_path(post), :confirm => 'Are you sure?', :method => :delete
|
||||
= link_to 'Delete', status_message_path(post), :confirm => 'Are you sure?', :method => :delete, :remote => true
|
||||
|
|
|
|||
|
|
@ -1,38 +1,19 @@
|
|||
$(document).ready( function() {
|
||||
|
||||
$("#publisher_content_pickers .status_message").click(function(){
|
||||
if( $("#new_status_message").css("display") == "none" ) {
|
||||
$("#publisher_content_pickers .status_message").click(selectPublisherTab);
|
||||
|
||||
$("#publisher_content_pickers .bookmark").click(selectPublisherTab);
|
||||
|
||||
$("#publisher_content_pickers .blog").click(selectPublisherTab);
|
||||
|
||||
function selectPublisherTab(){
|
||||
var form_id = "#new_" + this.className
|
||||
if( $(form_id).css("display") == "none" ) {
|
||||
$("#publisher_content_pickers").children("li").removeClass("selected");
|
||||
$("#publisher_form form").fadeOut(50);
|
||||
|
||||
$(this).toggleClass("selected");
|
||||
$("#new_status_message").delay(50).fadeIn(200);
|
||||
$(form_id).delay(50).fadeIn(200);
|
||||
}
|
||||
});
|
||||
|
||||
$("#publisher_content_pickers .bookmark").click(function(){
|
||||
if( $("#new_bookmark").css("display") == "none" ) {
|
||||
$("#publisher_content_pickers").children("li").removeClass("selected");
|
||||
$("#publisher_form form").fadeOut(50);
|
||||
|
||||
$(this).toggleClass("selected");
|
||||
$("#new_bookmark").delay(50).fadeIn(200);
|
||||
}
|
||||
});
|
||||
|
||||
$("#publisher_content_pickers .blog").click(function(){
|
||||
if( $("#new_blog").css("display") == "none" ) {
|
||||
$("#publisher_content_pickers").children("li").removeClass("selected");
|
||||
$("#publisher_form form").fadeOut(50);
|
||||
|
||||
$(this).toggleClass("selected");
|
||||
$("#new_blog").delay(50).fadeIn(200);
|
||||
}
|
||||
});
|
||||
|
||||
//$("#publisher").mouseout(function(){
|
||||
//$("#publisher_form form").fadeOut(200);
|
||||
//$("#publisher_content_pickers li").removeClass("selected");
|
||||
//});
|
||||
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue