From 85ee06163ff0df3b3e53cf09da7c3a3a487705a0 Mon Sep 17 00:00:00 2001 From: sachinganesh Date: Fri, 2 Dec 2022 18:10:12 +0530 Subject: [PATCH] code added --- assets/js/home.js | 22 ++++++++++++++++++++++ assets/js/mian.js | 11 +++++++++++ 2 files changed, 33 insertions(+) create mode 100644 assets/js/home.js create mode 100644 assets/js/mian.js diff --git a/assets/js/home.js b/assets/js/home.js new file mode 100644 index 0000000..7c19c89 --- /dev/null +++ b/assets/js/home.js @@ -0,0 +1,22 @@ +import { getCookie } from "./cookiehelper.js"; +import { initListIndex } from "./list.index.js"; + +initListIndex(); + +$('#detailBtn').click(function () { + $('.bdy-ul').addClass('d-none'); + // Unibase.Themes.Compact.Components.Notification.Instance().loadReminderDetails(105013010001972,105010260000090,'Details','null',6,0,null) + const cookie = getCookie('_idty'); + if (cookie) { + const { + unibaseId, + tenantId, + userId + } = JSON.parse(cookie); + debugger; + $('#detailIframe').html( + `` + ); + } + +}); \ No newline at end of file diff --git a/assets/js/mian.js b/assets/js/mian.js new file mode 100644 index 0000000..e090aea --- /dev/null +++ b/assets/js/mian.js @@ -0,0 +1,11 @@ +import { isAuthenticated } from "./cookiehelper.js"; + +function checkUser(params) { + if (isAuthenticated()) { + window.location = './authentication'; + } else { + window.location = './login'; + } +} + +checkUser(); \ No newline at end of file