MediaWiki:Common.js

Fonte: Ashes of Creation Wiki
Saltar para a navegação Saltar para a pesquisa

Nota: Depois de gravar, terá de limpar a cache do seu navegador para ver as alterações.

  • Firefox / Safari: Pressione Shift enquanto clica Recarregar, ou pressione Ctrl-F5 ou Ctrl-R (⌘-R no Mac)
  • Google Chrome: Pressione Ctrl-Shift-R (⌘-Shift-R no Mac)
  • Internet Explorer: Pressione Ctrl enquanto clica Recarregar, ou pressione Ctrl-F5
  • Opera: Ir para Menu → Configurações (Opera → Preferências no Mac) e, em seguida, Privacidade e segurança → Limpar dados de navegação → Imagens e ficheiros em cache.
$(function () {
    /*$('.gallery video:not([controls]):not(.mediatest)').click(function (e) {
        var url = $(e.target).find('a').text();
        window.location.href = url;
    });*/
    $('.gallery.hoverhighlight a:has(img[link])').removeClass('image').off('click').click(function (e) {
        e.preventDefault();
        e.stopPropagation();
        return false;
    });
    $('.gallery.hoverhighlight a').off('click').click(function (e) {
        e.preventDefault();
        e.stopPropagation();
        var url = decodeURI($(e.target).parents('a').first().attr('href'));
        if(!url) return false;
        var matches = url.match(/"(.*?)"/);
        if(matches)
           window.location.href = matches[1];
        return false;
    });
});