Plugin Directory

Changeset 124663


Ignore:
Timestamp:
06/11/2009 09:22:38 AM (17 years ago)
Author:
mptre
Message:

Made the JavaScripts work with WP 2.8.

Location:
emo-vote
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • emo-vote/tags/1.2.1/emo-vote-admin.js

    r120395 r124663  
    1111   
    1212    for(var i = 0; i < arr.length; i++) {
    13         str += arr[i].substr(11)+':'+jQuery('input[@name='+arr[i]+']').val();
     13        str += arr[i].substr(11)+':'+jQuery('input[name='+arr[i]+']').val();
    1414        if(i < arr.length - 1) { str += '#'; }
    1515    }
    16     jQuery('input[@id=emo_options_titles]').val(str);
     16    jQuery('input[id=emo_options_titles]').val(str);
    1717}
    1818jQuery('#emo_add').click(function() {
    1919    if(jQuery('li.emo_titles_field').length < 5) {
    2020        for(i = 0; i < 5; i++) {
    21             if(!jQuery('li[@id=emo_titles-'+i+']').length) {
     21            if(!jQuery('li[id=emo_titles-'+i+']').length) {
    2222                var k = i;
    2323                break;
     
    3434jQuery('.emo-delete').livequery('click',function() {
    3535    var id = jQuery(this).attr('id');
    36     jQuery('li[@id='+id+']').remove();
     36    jQuery('li[id='+id+']').remove();
    3737    return false;
    3838});
    39 jQuery('input[@id=emo_options_submit]').click(function() {
     39jQuery('input[id=emo_options_submit]').click(function() {
    4040    update();
    4141    return true;
  • emo-vote/tags/1.2.1/emo-vote-user.js

    r120395 r124663  
    105105                   
    106106                    if(option)
    107                         jQuery('.emo-vote input[@name=emo_vote-'+option+']').click();
     107                        jQuery('.emo-vote input[name=emo_vote-'+option+']').click();
    108108                });
    109109                return;
     
    118118
    119119jQuery(document).ready(function() {
    120     jQuery('.emo-vote input[@type=checkbox]').checkbox({
     120    jQuery('.emo-vote input[type=checkbox]').checkbox({
    121121        cls: 'jquery-checkbox',
    122122        empty: jQuery('input.emo_url').val()+'images/empty.png'
     
    127127        var option = jQuery(this).attr('class').substr(9),post = jQuery(this).parent().attr('id').substr(9);
    128128       
    129         jQuery('#emo-vote_'+post+' input[@type=checkbox]').attr('disabled',true);
     129        jQuery('#emo-vote_'+post+' input[type=checkbox]').attr('disabled',true);
    130130        jQuery(this).attr('checked',true);
    131131       
     
    139139                   
    140140                    for(; i < 5; i++) {
    141                         if(jQuery('#emo-vote_'+post+' input[@name=emo_vote-'+i+']').length > 0) {
     141                        if(jQuery('#emo-vote_'+post+' input[name=emo_vote-'+i+']').length > 0) {
    142142                            jQuery('#emo-vote_'+post+' span.emo_vote-'+i).html('('+j.response.numbers['vote_'+i]+')');
    143143                        }
  • emo-vote/tags/1.2.1/emo-vote.php

    r120399 r124663  
    55Donate link: http://emo.vote.nu/donate/
    66Description: Encourage your users by letting them express their feelings by "emoting" rather than voting.
    7 Version: 1.2
     7Version: 1.2.1
    88Author: Anton Lindqvist
    99Author URI: http://qvister.se
  • emo-vote/tags/1.2.1/readme.txt

    r120395 r124663  
    33Donate link: http://emo.vote.nu/donate/
    44Tags: emo, vote, plugin
    5 Requires at least: 2.7
    6 Tested up to: 2.7.1
    7 Stable tag: 1.2
     5Requires at least: 2.8
     6Tested up to: 2.8
     7Stable tag: 1.2.1
    88
    99Encourage your users by letting them express their feelings by "emoting" rather than voting.
  • emo-vote/trunk/emo-vote-admin.js

    r120395 r124663  
    1111   
    1212    for(var i = 0; i < arr.length; i++) {
    13         str += arr[i].substr(11)+':'+jQuery('input[@name='+arr[i]+']').val();
     13        str += arr[i].substr(11)+':'+jQuery('input[name='+arr[i]+']').val();
    1414        if(i < arr.length - 1) { str += '#'; }
    1515    }
    16     jQuery('input[@id=emo_options_titles]').val(str);
     16    jQuery('input[id=emo_options_titles]').val(str);
    1717}
    1818jQuery('#emo_add').click(function() {
    1919    if(jQuery('li.emo_titles_field').length < 5) {
    2020        for(i = 0; i < 5; i++) {
    21             if(!jQuery('li[@id=emo_titles-'+i+']').length) {
     21            if(!jQuery('li[id=emo_titles-'+i+']').length) {
    2222                var k = i;
    2323                break;
     
    3434jQuery('.emo-delete').livequery('click',function() {
    3535    var id = jQuery(this).attr('id');
    36     jQuery('li[@id='+id+']').remove();
     36    jQuery('li[id='+id+']').remove();
    3737    return false;
    3838});
    39 jQuery('input[@id=emo_options_submit]').click(function() {
     39jQuery('input[id=emo_options_submit]').click(function() {
    4040    update();
    4141    return true;
  • emo-vote/trunk/emo-vote-user.js

    r120395 r124663  
    105105                   
    106106                    if(option)
    107                         jQuery('.emo-vote input[@name=emo_vote-'+option+']').click();
     107                        jQuery('.emo-vote input[name=emo_vote-'+option+']').click();
    108108                });
    109109                return;
     
    118118
    119119jQuery(document).ready(function() {
    120     jQuery('.emo-vote input[@type=checkbox]').checkbox({
     120    jQuery('.emo-vote input[type=checkbox]').checkbox({
    121121        cls: 'jquery-checkbox',
    122122        empty: jQuery('input.emo_url').val()+'images/empty.png'
     
    127127        var option = jQuery(this).attr('class').substr(9),post = jQuery(this).parent().attr('id').substr(9);
    128128       
    129         jQuery('#emo-vote_'+post+' input[@type=checkbox]').attr('disabled',true);
     129        jQuery('#emo-vote_'+post+' input[type=checkbox]').attr('disabled',true);
    130130        jQuery(this).attr('checked',true);
    131131       
     
    139139                   
    140140                    for(; i < 5; i++) {
    141                         if(jQuery('#emo-vote_'+post+' input[@name=emo_vote-'+i+']').length > 0) {
     141                        if(jQuery('#emo-vote_'+post+' input[name=emo_vote-'+i+']').length > 0) {
    142142                            jQuery('#emo-vote_'+post+' span.emo_vote-'+i).html('('+j.response.numbers['vote_'+i]+')');
    143143                        }
  • emo-vote/trunk/emo-vote.php

    r120399 r124663  
    55Donate link: http://emo.vote.nu/donate/
    66Description: Encourage your users by letting them express their feelings by "emoting" rather than voting.
    7 Version: 1.2
     7Version: 1.2.1
    88Author: Anton Lindqvist
    99Author URI: http://qvister.se
  • emo-vote/trunk/readme.txt

    r120395 r124663  
    33Donate link: http://emo.vote.nu/donate/
    44Tags: emo, vote, plugin
    5 Requires at least: 2.7
    6 Tested up to: 2.7.1
    7 Stable tag: 1.2
     5Requires at least: 2.8
     6Tested up to: 2.8
     7Stable tag: 1.2.1
    88
    99Encourage your users by letting them express their feelings by "emoting" rather than voting.
Note: See TracChangeset for help on using the changeset viewer.