Modified API calls and subprocess calls to work with the new system

This commit is contained in:
Jared
2017-02-11 13:57:27 +00:00
parent b680ddf512
commit 9c7bf52e8f
3 changed files with 9 additions and 7 deletions
+3 -3
View File
@@ -24,7 +24,7 @@ function save() {
authCode += 1;
if ($('#tools').is(':checked'))
authCode += 2;
$.getJSON('http://127.0.0.1:5000/addcard/' + cardID + '/' + name + '/' + authCode, function(data) {
$.getJSON('http://130.237.3.207/addcard/' + cardID + '/' + name + '/' + authCode, function(data) {
});
overlay_out();
@@ -32,7 +32,7 @@ function save() {
$(document).ready(function() {
jQuery.ajaxSetup({ cache: false });
$.getJSON('http://127.0.0.1:5000/gethistory', function(data) {
$.getJSON('http://130.237.3.207/gethistory', function(data) {
eventHistory = data.reverse();
var newHistory = '<div class="event-wrapper">';
@@ -57,7 +57,7 @@ $(document).ready(function() {
$('.recent').on('click', '.event', function() {
var cardID = $(this).attr('card-id');
$('.card-id').text(cardID);
$.getJSON('http://127.0.0.1:5000/getcardinfo/' + cardID, function(data) {
$.getJSON('http://130.237.3.207/getcardinfo/' + cardID, function(data) {
$('#name').val(data.name);
if (data.fridge)
$('#fridge').prop('checked', true);