Skip to content

Commit

Permalink
Gate system (#452) - v2.9.1
Browse files Browse the repository at this point in the history
* Gate system (#449)

* Update package.json

* Update drupal_ticket_sync.js

* version bump v2.8.6

* Allow exit

* V2.8.8

* fix lint

* Update package.json

* Gate Web UI fixes

* v2.9.0

* Update package.json

* Gate system (#451)

* Gate Web UI fixes

* Gate system (#449) (#450)

* Gate system (#449)

* Update package.json

* Update drupal_ticket_sync.js

* version bump v2.8.6

* Allow exit

* V2.8.8

* fix lint

* Update package.json

* Gate Web UI fixes

* v2.9.0

* bug fix

* merge fix
  • Loading branch information
LeonFedotov authored May 28, 2017
1 parent fe288ca commit fb5f99a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 5 additions & 2 deletions views/pages/gate.jade
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ block scripts
});

$(document).on("click", ".entranceAction", function () {
clearModal();
$.post("/api/gate/get-ticket", {
barcode: this.id,
gate_code: "#{gate_code}"
Expand Down Expand Up @@ -176,6 +177,7 @@ block scripts
});

$(document).on("click", ".exitAction", function () {
clearModal();
$.post("/api/gate/get-ticket", {
barcode: this.id,
gate_code: "#{gate_code}"
Expand Down Expand Up @@ -235,13 +237,14 @@ block scripts
});
}

$("#myModal").on('hide.bs.modal', function() {
function clearModal() {
$("#modal_mode")[0].innerHTML = "";
$("#modal_barcode")[0].innerHTML = "";
$("#modal_ticket_number")[0].innerHTML = "";
$("#modal_name")[0].innerHTML = "";
$("#modal_email")[0].innerHTML = "";
$("#modal_type")[0].innerHTML = "";
$("#modal_israeli_id")[0].innerHTML = "";
});

}
});

0 comments on commit fb5f99a

Please sign in to comment.