Added ESC keep to upload textbox to cancel.

This commit is contained in:
Jeffrey Bush 2014-08-13 20:57:35 -07:00
parent defabcc772
commit 5fff038965

View File

@ -269,7 +269,10 @@ define([
.attr('value', name) .attr('value', name)
.attr('size', '30') .attr('size', '30')
.attr('type', 'text') .attr('type', 'text')
.keyup(function(event){if(event.keyCode == 13){item.find('.upload_button').click();}}) .keyup(function(event){
if(event.keyCode == 13){item.find('.upload_button').click();}
else if(event.keyCode == 27){item.remove();}
})
); );
}; };