chore:Add js file for customer login
parent
a02efb48b2
commit
915aff6074
|
@ -0,0 +1,24 @@
|
|||
$(document).ready(function() {
|
||||
//Check if the dialog should be shown based on the flag in local storage
|
||||
if (!localStorage.getItem('tbm_dialog_closed')) {
|
||||
$('#tbm-not-set-modal').modal('show');
|
||||
}
|
||||
|
||||
//Handle click event for the close link
|
||||
$('#close-tbm-modal').click(function() {
|
||||
//Set flag in local storage when the close link is clicked
|
||||
localStorage.setItem('tbm_dialog_closed', 'true');
|
||||
});
|
||||
|
||||
//Handle click event for the "Set Measurements" button
|
||||
$('#set-measurements-tbm-modal').click(function() {
|
||||
//Set flag in local storage when the "Set Measurements" button is clicked
|
||||
localStorage.setItem('tbm_dialog_closed', 'true');
|
||||
});
|
||||
|
||||
//Listen for click event on logout button
|
||||
$('.logout').click(function() {
|
||||
//Clear the local storage item
|
||||
localStorage.removeItem('tbm_dialog_closed');
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue