MS status message now updates the big one on the index page...hooray for jquery
This commit is contained in:
parent
f6687316d6
commit
a9b1954ff6
2 changed files with 15 additions and 1 deletions
|
|
@ -2,7 +2,8 @@
|
|||
%h1#user_name
|
||||
= link_to current_user.real_name, root_path
|
||||
%span= title_for_page
|
||||
%h3= my_latest_message
|
||||
%h3
|
||||
#latest_message= my_latest_message
|
||||
= render "shared/publisher"
|
||||
%ul#stream
|
||||
- for post in @posts
|
||||
|
|
|
|||
|
|
@ -4,6 +4,11 @@
|
|||
$("#publisher_content_pickers .bookmark").click(selectPublisherTab);
|
||||
$("#publisher_content_pickers .blog").click(selectPublisherTab);
|
||||
$("#publisher_content_pickers .photo").click(selectPublisherTab);
|
||||
|
||||
$("#new_status_message").submit(function() {
|
||||
var new_status = $('#status_message_message').val() + " - just now";
|
||||
$('#latest_message').text( new_status );
|
||||
});
|
||||
|
||||
function selectPublisherTab(evt){
|
||||
evt.preventDefault();
|
||||
|
|
@ -16,4 +21,12 @@
|
|||
$(form_id).delay(50).fadeIn(200);
|
||||
}
|
||||
}
|
||||
|
||||
function replaceCurrentStatus(evt){
|
||||
evt.preventDefault();
|
||||
var old_message = $("#latest_message");
|
||||
alert(old_message);
|
||||
var status = $(".new_status_message");
|
||||
alert(status);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue