code added

This commit is contained in:
2022-12-02 18:10:12 +05:30
parent 32821eb02c
commit 85ee06163f
2 changed files with 33 additions and 0 deletions
+22
View File
@@ -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(
`<iframe width="100%" style="min-height:746px"  name="srcframe" id="srcframe" class="srcframe" src="http://localhost:1188/#/${unibaseId}/${tenantId}/${userId}/106457720000011/100010270000325/loadDetail"></iframe>`
);
}
});
+11
View File
@@ -0,0 +1,11 @@
import { isAuthenticated } from "./cookiehelper.js";
function checkUser(params) {
if (isAuthenticated()) {
window.location = './authentication';
} else {
window.location = './login';
}
}
checkUser();