PluginProbe
SpiceBox / 0.3.3
SpiceBox v0.3.3
trunk 0.2.2 0.2.3 0.2.4 0.2.5 0.2.6 0.2.7 0.2.8 0.2.9 0.3 0.3.1 0.3.2 0.3.3 0.3.4 0.3.5 0.3.6 0.3.7 0.3.8 0.3.9.1 0.3.9.2 0.4 0.5 0.6 0.7 1.0 All 76 releases
spicebox / inc / js / custom-js.js

custom-js.js in SpiceBox 0.3.3, at inc/js/custom-js.js

31 lines 896 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (function($) {
2 $(document).ready(function(){
3 $('#submit').click(function(e) {
4 var ajaxurl = $('#ajaxurl').val();
5 var resaon = $('input[name=reason_key]:checked').val();
6 var SiteAdminEmail = $('#admin_mail').val();
7 var SiteUrl = $('#plugin_site').val();
8 var reasontext = '';
9 if(resaon=="I want to try a new design, I don't like Spicepress style"){
10 reasontext = $('#reason_found_a_better_plugin').val();
11 }else if(resaon == 'Other'){
12 reasontext = $('#reason_other').val();
13 } else if(resaon == 'Is not working with a plugin that I need'){
14 reasontext = $('#reason_not_working_with_needed_plugin').val();
15 }
16 var dataString = 'Resason='+resaon+'&TextReason='+reasontext+'&SiteUrl='+SiteUrl+'&SiteAdminEmail='+SiteAdminEmail;
17
18 $.ajax({
19 type:'POST',
20 data:dataString,
21 url:ajaxurl,
22 success:function(data) {
23 location.reload();
24
25 }
26 });
27
28 });
29 });
30 }(jQuery));
31