From 7271273d450a4df23ee07b4ca00c6d280b2e1d50 Mon Sep 17 00:00:00 2001 From: RootAndroid58 Date: Thu, 3 Sep 2020 20:46:09 +0530 Subject: [PATCH] few bugs fixed --- .gitignore | 4 +- TxnStatus.php | 1 + js/login.js | 30 +------ js/table.js | 2 +- table.php | 212 -------------------------------------------------- 5 files changed, 5 insertions(+), 244 deletions(-) delete mode 100644 table.php diff --git a/.gitignore b/.gitignore index 9edc8e6..59574c6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ .env -js/db.js -lib/config_paytm.php \ No newline at end of file +db.js +config_paytm.php \ No newline at end of file diff --git a/TxnStatus.php b/TxnStatus.php index d64c16f..9be04e9 100644 --- a/TxnStatus.php +++ b/TxnStatus.php @@ -39,6 +39,7 @@ + diff --git a/js/login.js b/js/login.js index d304ed2..0a43d28 100644 --- a/js/login.js +++ b/js/login.js @@ -1,11 +1,5 @@ var auth = firebase.auth(); - - -onauthchange(); - - - const login = document.querySelector('#login'); login.addEventListener('submit', (e) => { e.preventDefault(); @@ -21,26 +15,4 @@ login.addEventListener('submit', (e) => { sessionStorage.setItem("uid", cred.user.uid); window.location = 'dashboard.php' }) -}) - -const log_in = document.getElementById("in"); -log_in.addEventListener('click', (e) => { - e.preventDefault(); - onauthchange(); -}) - - - -function onauthchange() { - auth.onAuthStateChanged(user => { - if (user) { - log_in.className.add = 'd-none' - out.className.remove = 'd-none' - - } - if (!user) { - log_in.className.remove = 'd-none' - out.className.add = 'd-none' - } - }) -} \ No newline at end of file +}) \ No newline at end of file diff --git a/js/table.js b/js/table.js index 9c8feb7..551b6ac 100644 --- a/js/table.js +++ b/js/table.js @@ -24,7 +24,7 @@ auth.onAuthStateChanged(user => { function createcell(cell) { if (!del) emptytable() - $("table tbody").append(cell) + $("#ipi-table > tbody").append(cell) $("table").trigger("update"); } diff --git a/table.php b/table.php deleted file mode 100644 index 5c03baf..0000000 --- a/table.php +++ /dev/null @@ -1,212 +0,0 @@ - - - - - - - - Orders - Admin - - - - - - - - - - - - - - - - - - - - - - - - - -

Orders

-
-
-
-
- -
-
-
Showing: ALL Row(s)
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - -
Order IDNameEmail IDDateAmountStatus
-
-
-
- -
-
- - - - \ No newline at end of file