PluginProbe
Datafeedr API / 1.4.3
Datafeedr API v1.4.3
1.4.3 1.4.2 1.0.125 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.2 1.0.20 1.0.21 1.0.22 1.0.23 1.0.24 1.0.25 1.0.26 1.0.27 1.0.28 1.0.29 1.0.3 1.0.30 1.0.31 1.0.32 All 182 releases
← All changes | js/searchform.js +11 -10 1.0.29 → 1.4.3 View file →
@@ -13,9 +13,10 @@
13 13 function searchFormAjax(command, params, fn) {
14 14 params = $.extend({}, params, {
15 15 action: 'search_form',
16 16 command: command,
17 - useSelected: $("#dfrapi_useSelected").val()
17 + useSelected: $("#dfrapi_useSelected").val(),
18 + dfrapi_security: (typeof dfrapiSearchForm !== "undefined") ? dfrapiSearchForm.nonce : ""
18 19 });
19 20 $.post(ajaxurl, params, fn);
20 21 }
21 22
@@ -68,13 +69,13 @@
68 69 animationspeed: 100
69 70 });
70 71 searchFormAjax(command, {value: input.val()}, function(response) {
71 72 popup.find(".reveal-modal-content").html(response);
72 - popup.find("a.button.reset_search").click(function() {
73 + popup.find("a.button.reset_search").on("click", function() {
73 74 $(this).parent().find("input").val("").change();
74 75 return false;
75 76 });
76 - popup.find("a.button.submit").click(function() {
77 + popup.find("a.button.submit").on("click", function() {
77 78 var value = [];
78 79 popup.find("input:checked").each(function() {
79 80 value.push($(this).val());
80 81 });
@@ -104,9 +105,9 @@
104 105 f.find(".names").html("");
105 106 return f;
106 107 }
107 108
108 - $("#dfrapi_search_form .filter .minus").click(function() {
109 + $("#dfrapi_search_form .filter .minus").on("click", function() {
109 110 if($(this).is(".disabled"))
110 111 return false;
111 112 var form = $(this).closest("form");
112 113 if(form.find(".filter:visible").length)
@@ -114,9 +115,9 @@
114 115 updateSearchForm(form);
115 116 return false;
116 117 });
117 118
118 - $("#dfrapi_search_form_filter").click(function() {
119 + $("#dfrapi_search_form_filter").on("click", function() {
119 120 var form = $(this).closest("form");
120 121 var hiddenFilters = form.find(".filter:hidden");
121 122 var last = form.find(".filter:last");
122 123 if(hiddenFilters.length) {
@@ -127,9 +128,9 @@
127 128 updateSearchForm(form);
128 129 return false;
129 130 });
130 131
131 - $("#dfrapi_search_form .filter .field select").change(function() {
132 + $("#dfrapi_search_form .filter .field select").on("change", function() {
132 133 var form = $(this).closest("form");
133 134 var fieldName = $(this).val();
134 135
135 136 var thisFilter = $(this).closest(".filter"), otherFilter;
@@ -148,21 +149,21 @@
148 149
149 150 updateSearchForm(form);
150 151 });
151 152
152 - $("#dfrapi_search_form .filter .operator select").change(function() {
153 + $("#dfrapi_search_form .filter .operator select").on("change", function() {
153 154 checkSelects($(this).closest("form"));
154 155 });
155 156
156 - $("#dfrapi_search_form").closest("form").submit(function() {
157 + $("#dfrapi_search_form").closest("form").on("submit", function() {
157 158 $(this).find("#dfrapi_search_form .filter:hidden").remove();
158 159 });
159 160
160 - $("#dfrapi_search_form .choose_network").click(function() {
161 + $("#dfrapi_search_form .choose_network").on("click", function() {
161 162 ajaxPopup(this, "choose_network");
162 163 });
163 164
164 - $("#dfrapi_search_form .choose_merchant").click(function() {
165 + $("#dfrapi_search_form .choose_merchant").on("click", function() {
165 166 ajaxPopup(this, "choose_merchant");
166 167 });
167 168
168 169 $(".dfrapi_search_help").on('click',function(e) {