Plugin Directory

Changeset 999351


Ignore:
Timestamp:
09/30/2014 06:03:34 PM (11 years ago)
Author:
tjsantilo
Message:

Re-added code in public.js to tell users if they've already voted;

Removed misplaced # from jquery for textarea.

Location:
because/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • because/trunk/README.txt

    r999337 r999351  
    77Tested up to: 4.0
    88<<<<<<< .mine
    9 Stable tag: 1.3.4
     9Stable tag: 1.3.5
    1010=======
    11 Stable tag: 1.3.4
     11Stable tag: 1.3.5
    1212>>>>>>> .r969865
    1313License: GPLv2 or later
  • because/trunk/public/assets/js/public.js

    r999334 r999351  
    5252
    5353               
    54        
     54        if(data === "You already voted"){
     55$('#social_polling_see_results_wrapper').html('You Already Voted');
     56}
     57else{
     58$('#social_polling_see_results_wrapper').html('');
     59}
    5560
    5661       
     
    148153
    149154
    150 var $answer1_html = '<h1>'+answer_1_percent+'%</h1>Votes';
    151 
    152 var $answer2_html = '<h1>'+answer_2_percent+'%</h1>Votes'; 
     155var $answer1_html = '<h1>'+answer_1_percent+'%</h1>';
     156
     157var $answer2_html = '<h1>'+answer_2_percent+'%</h1>';   
    153158
    154159
     
    234239
    235240   
    236  $("#textarea")
     241 $("textarea")
    237242  .focus(function() {
    238243        if (this.value === this.defaultValue) {
  • because/trunk/social-polling.php

    r999337 r999351  
    3434
    3535<<<<<<< .mine
    36  * Version:           1.3.4
     36 * Version:           1.3.5
    3737=======
    38  * Version:           1.3.4
     38 * Version:           1.3.5
    3939>>>>>>> .r969865
    4040
Note: See TracChangeset for help on using the changeset viewer.