Plugin Directory

Changeset 463283


Ignore:
Timestamp:
11/15/2011 09:18:23 PM (14 years ago)
Author:
rfrankel
Message:

Fixed error with target='_blank'

Location:
wp-super-heatmap/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-super-heatmap/trunk/js/wp_super_heatmap_click_js.js

    r456795 r463283  
    9797        if ( jQuery(event.target).closest('a').attr('href').length ) {
    9898            var url = jQuery(event.target).closest('a').attr('href');
    99             window.setTimeout(function(){document.location.href=url;}, 1000); // timeout and waiting until effect is complete
     99            if ( jQuery(event.target).closest('a').attr('target') == '_blank') {
     100                window.setTimeout(function()
     101                    { window.open(url, '_blank') },
     102                    window.name,
     103                    1000);
     104            } else {
     105                window.setTimeout(function(){document.location.href=url;}, 1000); // timeout and waiting until effect is complete */
     106            }           
    100107        }
    101108       
  • wp-super-heatmap/trunk/readme.txt

    r456796 r463283  
    55Requires at least: 3.0
    66Tested up to: 3.2.1
    7 Stable tag: 0.0.2
     7Stable tag: 0.1.0
    88
    99This plugin tracks user clicks and creates a heatmap for your website. All data is stored locally and no third-party service is used. Completely free!
     
    4343
    4444== Changelog ==
     45= 0.1.0 =
     46Added a fix for target="_blank" not working on links.
     47
     48= 0.0.2 =
     49* Fixed bug regarding nested link following.
    4550
    4651= 0.0.1 =
    4752* Aplha release.  Initial version of the plugin.
    4853
    49 = 0.0.2 =
    50 * Fixed bug regarding nested link following.
     54== Upgrade Notice ==
    5155
    52 == Upgrade Notice ==
    53 = 0.0.1 =
    54 * Aplha release, no upgrade information.
     56= 0.1.0 =
     57Fixed target='_blank' error not opening in a new tab/window.  Upgrade to 0.1.0 is highly recommended.
     58
    5559= 0.0.2 =
    5660* Fixed link bug.  You should upgrade immediately.
     61
     62= 0.0.1 =
     63* Alpha release, no upgrade information.
     64
  • wp-super-heatmap/trunk/wp_super_heatmap.php

    r456825 r463283  
    44Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
    55Description: This plugin enables making and viewing heat maps in the back-end of WordPress.
    6 Version: 0.0.2
     6Version: 0.1.0
    77Author: rfrankel
    88Author URI: http://URI_Of_The_Plugin_Author
Note: See TracChangeset for help on using the changeset viewer.