Todo editing and deletion working beautifully.

Removing UJS caused the home page to stop rendering due to references to
apply_behavior. I had to take care of that before I could proceed at all.

Some Autocomplete stuff has been yanked out and needs to go back in at some point.

Had to replace Protoload with jQuery.blockUI. It's a bit bigger, but oh well.
This commit is contained in:
Eric Allen 2009-09-07 16:58:26 -04:00
parent 40321668d1
commit 59b367a711
11 changed files with 497 additions and 162 deletions

View file

@ -210,8 +210,7 @@ function setup_container_toggles(){
$(document).ready(function() {
/* fade flashes and alerts in automatically */
$(".alert").fadeIn(8000);
$('#flash:visible').fadeIn(5000);
$(".alert").fadeOut(5000);
/* set behavior for star icon */
$(".item-container a.star_item").
@ -224,4 +223,20 @@ $(document).ready(function() {
setup_container_toggles();
$('input.Date').datepicker();
$('#toggle_action_new').click(function(){
TracksForm.toggle('toggle_action_new', 'todo_new_action', 'todo-form-new-action',
'« Hide form', 'Hide next action form',
'Add a next action »', 'Add a next action');
});
$('.edit-form a.negative').live('click', function(){
$(this).parents('.container').find('.item-show').show();
$(this).parents('.edit-form').hide();
});
$(".date_clear").live('click', function() {
/* add behavior to clear the date both buttons for show_from and due */
$(this).prev().val('');
})
});