Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. //Ao carregar
  2. //Remover temporariamente a tarja ao abrir dashboard
  3. if ( $('email-not-confirmed').length > 1)
  4. {
  5. $("body").removeClass("email-not-confirmed");
  6. var els = $('body > a'), saved = els.clone (true);
  7. els.remove ();
  8. }
  9.  
  10. //Ao Fechar pelo botao
  11. if ( $('email-not-confirmed').length > 1)
  12. {
  13. //Ao fechar o dashboard abrir novamente a tarja de confirmacao
  14. $(function () {
  15. $("#modal-support-channel-close").click(function () {
  16. $("body").addClass( "email-not-confirmed" );
  17. saved.appendTo ($('body'));
  18. });
  19. });
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement