PluginProbe
Comments Extra Fields For Post,Pages and CPT / 2.3
Comments Extra Fields For Post,Pages and CPT v2.3
trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 2.2 2.3 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 5.0 5.1 5.2
wp-comment-fields / js / script.js

script.js in Comments Extra Fields For Post,Pages and CPT 2.3, at js/script.js

48 lines 749 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*
2 * NOTE: all actions are prefixed by plugin shortnam_action_name
3 */
4
5 jQuery(function(){
6
7
8 });
9
10
11 function doPost(){
12
13 //alert(nm_list_vars.ajaxurl);
14 /*
15 * TODO: change shortname
16 */
17 var data = {action: 'nm_wpcomments_save_file', user_name: 'admin'};
18
19 jQuery.post(nm_wpcomments_vars.ajaxurl, data, function(resp){
20
21 console.log(resp);
22 });
23 }
24
25
26 function get_option(key){
27
28 /*
29 * TODO: change plugin shortname
30 */
31 var keyprefix = 'nm_wpcomments';
32
33 key = keyprefix + key;
34
35 var req_option = '';
36
37 jQuery.each(googlerabwah_vars.settings, function(k, option){
38
39 //console.log(k);
40
41 if (k == key)
42 req_option = option;
43 });
44
45 //console.log(req_option);
46 return req_option;
47
48 }