Changed cap script
This commit is contained in:
parent
d41a970202
commit
a70fbc6a4a
1 changed files with 12 additions and 25 deletions
|
|
@ -1,33 +1,20 @@
|
|||
$(document).ready( function() {
|
||||
|
||||
$("#publisher_content_pickers .status_message").click(function(){
|
||||
if( $("#new_status_message").css("display") == "none" ) {
|
||||
$("#publisher_content_pickers").children("a").children("li").removeClass("selected");
|
||||
$("#publisher_content_pickers .status_message").click( selectPicker);
|
||||
|
||||
$("#publisher_content_pickers .bookmark").click(selectPicker);
|
||||
|
||||
$("#publisher_content_pickers .blog").click(selectPicker);
|
||||
|
||||
function selectPicker(event){
|
||||
event.preventDefault();
|
||||
if( $("#new_" + this.className).css("display") == "none" ) {
|
||||
$("#publisher_content_pickers .selected").removeClass("selected");
|
||||
$("#publisher_form form").fadeOut(50);
|
||||
|
||||
$(this).children("a > li").toggleClass("selected");
|
||||
$("#new_status_message").delay(50).fadeIn(200);
|
||||
$("#new_" + this.className).delay(50).fadeIn(200);
|
||||
}
|
||||
});
|
||||
|
||||
$("#publisher_content_pickers .bookmark").click(function(){
|
||||
if( $("#new_bookmark").css("display") == "none" ) {
|
||||
$("#publisher_content_pickers").children("a").children("li").removeClass("selected");
|
||||
$("#publisher_form form").fadeOut(50);
|
||||
|
||||
$(this).children("li").toggleClass("selected");
|
||||
$("#new_bookmark").delay(50).fadeIn(200);
|
||||
}
|
||||
});
|
||||
|
||||
$("#publisher_content_pickers .blog").click(function(){
|
||||
if( $("#new_blog").css("display") == "none" ) {
|
||||
$("#publisher_content_pickers").children("a").children("li").removeClass("selected");
|
||||
$("#publisher_form form").fadeOut(50);
|
||||
|
||||
$(this).children("li").toggleClass("selected");
|
||||
$("#new_blog").delay(50).fadeIn(200);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue