equal
deleted
inserted
replaced
100 |
100 |
101 $(box).fadeIn(250); |
101 $(box).fadeIn(250); |
102 field.focus(); |
102 field.focus(); |
103 field.onkeyup = function(e) |
103 field.onkeyup = function(e) |
104 { |
104 { |
105 if ( e.keyCode == 13 ) |
105 if ( e.keyCode == 13 || e.keyCode == 27 ) |
106 { |
106 { |
107 if ( this.value == '' ) |
107 if ( this.value == '' || e.keyCode == 27 ) |
108 { |
108 { |
109 $(this.parentNode).fadeOut(250, function(o) |
109 $(this.parentNode).fadeOut(250, function(o) |
110 { |
110 { |
111 o.parentNode.removeChild(o); |
111 o.parentNode.removeChild(o); |
112 }); |
112 }); |