Skip to content
This repository has been archived by the owner on Mar 16, 2018. It is now read-only.

Commit

Permalink
Solve #1
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeVienne committed Feb 25, 2017
1 parent 4f78a92 commit 732796f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ticketing/static/ticketing/js/sell_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ $(function () {

var last_va_checked = "";
$form.find('#id_va_id').keydown(function (e) {
if (e.keyCode == 13 && last_va_checked!=$(this).val()) {
if (e.keyCode === 13) {
if(last_va_checked!==$(this).val()){
last_va_checked = "";
return;
}
$form.addClass('loading-mask');
$.post('/va/check', {code: $(this).val()}).done(function (result) {
if(result.tickets>0){
Expand Down

0 comments on commit 732796f

Please sign in to comment.