Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 547 | Rev 552 | 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() {
        $('body').on('click', 'a.lien-externe, a.lien_externe', ouvrirFenetreExterne);
        $('body').on('click', '.mailto', 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');
}