WordPress.org

Plugin Directory

Changeset 189491


Ignore:
Timestamp:
01/04/10 12:22:55 (8 years ago)
Author:
QueroMedia
Message:
 
Location:
wordpress-google-seo-positioner/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wordpress-google-seo-positioner/trunk/js/script.js

    r46918 r189491  
    1 function addNewCompetitorField(){ 
    2     if ( document.getElementById('competitor-list') ) { 
    3         var $field_holder = document.getElementById('competitor-list'); 
    4         var $template_field = $field_holder.getElementsByTagName('tr')[0].cloneNode(true); 
    5  
    6         //reset the values 
    7         for(var $i = 0; $i < $template_field.getElementsByTagName('input').length; $i++){ 
    8             $template_field.getElementsByTagName('input')[$i].value = ''; 
    9         } 
    10  
    11         $remove_link = document.createElement('a'); 
    12         $remove_link.setAttribute('href','Javascript:void(0);'); 
    13         $remove_link.appendChild(document.createTextNode('Remove This Field'));      
    14                  
    15         $remove_span = document.createElement('span'); 
    16         $remove_span.appendChild($remove_link); 
    17         $template_field.appendChild($remove_span); 
    18  
    19         var $new_field_link = document.getElementById('new_field_link'); 
    20         var $controls = document.getElementById('wizzard_controls'); 
    21          
    22         $field_holder.appendChild( $template_field ); 
    23         $field_holder.appendChild( $new_field_link ); 
    24          
    25         //add it after adding to the document to make sure the event works 
    26         $remove_link.onclick = function(){ this.parentNode.parentNode.parentNode.removeChild(this.parentNode.parentNode); }; 
    27     } 
    28 } 
    29 function addNewCompetitorField2() { 
    30     $("table#competitor-list tr:first") 
     1function addNewCompetitorField() { 
     2    jQuery("table#competitor-list tr:first") 
    313        .clone() 
    324        .appendTo("table#competitor-list tbody"); 
    335     
    34     $("table#competitor-list tr:last td input").val(''); 
     6    jQuery("table#competitor-list tr:last td input").val(''); 
    357     
    36     $('<span><a href="javascript:void(0);" class="remove-link"><img src="http://test.quero.lcl/KimPress/wp-content/plugins/positioner/images/remove.png" alt="Remove" align="absbottom" /></a></span>').insertAfter("table#competitor-list tr:last td input").click(); 
    37     //$("a").append("table#competitor-list tr:last td input"); 
     8    jQuery('<span><a href="javascript:void(0);" class="remove-link"><img src="http://test.quero.lcl/KimPress/wp-content/plugins/positioner/images/remove.png" alt="Remove" align="absbottom" /></a></span>').insertAfter("table#competitor-list tr:last td input").click(); 
     9    //jQuery("a").append("table#competitor-list tr:last td input"); 
    3810     
    39     $("table#competitor-list tr:last td span a").click(function() { 
    40         $("table#competitor-list tr:last").remove(); 
     11    jQuery("table#competitor-list tr:last td span a").click(function() { 
     12        jQuery("table#competitor-list tr:last").remove(); 
    4113    }); 
    42     /*$("table#competitor-list tr:last").click(function() { 
    43         $(this).remove(); 
     14    /*jQuery("table#competitor-list tr:last").click(function() { 
     15        jQuery(this).remove(); 
    4416    });*/    
    4517} 
  • wordpress-google-seo-positioner/trunk/position_yourself.php

    r189439 r189491  
    833833                        </table> 
    834834                        <script language="javascript" type="text/javascript"> 
    835                         $(document).ready(function() { 
    836                             $("#tracking-results").tablesorter( {sortList: [[0,1]]} );  
     835                        jQuery(document).ready(function() { 
     836                            jQuery("#tracking-results").tablesorter( {sortList: [[0,1]]} );  
    837837                        }); 
    838838                        </script> 
     
    897897        */ 
    898898        function add_admin_scripts() { 
    899             wp_enqueue_script("fat"); 
    900             //wp_enqueue_script('py_jquery', '/wp-content/plugins/'.plugin_basename( dirname( __FILE__ )) .'/js/jquery-1.2.3.js', false, '1.2.3'); 
    901             wp_enqueue_script('tablesorter', '/wp-content/plugins/'.plugin_basename( dirname( __FILE__ )) .'/js/jquery.tablesorter.min.js', array('jquery'), '2.0.3'); 
     899            wp_enqueue_script('jquery_tablesorter', '/wp-content/plugins/'.plugin_basename( dirname( __FILE__ )) .'/js/jquery.tablesorter.min.js', array('jquery'), '1.0'); 
    902900            wp_enqueue_script('py_scripts', '/wp-content/plugins/'.plugin_basename( dirname( __FILE__ )) .'/js/script.js', array('jquery') , '1.0'); 
    903901        } 
Note: See TracChangeset for help on using the changeset viewer.