From fb28f7156580fa36d50f72739c251a097a847e84 Mon Sep 17 00:00:00 2001 From: coderick14 Date: Tue, 4 Jul 2017 18:49:04 +0530 Subject: Change url to /sbhs-rpi from /sbhs --- templates/admin/changeMID.html | 4 ++-- templates/admin/index.html | 2 +- templates/admin/testexp.html | 2 +- templates/admin/user_logs.html | 15 ++++++++++----- templates/webcam/show_video.html | 15 +-------------- 5 files changed, 15 insertions(+), 23 deletions(-) diff --git a/templates/admin/changeMID.html b/templates/admin/changeMID.html index a2ca257..1ccfea0 100644 --- a/templates/admin/changeMID.html +++ b/templates/admin/changeMID.html @@ -31,7 +31,7 @@ function updateMID() { $("#update-btn").prop('disabled',true); - var BASE_URL = window.location.origin + "/sbhs"; +var BASE_URL = window.location.origin + "/sbhs-rpi"; var username = $("#username").val(); var board_id = $("#mid").children(":selected").attr("id"); @@ -65,7 +65,7 @@ // for live search of usernames if (sessionStorage.getItem("fetchedUsers") == null) { - var BASE_URL = window.location.origin + "/sbhs"; +var BASE_URL = window.location.origin + "/sbhs-rpi"; var request = $.ajax({ url: BASE_URL + '/admin/getusers', method: 'POST' diff --git a/templates/admin/index.html b/templates/admin/index.html index dba8419..a28935f 100644 --- a/templates/admin/index.html +++ b/templates/admin/index.html @@ -40,7 +40,7 @@ $(".label-warning").click(toggleState); function toggleState() { - var BASE_URL = window.location.origin + "/sbhs"; +var BASE_URL = window.location.origin + "/sbhs-rpi"; if (window.confirm("Are you sure you want to toggle the state?")) { var element = $(this); var board_class = element.attr("class"); diff --git a/templates/admin/testexp.html b/templates/admin/testexp.html index 4379952..807e0f2 100644 --- a/templates/admin/testexp.html +++ b/templates/admin/testexp.html @@ -92,7 +92,7 @@