63
|
1 $(".block[id*=messages]").livequery(function() {
|
|
2
|
|
3 var block = $(this);
|
|
4 block.find("#notes_new").live('click', function() {
|
|
5 var container = $(this).parents().find(".block");
|
|
6 switchSubscreens(container, "main", "editor");
|
|
7 });
|
|
8
|
|
9 block.find("#notes_cancel_button").live('click', function() {
|
|
10 var container = $(this).parents().find(".block");
|
|
11 switchSubscreens(container, "editor", "main");
|
|
12 });
|
|
13
|
|
14 block.find("#notes_sendto").live('keyup', function(){
|
|
15 if($(this).val()==""){
|
|
16 block.find("#notes_save_button").val("Save");
|
|
17 }
|
|
18 else{
|
|
19 block.find("#notes_save_button").val("Send");
|
|
20 }
|
|
21
|
|
22 });
|
|
23
|
|
24
|
|
25 });
|