Plugin Directory

Changeset 1695358


Ignore:
Timestamp:
07/12/2017 06:05:22 PM (8 years ago)
Author:
ebinnion
Message:

Fix undefined event and improve theme compatibility by removing nn-overlay divs

Location:
net-neutrality/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • net-neutrality/trunk/net-neutrality.js

    r1694628 r1695358  
    3737
    3838        nnLoading.on( 'click', '.nn-overlay', function () {
    39             var thisOverlay = $ ( this );
    40             nnOverlay = $( '#net-neutrality-overlay' );
    41             nnOverlay.show().css( 'opacity', '1' )
     39            var thisOverlay = $ ( this ),
     40                nnOverlay = $( '.nn-overlay' ),
     41                nnOverlayWrap = $( '#net-neutrality-overlay' );
     42
     43            nnOverlayWrap.show().css( 'opacity', '1' );
    4244            $( '#net-neutrality-overlay-action' ).focus();
    4345
     
    4648            } );
    4749
    48             nnOverlay.on( 'click', function() {
     50            nnOverlayWrap.on( 'click', function() {
    4951                $( '.post' ).removeClass( 'nn-loading' );
    5052                thisOverlay.remove();
    51                 $( this ).hide().css( 'opacity', '0' );
     53                nnOverlay.hide().css( 'opacity', '0' ).remove();
     54                nnOverlayWrap.hide().css( 'opacity', '0' );
    5255                $( '#net-neutrality-ribbon' ).show().css( 'opacity', '1' );
    5356            } );
    5457
    55             $( '#net-neutrality-overlay-close' ).on( 'click', function() {
     58            $( '#net-neutrality-overlay-close' ).on( 'click', function( event ) {
    5659                event.preventDefault();
    5760                $( '.post' ).removeClass( 'nn-loading' );
    5861                thisOverlay.remove();
    59                 nnOverlay.hide().css( 'opacity', '0' );
     62                nnOverlay.hide().css( 'opacity', '0' ).remove();
     63                nnOverlayWrap.hide().css( 'opacity', '0' );
    6064                $( '#net-neutrality-ribbon' ).show().css( 'opacity', '1' );
    6165            } );
  • net-neutrality/trunk/net-neutrality.php

    r1695231 r1695358  
    55 * Description: Slow your site down to fight for net neutrality.
    66 * Author: Automattic
    7  * Version: 1.0.1
     7 * Version: 1.0.2
    88 * Author URI: http://wordpress.com
    99 * License: GPL2+
     
    113113
    114114        wp_enqueue_style( 'net-neutrality', plugins_url( 'net-neutrality.css', __FILE__ ), array(), '20140904' );
    115         wp_register_script( 'net-neutrality-js', plugins_url( 'net-neutrality.js', __FILE__ ), array( 'jquery' ), '20140904' );
     115        wp_register_script( 'net-neutrality-js', plugins_url( 'net-neutrality.js', __FILE__ ), array( 'jquery' ), '20170712-2' );
    116116        wp_localize_script( 'net-neutrality-js', 'netNeutrality', array(
    117117            'strings' => array(
  • net-neutrality/trunk/readme.txt

    r1695231 r1695358  
    22Contributors: automattic, pesieminski, Joen, ebinnion, michaelarestad
    33Tags: net neutrality
    4 Stable tag: 1.0.1
     4Stable tag: 1.0.2
    55Requires at least: 4.6
    66Tested up to: 4.8
     
    1414== Changelog ==
    1515
     16= 1.0.2
     17- Fix an issue with undefined event in latest Firefox
     18- Improve compatibility with darker themes by fully removing overlay divs
     19
    1620= 1.0.1 =
    1721
Note: See TracChangeset for help on using the changeset viewer.