Skip to content

Commit

Permalink
ID-3827 Ensures inline links are only initialized once (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytlwu authored Mar 12, 2024
1 parent 1b3fb76 commit e2b6f15
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/build.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
Fliplet.Widget.instance('inline-link', function(config) {
if ($(this).data('initialized')) {
return;
}

$(this).on('click', function(event) {
event.preventDefault();

Fliplet.Navigate.to(config.action);
});
}).data('initialized', true);
});

0 comments on commit e2b6f15

Please sign in to comment.