scripts/volume.js
changeset 61 88b105a901be
parent 60 acc7755e15b6
child 78 08f8a72b1f7b
equal deleted inserted replaced
60:acc7755e15b6 61:88b105a901be
   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           });