Skip to content

Commit

Permalink
Revert "reload page after filtering"
Browse files Browse the repository at this point in the history
This reverts commit a8d3885.
  • Loading branch information
ashrafreda authored and abohazza committed Jan 20, 2024
1 parent 6f79564 commit 4917247
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class App extends AppHelpers {
this.initiateDropdowns();
this.initiateModals();
this.initiateCollapse();
this.reloadPageAfterFiltering();
initTootTip();

salla.comment.event.onAdded(() => window.location.reload());
Expand All @@ -30,13 +29,6 @@ class App extends AppHelpers {
this.log('Theme Loaded 🎉');
}

// reload page after filtering
reloadPageAfterFiltering(){
document.querySelector('#product-filter')?.addEventListener('change',()=>{
location.reload();
})
}

log(message) {
salla.log(`ThemeApp(Raed)::${message}`);
return this;
Expand Down

0 comments on commit 4917247

Please sign in to comment.