Skip to content

Commit

Permalink
Removed a global method that was being used for updating authors into…
Browse files Browse the repository at this point in the history
… an anonymous method to prevent errors upon loading other authors for editing via Ajax.
  • Loading branch information
lethain committed Jun 4, 2008
1 parent 453cb78 commit 9859865
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions templates/lifeflow/editor/author.html
Expand Up @@ -8,8 +8,14 @@
}

$(document).ready(function() {
$("#author-details").hover(function(){},function(){ update_author(); });
});
$("#author-details").hover(
function(){},
function(){
var data = {name:$("#author-name").val(),
slug:$("#author-slug").val(),
bio:$("#author-bio").val()};
update_model("author", {{ author.pk }}, data);
})});

</script>

Expand Down

0 comments on commit 9859865

Please sign in to comment.