Version Description
- Fixed: Unexpected behaviour on pressing "Enter" key on back end
Download this release
Release Info
Developer | webdorado |
Plugin | Contact Form by WD – responsive drag & drop contact form builder tool |
Version | 1.8.33 |
Comparing to | |
See all releases |
Code changes from version 1.8.32 to 1.8.33
- contact-form-maker.php +2 -2
- js/form_maker_admin.js +280 -272
- readme.txt +4 -2
contact-form-maker.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Contact Form Maker
|
4 |
* Plugin URI: http://web-dorado.com/products/form-maker-wordpress.html
|
5 |
* Description: WordPress Contact Form Maker is a simple contact form builder, which allows the user with almost no knowledge of programming to create and edit different type of contact forms.
|
6 |
-
* Version: 1.8.
|
7 |
* Author: WebDorado
|
8 |
* Author URI: http://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -248,7 +248,7 @@ function register_fmcemailverification_cpt(){
|
|
248 |
// Activate plugin.
|
249 |
function form_maker_activate_cfm() {
|
250 |
$version = get_option("wd_form_maker_version");
|
251 |
-
$new_version = '1.8.
|
252 |
global $wpdb;
|
253 |
if (!$version) {
|
254 |
add_option("wd_form_maker_version", $new_version, '', 'no');
|
3 |
* Plugin Name: Contact Form Maker
|
4 |
* Plugin URI: http://web-dorado.com/products/form-maker-wordpress.html
|
5 |
* Description: WordPress Contact Form Maker is a simple contact form builder, which allows the user with almost no knowledge of programming to create and edit different type of contact forms.
|
6 |
+
* Version: 1.8.33
|
7 |
* Author: WebDorado
|
8 |
* Author URI: http://web-dorado.com/
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
248 |
// Activate plugin.
|
249 |
function form_maker_activate_cfm() {
|
250 |
$version = get_option("wd_form_maker_version");
|
251 |
+
$new_version = '1.8.33';
|
252 |
global $wpdb;
|
253 |
if (!$version) {
|
254 |
add_option("wd_form_maker_version", $new_version, '', 'no');
|
js/form_maker_admin.js
CHANGED
@@ -1,272 +1,280 @@
|
|
1 |
-
function fm_select_value(obj) {
|
2 |
-
obj.focus();
|
3 |
-
obj.select();
|
4 |
-
}
|
5 |
-
|
6 |
-
function fm_doNothing(event) {
|
7 |
-
var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
|
8 |
-
if (keyCode == 13) {
|
9 |
-
if (event.preventDefault) {
|
10 |
-
event.preventDefault();
|
11 |
-
}
|
12 |
-
else {
|
13 |
-
event.returnValue = false;
|
14 |
-
}
|
15 |
-
}
|
16 |
-
}
|
17 |
-
|
18 |
-
function fm_ajax_save(form_id) {
|
19 |
-
var search_value = jQuery("#search_value").val();
|
20 |
-
var current_id = jQuery("#current_id").val();
|
21 |
-
var page_number = jQuery("#page_number").val();
|
22 |
-
var search_or_not = jQuery("#search_or_not").val();
|
23 |
-
var ids_string = jQuery("#ids_string").val();
|
24 |
-
var image_order_by = jQuery("#image_order_by").val();
|
25 |
-
var asc_or_desc = jQuery("#asc_or_desc").val();
|
26 |
-
var ajax_task = jQuery("#ajax_task").val();
|
27 |
-
var image_current_id = jQuery("#image_current_id").val();
|
28 |
-
ids_array = ids_string.split(",");
|
29 |
-
|
30 |
-
var post_data = {};
|
31 |
-
post_data["search_value"] = search_value;
|
32 |
-
post_data["current_id"] = current_id;
|
33 |
-
post_data["page_number"] = page_number;
|
34 |
-
post_data["image_order_by"] = image_order_by;
|
35 |
-
post_data["asc_or_desc"] = asc_or_desc;
|
36 |
-
post_data["ids_string"] = ids_string;
|
37 |
-
post_data["task"] = "ajax_search";
|
38 |
-
post_data["ajax_task"] = ajax_task;
|
39 |
-
post_data["image_current_id"] = image_current_id;
|
40 |
-
|
41 |
-
jQuery.post(
|
42 |
-
jQuery('#' + form_id).action,
|
43 |
-
post_data,
|
44 |
-
|
45 |
-
function (data) {
|
46 |
-
var str = jQuery(data).find('#images_table').html();
|
47 |
-
jQuery('#images_table').html(str);
|
48 |
-
var str = jQuery(data).find('#tablenav-pages').html();
|
49 |
-
jQuery('#tablenav-pages').html(str);
|
50 |
-
jQuery("#show_hide_weights").val("Hide order column");
|
51 |
-
fm_show_hide_weights();
|
52 |
-
fm_run_checkbox();
|
53 |
-
}
|
54 |
-
).success(function (jqXHR, textStatus, errorThrown) {
|
55 |
-
});
|
56 |
-
return false;
|
57 |
-
}
|
58 |
-
|
59 |
-
function fm_run_checkbox() {
|
60 |
-
jQuery("tbody").children().children(".check-column").find(":checkbox").click(function (l) {
|
61 |
-
if ("undefined" == l.shiftKey) {
|
62 |
-
return true
|
63 |
-
}
|
64 |
-
if (l.shiftKey) {
|
65 |
-
if (!i) {
|
66 |
-
return true
|
67 |
-
}
|
68 |
-
d = jQuery(i).closest("form").find(":checkbox");
|
69 |
-
f = d.index(i);
|
70 |
-
j = d.index(this);
|
71 |
-
h = jQuery(this).prop("checked");
|
72 |
-
if (0 < f && 0 < j && f != j) {
|
73 |
-
d.slice(f, j).prop("checked", function () {
|
74 |
-
if (jQuery(this).closest("tr").is(":visible")) {
|
75 |
-
return h
|
76 |
-
}
|
77 |
-
return false
|
78 |
-
})
|
79 |
-
}
|
80 |
-
}
|
81 |
-
i = this;
|
82 |
-
var k = jQuery(this).closest("tbody").find(":checkbox").filter(":visible").not(":checked");
|
83 |
-
jQuery(this).closest("table").children("thead, tfoot").find(":checkbox").prop("checked", function () {
|
84 |
-
return(0 == k.length)
|
85 |
-
});
|
86 |
-
return true
|
87 |
-
});
|
88 |
-
jQuery("thead, tfoot").find(".check-column :checkbox").click(function (m) {
|
89 |
-
var n = jQuery(this).prop("checked"), l = "undefined" == typeof toggleWithKeyboard ? false : toggleWithKeyboard, k = m.shiftKey || l;
|
90 |
-
jQuery(this).closest("table").children("tbody").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked", function () {
|
91 |
-
if (jQuery(this).is(":hidden")) {
|
92 |
-
return false
|
93 |
-
}
|
94 |
-
if (k) {
|
95 |
-
return jQuery(this).prop("checked")
|
96 |
-
} else {
|
97 |
-
if (n) {
|
98 |
-
return true
|
99 |
-
}
|
100 |
-
}
|
101 |
-
return false
|
102 |
-
});
|
103 |
-
jQuery(this).closest("table").children("thead, tfoot").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked", function () {
|
104 |
-
if (k) {
|
105 |
-
return false
|
106 |
-
} else {
|
107 |
-
if (n) {
|
108 |
-
return true
|
109 |
-
}
|
110 |
-
}
|
111 |
-
return false
|
112 |
-
})
|
113 |
-
});
|
114 |
-
}
|
115 |
-
|
116 |
-
// Set value by id.
|
117 |
-
function fm_set_input_value(input_id, input_value) {
|
118 |
-
if (document.getElementById(input_id)) {
|
119 |
-
document.getElementById(input_id).value = input_value;
|
120 |
-
}
|
121 |
-
}
|
122 |
-
|
123 |
-
// Submit form by id.
|
124 |
-
function fm_form_submit(event, form_id, task, id) {
|
125 |
-
if (document.getElementById(form_id)) {
|
126 |
-
document.getElementById(form_id).submit();
|
127 |
-
}
|
128 |
-
if (event.preventDefault) {
|
129 |
-
event.preventDefault();
|
130 |
-
}
|
131 |
-
else {
|
132 |
-
event.returnValue = false;
|
133 |
-
}
|
134 |
-
}
|
135 |
-
|
136 |
-
// Check if required field is empty.
|
137 |
-
function fm_check_required(id, name) {
|
138 |
-
if (jQuery('#' + id).val() == '') {
|
139 |
-
alert(name + '* field is required.');
|
140 |
-
jQuery('#' + id).attr('style', 'border-color: #FF0000; border-style: solid; border-width: 1px;');
|
141 |
-
jQuery('#' + id).focus();
|
142 |
-
jQuery('html, body').animate({
|
143 |
-
scrollTop:jQuery('#' + id).offset().top - 200
|
144 |
-
}, 500);
|
145 |
-
return true;
|
146 |
-
}
|
147 |
-
else {
|
148 |
-
return false;
|
149 |
-
}
|
150 |
-
}
|
151 |
-
|
152 |
-
// Show/hide order column and drag and drop column.
|
153 |
-
function fm_show_hide_weights() {
|
154 |
-
if (jQuery("#show_hide_weights").val() == 'Show order column') {
|
155 |
-
jQuery(".connectedSortable").css("cursor", "default");
|
156 |
-
jQuery("#tbody_arr").find(".handle").hide(0);
|
157 |
-
jQuery("#th_order").show(0);
|
158 |
-
jQuery("#tbody_arr").find(".fm_order").show(0);
|
159 |
-
jQuery("#show_hide_weights").val("Hide order column");
|
160 |
-
if (jQuery("#tbody_arr").sortable()) {
|
161 |
-
jQuery("#tbody_arr").sortable("disable");
|
162 |
-
}
|
163 |
-
}
|
164 |
-
else {
|
165 |
-
jQuery(".connectedSortable").css("cursor", "move");
|
166 |
-
var page_number;
|
167 |
-
if (jQuery("#page_number") && jQuery("#page_number").val() != '' && jQuery("#page_number").val() != 1) {
|
168 |
-
page_number = (jQuery("#page_number").val() - 1) * 20 + 1;
|
169 |
-
}
|
170 |
-
else {
|
171 |
-
page_number = 1;
|
172 |
-
}
|
173 |
-
jQuery("#tbody_arr").sortable({
|
174 |
-
handle:".connectedSortable",
|
175 |
-
connectWith:".connectedSortable",
|
176 |
-
update:function (event, tr) {
|
177 |
-
jQuery("#draganddrop").attr("style", "");
|
178 |
-
jQuery("#draganddrop").html("<strong><p>Changes made in this table should be saved.</p></strong>");
|
179 |
-
var i = page_number;
|
180 |
-
jQuery('.fm_order').each(function (e) {
|
181 |
-
if (jQuery(this).find('input').val()) {
|
182 |
-
jQuery(this).find('input').val(i++);
|
183 |
-
}
|
184 |
-
});
|
185 |
-
}
|
186 |
-
});//.disableSelection();
|
187 |
-
jQuery("#tbody_arr").sortable("enable");
|
188 |
-
jQuery("#tbody_arr").find(".handle").show(0);
|
189 |
-
jQuery("#tbody_arr").find(".handle").attr('class', 'handle connectedSortable');
|
190 |
-
jQuery("#th_order").hide(0);
|
191 |
-
jQuery("#tbody_arr").find(".fm_order").hide(0);
|
192 |
-
jQuery("#show_hide_weights").val("Show order column");
|
193 |
-
}
|
194 |
-
}
|
195 |
-
|
196 |
-
function fm_popup(id) {
|
197 |
-
if (typeof id === 'undefined') {
|
198 |
-
var id = '';
|
199 |
-
}
|
200 |
-
var thickDims, tbWidth, tbHeight;
|
201 |
-
thickDims = function() {
|
202 |
-
var tbWindow = jQuery('#TB_window'), H = jQuery(window).height(), W = jQuery(window).width(), w, h;
|
203 |
-
w = (tbWidth && tbWidth < W - 90) ? tbWidth : W - 40;
|
204 |
-
h = (tbHeight && tbHeight < H - 60) ? tbHeight : H - 40;
|
205 |
-
if (tbWindow.size()) {
|
206 |
-
tbWindow.width(w).height(h);
|
207 |
-
jQuery('#TB_iframeContent').width(w).height(h - 27);
|
208 |
-
tbWindow.css({'margin-left': '-' + parseInt((w / 2),10) + 'px'});
|
209 |
-
if (typeof document.body.style.maxWidth != 'undefined') {
|
210 |
-
tbWindow.css({'top':(H-h)/2,'margin-top':'0'});
|
211 |
-
}
|
212 |
-
}
|
213 |
-
};
|
214 |
-
thickDims();
|
215 |
-
jQuery(window).resize(function() { thickDims() });
|
216 |
-
jQuery('a.thickbox-preview' + id).click( function() {
|
217 |
-
tb_click.call(this);
|
218 |
-
var alink = jQuery(this).parents('.available-theme').find('.activatelink'), link = '', href = jQuery(this).attr('href'), url, text;
|
219 |
-
if (tbWidth = href.match(/&width=[0-9]+/)) {
|
220 |
-
tbWidth = parseInt(tbWidth[0].replace(/[^0-9]+/g, ''), 10);
|
221 |
-
}
|
222 |
-
else {
|
223 |
-
tbWidth = jQuery(window).width() - 120;
|
224 |
-
}
|
225 |
-
|
226 |
-
if (tbHeight = href.match(/&height=[0-9]+/)) {
|
227 |
-
tbHeight = parseInt(tbHeight[0].replace(/[^0-9]+/g, ''), 10);
|
228 |
-
}
|
229 |
-
else {
|
230 |
-
tbHeight = jQuery(window).height() - 120;
|
231 |
-
}
|
232 |
-
if (alink.length) {
|
233 |
-
url = alink.attr('href') || '';
|
234 |
-
text = alink.attr('title') || '';
|
235 |
-
link = ' <a href="' + url + '" target="_top" class="tb-theme-preview-link">' + text + '</a>';
|
236 |
-
}
|
237 |
-
else {
|
238 |
-
text = jQuery(this).attr('title') || '';
|
239 |
-
link = ' <span class="tb-theme-preview-link">' + text + '</span>';
|
240 |
-
}
|
241 |
-
jQuery('#TB_title').css({'background-color':'#222','color':'#dfdfdf'});
|
242 |
-
jQuery('#TB_closeAjaxWindow').css({'float':'right'});
|
243 |
-
jQuery('#TB_ajaxWindowTitle').css({'float':'left'}).html(link);
|
244 |
-
jQuery('#TB_iframeContent').width('100%');
|
245 |
-
thickDims();
|
246 |
-
return false;
|
247 |
-
});
|
248 |
-
// Theme details
|
249 |
-
jQuery('.theme-detail').click(function () {
|
250 |
-
jQuery(this).siblings('.themedetaildiv').toggle();
|
251 |
-
return false;
|
252 |
-
});
|
253 |
-
}
|
254 |
-
|
255 |
-
function bwg_inputs() {
|
256 |
-
jQuery(".fm_int_input").keypress(function (event) {
|
257 |
-
var chCode1 = event.which || event.paramlist_keyCode;
|
258 |
-
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57) && (chCode1 != 46) && (chCode1 != 45)) {
|
259 |
-
return false;
|
260 |
-
}
|
261 |
-
return true;
|
262 |
-
});
|
263 |
-
}
|
264 |
-
|
265 |
-
|
266 |
-
function fm_check_isnum(e) {
|
267 |
-
var chCode1 = e.which || e.paramlist_keyCode;
|
268 |
-
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57) && (chCode1 != 46) && (chCode1 != 45)) {
|
269 |
-
return false;
|
270 |
-
}
|
271 |
-
return true;
|
272 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function fm_select_value(obj) {
|
2 |
+
obj.focus();
|
3 |
+
obj.select();
|
4 |
+
}
|
5 |
+
|
6 |
+
function fm_doNothing(event) {
|
7 |
+
var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
|
8 |
+
if (keyCode == 13) {
|
9 |
+
if (event.preventDefault) {
|
10 |
+
event.preventDefault();
|
11 |
+
}
|
12 |
+
else {
|
13 |
+
event.returnValue = false;
|
14 |
+
}
|
15 |
+
}
|
16 |
+
}
|
17 |
+
|
18 |
+
function fm_ajax_save(form_id) {
|
19 |
+
var search_value = jQuery("#search_value").val();
|
20 |
+
var current_id = jQuery("#current_id").val();
|
21 |
+
var page_number = jQuery("#page_number").val();
|
22 |
+
var search_or_not = jQuery("#search_or_not").val();
|
23 |
+
var ids_string = jQuery("#ids_string").val();
|
24 |
+
var image_order_by = jQuery("#image_order_by").val();
|
25 |
+
var asc_or_desc = jQuery("#asc_or_desc").val();
|
26 |
+
var ajax_task = jQuery("#ajax_task").val();
|
27 |
+
var image_current_id = jQuery("#image_current_id").val();
|
28 |
+
ids_array = ids_string.split(",");
|
29 |
+
|
30 |
+
var post_data = {};
|
31 |
+
post_data["search_value"] = search_value;
|
32 |
+
post_data["current_id"] = current_id;
|
33 |
+
post_data["page_number"] = page_number;
|
34 |
+
post_data["image_order_by"] = image_order_by;
|
35 |
+
post_data["asc_or_desc"] = asc_or_desc;
|
36 |
+
post_data["ids_string"] = ids_string;
|
37 |
+
post_data["task"] = "ajax_search";
|
38 |
+
post_data["ajax_task"] = ajax_task;
|
39 |
+
post_data["image_current_id"] = image_current_id;
|
40 |
+
|
41 |
+
jQuery.post(
|
42 |
+
jQuery('#' + form_id).action,
|
43 |
+
post_data,
|
44 |
+
|
45 |
+
function (data) {
|
46 |
+
var str = jQuery(data).find('#images_table').html();
|
47 |
+
jQuery('#images_table').html(str);
|
48 |
+
var str = jQuery(data).find('#tablenav-pages').html();
|
49 |
+
jQuery('#tablenav-pages').html(str);
|
50 |
+
jQuery("#show_hide_weights").val("Hide order column");
|
51 |
+
fm_show_hide_weights();
|
52 |
+
fm_run_checkbox();
|
53 |
+
}
|
54 |
+
).success(function (jqXHR, textStatus, errorThrown) {
|
55 |
+
});
|
56 |
+
return false;
|
57 |
+
}
|
58 |
+
|
59 |
+
function fm_run_checkbox() {
|
60 |
+
jQuery("tbody").children().children(".check-column").find(":checkbox").click(function (l) {
|
61 |
+
if ("undefined" == l.shiftKey) {
|
62 |
+
return true
|
63 |
+
}
|
64 |
+
if (l.shiftKey) {
|
65 |
+
if (!i) {
|
66 |
+
return true
|
67 |
+
}
|
68 |
+
d = jQuery(i).closest("form").find(":checkbox");
|
69 |
+
f = d.index(i);
|
70 |
+
j = d.index(this);
|
71 |
+
h = jQuery(this).prop("checked");
|
72 |
+
if (0 < f && 0 < j && f != j) {
|
73 |
+
d.slice(f, j).prop("checked", function () {
|
74 |
+
if (jQuery(this).closest("tr").is(":visible")) {
|
75 |
+
return h
|
76 |
+
}
|
77 |
+
return false
|
78 |
+
})
|
79 |
+
}
|
80 |
+
}
|
81 |
+
i = this;
|
82 |
+
var k = jQuery(this).closest("tbody").find(":checkbox").filter(":visible").not(":checked");
|
83 |
+
jQuery(this).closest("table").children("thead, tfoot").find(":checkbox").prop("checked", function () {
|
84 |
+
return(0 == k.length)
|
85 |
+
});
|
86 |
+
return true
|
87 |
+
});
|
88 |
+
jQuery("thead, tfoot").find(".check-column :checkbox").click(function (m) {
|
89 |
+
var n = jQuery(this).prop("checked"), l = "undefined" == typeof toggleWithKeyboard ? false : toggleWithKeyboard, k = m.shiftKey || l;
|
90 |
+
jQuery(this).closest("table").children("tbody").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked", function () {
|
91 |
+
if (jQuery(this).is(":hidden")) {
|
92 |
+
return false
|
93 |
+
}
|
94 |
+
if (k) {
|
95 |
+
return jQuery(this).prop("checked")
|
96 |
+
} else {
|
97 |
+
if (n) {
|
98 |
+
return true
|
99 |
+
}
|
100 |
+
}
|
101 |
+
return false
|
102 |
+
});
|
103 |
+
jQuery(this).closest("table").children("thead, tfoot").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked", function () {
|
104 |
+
if (k) {
|
105 |
+
return false
|
106 |
+
} else {
|
107 |
+
if (n) {
|
108 |
+
return true
|
109 |
+
}
|
110 |
+
}
|
111 |
+
return false
|
112 |
+
})
|
113 |
+
});
|
114 |
+
}
|
115 |
+
|
116 |
+
// Set value by id.
|
117 |
+
function fm_set_input_value(input_id, input_value) {
|
118 |
+
if (document.getElementById(input_id)) {
|
119 |
+
document.getElementById(input_id).value = input_value;
|
120 |
+
}
|
121 |
+
}
|
122 |
+
|
123 |
+
// Submit form by id.
|
124 |
+
function fm_form_submit(event, form_id, task, id) {
|
125 |
+
if (document.getElementById(form_id)) {
|
126 |
+
document.getElementById(form_id).submit();
|
127 |
+
}
|
128 |
+
if (event.preventDefault) {
|
129 |
+
event.preventDefault();
|
130 |
+
}
|
131 |
+
else {
|
132 |
+
event.returnValue = false;
|
133 |
+
}
|
134 |
+
}
|
135 |
+
|
136 |
+
// Check if required field is empty.
|
137 |
+
function fm_check_required(id, name) {
|
138 |
+
if (jQuery('#' + id).val() == '') {
|
139 |
+
alert(name + '* field is required.');
|
140 |
+
jQuery('#' + id).attr('style', 'border-color: #FF0000; border-style: solid; border-width: 1px;');
|
141 |
+
jQuery('#' + id).focus();
|
142 |
+
jQuery('html, body').animate({
|
143 |
+
scrollTop:jQuery('#' + id).offset().top - 200
|
144 |
+
}, 500);
|
145 |
+
return true;
|
146 |
+
}
|
147 |
+
else {
|
148 |
+
return false;
|
149 |
+
}
|
150 |
+
}
|
151 |
+
|
152 |
+
// Show/hide order column and drag and drop column.
|
153 |
+
function fm_show_hide_weights() {
|
154 |
+
if (jQuery("#show_hide_weights").val() == 'Show order column') {
|
155 |
+
jQuery(".connectedSortable").css("cursor", "default");
|
156 |
+
jQuery("#tbody_arr").find(".handle").hide(0);
|
157 |
+
jQuery("#th_order").show(0);
|
158 |
+
jQuery("#tbody_arr").find(".fm_order").show(0);
|
159 |
+
jQuery("#show_hide_weights").val("Hide order column");
|
160 |
+
if (jQuery("#tbody_arr").sortable()) {
|
161 |
+
jQuery("#tbody_arr").sortable("disable");
|
162 |
+
}
|
163 |
+
}
|
164 |
+
else {
|
165 |
+
jQuery(".connectedSortable").css("cursor", "move");
|
166 |
+
var page_number;
|
167 |
+
if (jQuery("#page_number") && jQuery("#page_number").val() != '' && jQuery("#page_number").val() != 1) {
|
168 |
+
page_number = (jQuery("#page_number").val() - 1) * 20 + 1;
|
169 |
+
}
|
170 |
+
else {
|
171 |
+
page_number = 1;
|
172 |
+
}
|
173 |
+
jQuery("#tbody_arr").sortable({
|
174 |
+
handle:".connectedSortable",
|
175 |
+
connectWith:".connectedSortable",
|
176 |
+
update:function (event, tr) {
|
177 |
+
jQuery("#draganddrop").attr("style", "");
|
178 |
+
jQuery("#draganddrop").html("<strong><p>Changes made in this table should be saved.</p></strong>");
|
179 |
+
var i = page_number;
|
180 |
+
jQuery('.fm_order').each(function (e) {
|
181 |
+
if (jQuery(this).find('input').val()) {
|
182 |
+
jQuery(this).find('input').val(i++);
|
183 |
+
}
|
184 |
+
});
|
185 |
+
}
|
186 |
+
});//.disableSelection();
|
187 |
+
jQuery("#tbody_arr").sortable("enable");
|
188 |
+
jQuery("#tbody_arr").find(".handle").show(0);
|
189 |
+
jQuery("#tbody_arr").find(".handle").attr('class', 'handle connectedSortable');
|
190 |
+
jQuery("#th_order").hide(0);
|
191 |
+
jQuery("#tbody_arr").find(".fm_order").hide(0);
|
192 |
+
jQuery("#show_hide_weights").val("Show order column");
|
193 |
+
}
|
194 |
+
}
|
195 |
+
|
196 |
+
function fm_popup(id) {
|
197 |
+
if (typeof id === 'undefined') {
|
198 |
+
var id = '';
|
199 |
+
}
|
200 |
+
var thickDims, tbWidth, tbHeight;
|
201 |
+
thickDims = function() {
|
202 |
+
var tbWindow = jQuery('#TB_window'), H = jQuery(window).height(), W = jQuery(window).width(), w, h;
|
203 |
+
w = (tbWidth && tbWidth < W - 90) ? tbWidth : W - 40;
|
204 |
+
h = (tbHeight && tbHeight < H - 60) ? tbHeight : H - 40;
|
205 |
+
if (tbWindow.size()) {
|
206 |
+
tbWindow.width(w).height(h);
|
207 |
+
jQuery('#TB_iframeContent').width(w).height(h - 27);
|
208 |
+
tbWindow.css({'margin-left': '-' + parseInt((w / 2),10) + 'px'});
|
209 |
+
if (typeof document.body.style.maxWidth != 'undefined') {
|
210 |
+
tbWindow.css({'top':(H-h)/2,'margin-top':'0'});
|
211 |
+
}
|
212 |
+
}
|
213 |
+
};
|
214 |
+
thickDims();
|
215 |
+
jQuery(window).resize(function() { thickDims() });
|
216 |
+
jQuery('a.thickbox-preview' + id).click( function() {
|
217 |
+
tb_click.call(this);
|
218 |
+
var alink = jQuery(this).parents('.available-theme').find('.activatelink'), link = '', href = jQuery(this).attr('href'), url, text;
|
219 |
+
if (tbWidth = href.match(/&width=[0-9]+/)) {
|
220 |
+
tbWidth = parseInt(tbWidth[0].replace(/[^0-9]+/g, ''), 10);
|
221 |
+
}
|
222 |
+
else {
|
223 |
+
tbWidth = jQuery(window).width() - 120;
|
224 |
+
}
|
225 |
+
|
226 |
+
if (tbHeight = href.match(/&height=[0-9]+/)) {
|
227 |
+
tbHeight = parseInt(tbHeight[0].replace(/[^0-9]+/g, ''), 10);
|
228 |
+
}
|
229 |
+
else {
|
230 |
+
tbHeight = jQuery(window).height() - 120;
|
231 |
+
}
|
232 |
+
if (alink.length) {
|
233 |
+
url = alink.attr('href') || '';
|
234 |
+
text = alink.attr('title') || '';
|
235 |
+
link = ' <a href="' + url + '" target="_top" class="tb-theme-preview-link">' + text + '</a>';
|
236 |
+
}
|
237 |
+
else {
|
238 |
+
text = jQuery(this).attr('title') || '';
|
239 |
+
link = ' <span class="tb-theme-preview-link">' + text + '</span>';
|
240 |
+
}
|
241 |
+
jQuery('#TB_title').css({'background-color':'#222','color':'#dfdfdf'});
|
242 |
+
jQuery('#TB_closeAjaxWindow').css({'float':'right'});
|
243 |
+
jQuery('#TB_ajaxWindowTitle').css({'float':'left'}).html(link);
|
244 |
+
jQuery('#TB_iframeContent').width('100%');
|
245 |
+
thickDims();
|
246 |
+
return false;
|
247 |
+
});
|
248 |
+
// Theme details
|
249 |
+
jQuery('.theme-detail').click(function () {
|
250 |
+
jQuery(this).siblings('.themedetaildiv').toggle();
|
251 |
+
return false;
|
252 |
+
});
|
253 |
+
}
|
254 |
+
|
255 |
+
function bwg_inputs() {
|
256 |
+
jQuery(".fm_int_input").keypress(function (event) {
|
257 |
+
var chCode1 = event.which || event.paramlist_keyCode;
|
258 |
+
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57) && (chCode1 != 46) && (chCode1 != 45)) {
|
259 |
+
return false;
|
260 |
+
}
|
261 |
+
return true;
|
262 |
+
});
|
263 |
+
}
|
264 |
+
|
265 |
+
|
266 |
+
function fm_check_isnum(e) {
|
267 |
+
var chCode1 = e.which || e.paramlist_keyCode;
|
268 |
+
if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57) && (chCode1 != 46) && (chCode1 != 45)) {
|
269 |
+
return false;
|
270 |
+
}
|
271 |
+
return true;
|
272 |
+
}
|
273 |
+
|
274 |
+
function stopRKey(evt) {
|
275 |
+
var evt = (evt) ? evt : ((event) ? event : null);
|
276 |
+
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
|
277 |
+
if ((evt.keyCode == 13) && (node.type=="text")) {return false;}
|
278 |
+
}
|
279 |
+
|
280 |
+
document.onkeypress = stopRKey;
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Contact Form ===
|
2 |
Contributors: webdorado
|
3 |
Donate link: http://web-dorado.com/products/wordpress-contact-form-maker-plugin.html
|
4 |
-
Tags:
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.5
|
7 |
-
Stable tag: 1.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -145,6 +145,8 @@ If you want to update the plugin while preserving your existing contact forms, y
|
|
145 |
8. Contact Form Maker - Select Columns
|
146 |
|
147 |
== Changelog ==
|
|
|
|
|
148 |
= 1.8.32 =
|
149 |
* Fixed: JS error on incorrect Google Maps API key
|
150 |
* Added: Alert about incorrect Google Maps API key
|
1 |
=== Contact Form ===
|
2 |
Contributors: webdorado
|
3 |
Donate link: http://web-dorado.com/products/wordpress-contact-form-maker-plugin.html
|
4 |
+
Tags: captcha, contact, contact form, contact forms, custom form, email, feedback, form, form builder, form manager, forms, survey
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.5
|
7 |
+
Stable tag: 1.8.33
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
145 |
8. Contact Form Maker - Select Columns
|
146 |
|
147 |
== Changelog ==
|
148 |
+
= 1.8.33 =
|
149 |
+
* Fixed: Unexpected behaviour on pressing "Enter" key on back end
|
150 |
= 1.8.32 =
|
151 |
* Fixed: JS error on incorrect Google Maps API key
|
152 |
* Added: Alert about incorrect Google Maps API key
|