Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- addRefreshButton : function() {
- let button_l = "<a class=\'btn btn-primary pull-right refresh-page\' href=\'#refresh\'>Actualiser</a>"
- var path = window.location.pathname;
- if (path.startsWith("/topic")) {
- $(".pagination + a").after(button_l);
- }
- else if (path.startsWith("/forum")) {
- $(".pagination:last-of-type").after("<div class='row'>"+button_l+"</div>");
- }
- },
- </spoiler>
Advertisement
Add Comment
Please, Sign In to add comment