Difference between revisions of "Widget:MonthlyDonate"

Line 1: Line 1:
 
<includeonly>
 
<includeonly>
<form id="dress_size" action="https://funtoo.chargebee.com/hosted_pages/plans/donate?subscription">  
+
<form id="subscription" action="https://funtoo.chargebee.com/hosted_pages/plans/donate?subscription">  
 
<div class="donate">
 
<div class="donate">
 
<h2>Funtoo Monthly Support</h2>
 
<h2>Funtoo Monthly Support</h2>
Line 19: Line 19:
 
</select>     
 
</select>     
 
</label>
 
</label>
<p><span class="size_error" style="display:none;">Please select donation amount</span></p>
+
<p><span class="size_error" style="display:none;">Please select donation amount.</span></p>
 
<p>&nbsp;</p><input type="image" src="/images/subscribe.png" class="displayed" value=""/>
 
<p>&nbsp;</p><input type="image" src="/images/subscribe.png" class="displayed" value=""/>
 
</div>
 
</div>
 
</form>
 
</form>
 +
<script type="text/javascript">$('#subscription').submit(function(){var select = $('#subscription select').val();if(select == "none"){$('.size_error').show();return false;}});$('#subscription select').change(function(){$('.size_error').hide();});</script>
 
</includeonly>
 
</includeonly>

Revision as of 19:19, September 23, 2013