Guest User

Enlever le bouton actualiser toolkit

a guest
Nov 25th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. addRefreshButton : function() {
  2. let button_l = "<a class=\'btn btn-primary pull-right refresh-page\' href=\'#refresh\'>Actualiser</a>"
  3. var path = window.location.pathname;
  4. if (path.startsWith("/topic")) {
  5. $(".pagination + a").after(button_l);
  6. }
  7. else if (path.startsWith("/forum")) {
  8. $(".pagination:last-of-type").after("<div class='row'>"+button_l+"</div>");
  9. }
  10.  
  11. },
  12. </spoiler>
Advertisement
Add Comment
Please, Sign In to add comment