File tree 3 files changed +3
-6
lines changed
3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 606
606
<asp:TextBox ID =" TextBoxNationalID" runat =" server" Placeholder =" Enter your National ID" CssClass =" styled-textbox" ></asp:TextBox >
607
607
<asp:Button ID =" ButtonFetchCashback" runat =" server" Text =" Fetch"
608
608
OnClick =" btnSubmit_Cashback" CssClass =" styled-button" />
609
+ <br />
609
610
<asp:Label ID =" lblCashbackStatus" runat =" server" ></asp:Label >
610
611
</div >
611
612
<div class =" content" id =" remainingExtraAmount" >
700
701
}
701
702
});
702
703
703
- // Clear localStorage on window close
704
- window .addEventListener (" beforeunload" , function () {
705
- localStorage .clear ();
706
- });
707
-
708
704
// Sortable Table Functionality
709
705
document .addEventListener (' DOMContentLoaded' , function () {
710
706
document .querySelectorAll (' .styled-table th' ).forEach (function (th ) {
742
738
743
739
function logout () {
744
740
// Clear the session variable
745
- localStorage .removeItem (' activeSection' );
746
741
localStorage .clear ();
747
742
// Send a POST request to the logout endpoint
748
743
fetch (' logout.aspx' , { method: ' POST' })
Original file line number Diff line number Diff line change 189
189
190
190
// Show the pop-up when the page loads
191
191
window .onload = function () {
192
+ localStorage .clear ();
192
193
// Check if the user is visiting for the first time in this session
193
194
if (! sessionStorage .getItem (' closedCustomerLogin' )) {
194
195
showPopup ();
Original file line number Diff line number Diff line change 178
178
179
179
// Show the pop-up when the page loads
180
180
window .onload = function () {
181
+ localStorage .clear ();
181
182
// Check if the user is visiting for the first time in this session
182
183
if (! sessionStorage .getItem (' closedAdmin' )) {
183
184
showPopup ();
You can’t perform that action at this time.
0 commit comments