PluginProbe
SpiceBox / 0.2.7
SpiceBox v0.2.7
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.2.7, at inc/js/custom-js.js

26 lines 623 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 reasontext = '';
7 if(resaon=="I want to try a new design, I don't like Spicepress style"){
8 reasontext = $('#reason_found_a_better_plugin').val();
9 }else if(resaon == 'Other'){
10 reasontext = $('#reason_other').val();
11 }
12 var dataString = 'Resason='+resaon+'&TextReason='+reasontext;
13 $.ajax({
14 type:'POST',
15 data:dataString,
16 url:ajaxurl,
17 success:function(data) {
18 location.reload();
19
20 }
21 });
22
23 });
24 });
25 }(jQuery));
26