diff --git a/package.json b/package.json index 220d77a62..0852a723e 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "this is part of the deployment proess, so it is important to update the version number", "version name corresponds to the github release name / tag name - https://github.com/Midburn/Spark/releases" ], - "version": "2.9.0", + "version": "2.9.1", "private": true, "scripts": { "postinstall": "bower install", diff --git a/views/pages/gate.jade b/views/pages/gate.jade index df803fb19..3e9c1b6c1 100644 --- a/views/pages/gate.jade +++ b/views/pages/gate.jade @@ -136,6 +136,7 @@ block scripts }); $(document).on("click", ".entranceAction", function () { + clearModal(); $.post("/api/gate/get-ticket", { barcode: this.id, gate_code: "#{gate_code}" @@ -176,6 +177,7 @@ block scripts }); $(document).on("click", ".exitAction", function () { + clearModal(); $.post("/api/gate/get-ticket", { barcode: this.id, gate_code: "#{gate_code}" @@ -235,7 +237,7 @@ block scripts }); } - $("#myModal").on('hide.bs.modal', function() { + function clearModal() { $("#modal_mode")[0].innerHTML = ""; $("#modal_barcode")[0].innerHTML = ""; $("#modal_ticket_number")[0].innerHTML = ""; @@ -243,5 +245,6 @@ block scripts $("#modal_email")[0].innerHTML = ""; $("#modal_type")[0].innerHTML = ""; $("#modal_israeli_id")[0].innerHTML = ""; - }); + + } });