Plugin Directory

Changeset 1024135


Ignore:
Timestamp:
11/11/2014 09:04:25 PM (11 years ago)
Author:
tjsantilo
Message:

doesn't allow default text to be submitted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • because/trunk/public/assets/js/public.js

    r1007332 r1024135  
    257257
    258258    // Place your public-facing JavaScript here
     259       
     260        //revert textarea to blank value if default value
     261        $(document).on('click','#submit',function(){
     262            if($('#commentform textarea#comment').val()=="Thanks for your vote! Want to expand on that opinion? We want to know what you think!"){
     263                $('#commentform textarea#comment').val('');
     264            }
     265
     266        })
    259267
    260268        $(document).on('click', '.comment_vote_action', function(){
Note: See TracChangeset for help on using the changeset viewer.