Plugin Directory

Changeset 1023793


Ignore:
Timestamp:
11/11/2014 11:02:23 AM (11 years ago)
Author:
pedroventura
Message:

Fixed the javascript code for messages with return carriges.

Location:
spain-cookie-law/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • spain-cookie-law/trunk/assets/js/cookie-check.js

    r802994 r1023793  
    5959
    6060    // funcion que se encarga de mostrar el mensaje legal
    61     // @todo: Posible mejora para sacar el texto y que se pueda configurar desde el dashboard de WP.
    6261    cargaMensaje: function _cargaMensaje() {
    6362        laCookie = CookieLegal.leerCookie();
     
    6968    // funcion para leer el valor de la cookie
    7069    leerCookie: function _leerCookie() {
    71         laCookie = parseInt( jQuery.cookie( 'cookie_legal_' + CookieLegal.web ) );
     70        laCookie = parseInt( jQuery.cookie( 'cookie_legal_' + CookieLegal.web ), 10 );
    7271        return laCookie;
    7372    },
  • spain-cookie-law/trunk/cookie-ley-espanola.php

    r827042 r1023793  
    44 * Plugin URI: http://www.pedroventura.com/internet/plugin-en-wordpress-cumplir-ley-espanola
    55 * Description: Este plugin aporta la funcionalidad para hacer cumplir la ley de cookies en España informado al usuario de que el sitio usa las cookies propias o de terceros para mejorar el servicio de navegación, preferencias, mediciones y/o publicidad
    6  * Version: 1.2.1
     6 * Version: 1.2.2
    77 * Author: Pedro Ventura
    88 * Author URI: http://www.pedroventura.com/
     
    164164            ajaxCallback: "<?php echo home_url(); ?>/wp-admin/admin-ajax.php",
    165165            checkGeoip: "<?php echo $checkGeoip;?>",
    166             mensaje: "<?php echo $mensaje;?>",
     166            mensaje: "<?php
     167                echo str_replace("\n", "<br />",
     168                    str_replace("\r\n", "\n", $mensaje));
     169                    ?>",
    167170            pagePermanlink:"<?php echo page_slug();?>",
    168171            tituloPagina: "<?php echo $tituloPagina;?>",
  • spain-cookie-law/trunk/readme.txt

    r827042 r1023793  
    11=== Wordpress Plugin Ley Cookie ===
    22Tags: Cookie, cookies, ley, law, Spain, España
    3 Tested up to: 3.8
    4 Stable tag: 1.2.1
     3Tested up to: 4.0
     4Stable tag: 1.2.2
    55License: GPLv2 or later
    66License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.