Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 551 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

/** 
 * Contient les fonction JS communes à l'ensemble des parties d'eflore (popup.php, index.php).
 * 
 */

$(document).ready(function() {
        $('a.lien-externe, a.lien_externe').on('click', ouvrirFenetreExterne);
        $('.mailto').on('click', ouvrirPopUpContact);
});

function ouvrirFenetreExterne(event) {
        event.preventDefault();
        window.open($(this).attr('href'));
}

function ouvrirPopUpContact(event) {
        event.preventDefault();
        window.open($(this).attr('href'), "Contact", 
                'height=500, width=500, top=100, left=100, toolbar=no, menubar=no, location=no, resizable=yes, scrollbars=yes, status=no');
}