Skip to content

Commit

Permalink
Merge pull request #88 from newtheatre/ui
Browse files Browse the repository at this point in the history
Fix not selling if there are no reservations
  • Loading branch information
harry-bridge committed Nov 12, 2016
2 parents c115adb + 9fb24b2 commit e54df36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tickets/templates/show_report.html
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ <h5 class="nnt-text text-orange thin">
function checkSell(num, num_left) {
var reservation = $('#reservation').val();
var reservation_number = $('#reservation_number').val()
if ( typeof(num_left) != "undefined" || "") {
if ( typeof(num_left) == "undefined" || "") {
num_left = left
};

Expand All @@ -563,7 +563,7 @@ <h5 class="nnt-text text-orange thin">
};
if (reservation != 'None' && num == reservation_number) {
$('#sell_button').prop("disabled", false);
} else {
} else if (reservation != 'None' && num != reservation_number) {
$('#sell_button').prop("disabled", true);
};

Expand Down

0 comments on commit e54df36

Please sign in to comment.