Skip to content

Commit

Permalink
history filtration fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatov committed Aug 18, 2011
1 parent 7d8eecf commit 5d42804
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/webapp/scripts/cohistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,19 @@ $(document).ready(function() {
});

function reload() {
var input = $("#textfilter > input");
var input = $("#textfilter > span > input");
input.bind("keyup", function(event) {
if (event.keyCode == 27) { // escape
input.attr("value", "");
}
filter();
});
input.focus(function(event) { input.select(); });

input.change(function() { filter(); });

$("#textfilter > .post").click(function(){
$("#textfilter > input").attr("value", "");
$("#textfilter > span > input").attr("value", "");
filter();
});

Expand Down

0 comments on commit 5d42804

Please sign in to comment.