Skip to content

Commit 57ee272

Browse files
authored
Fixes weserialize (#102)
* Fixs weserialize * Fixes weserialize
1 parent 1750ad1 commit 57ee272

File tree

8 files changed

+50
-41
lines changed

8 files changed

+50
-41
lines changed

assets/js/form-builder-components.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
/* assets/js/utils/jquery-siaf-start.js */
4+
45
;(function ($) {
56
'use strict';
67

@@ -540,7 +541,6 @@
540541
this.$parent.$off('deleteNotification');
541542
},
542543

543-
544544
methods: {
545545
setupEditor: function setupEditor() {
546546
var vm = this;

assets/js/spa-app.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
'use strict';
22

3-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
3+
var _typeof2 = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
4+
5+
var _typeof = typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol" ? function (obj) {
6+
return typeof obj === "undefined" ? "undefined" : _typeof2(obj);
7+
} : function (obj) {
8+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof2(obj);
9+
};
410

511
/*!
612
weForms - v1.6.7
@@ -35,7 +41,6 @@ Generated: 2021-06-08 (1623168583312)
3541
this.fetchData();
3642
},
3743

38-
3944
computed: {
4045
columnLength: function columnLength() {
4146
return Object.keys(this.columns).length;

assets/js/spa-app.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/spa-mixins.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
/* ./assets/spa/mixins/bulk-action.js */
4+
45
weForms.mixins.BulkAction = {
56
data: function data() {
67
return {
@@ -125,10 +126,9 @@ weForms.mixins.Loading = {
125126
NProgress.done();
126127
}
127128
}
128-
}
129129

130-
/* ./assets/spa/mixins/paginate.js */
131-
};weForms.mixins.Paginate = {
130+
/* ./assets/spa/mixins/paginate.js */
131+
} };weForms.mixins.Paginate = {
132132
data: function data() {
133133
return {
134134
totalItems: 0,
Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
$.fn.extend({
2-
/**
3-
* Custom jQuery serialize wrapper.
4-
*
5-
* When WordPress 5.6 increased the jQuery version to 3.5.1, the serialize function changed. Instead of
6-
* sending spaces as "+", they are sent as "%20". This wrapper is for backwards compatibility.
7-
*
8-
* @todo This function is duplicated in both the frontend and backend. Need to have the code live in
9-
* just one location.
10-
*
11-
* @since 1.6.7
12-
*/
13-
weSerialize: function() {
14-
return $( this ).serialize().replaceAll( '%20', '+' );
15-
},
16-
});
1+
;(function($) {
2+
$.fn.extend({
3+
/**
4+
* Custom jQuery serialize wrapper.
5+
*
6+
* When WordPress 5.6 increased the jQuery version to 3.5.1, the serialize function changed. Instead of
7+
* sending spaces as "+", they are sent as "%20". This wrapper is for backwards compatibility.
8+
*
9+
* @todo This function is duplicated in both the frontend and backend. Need to have the code live in
10+
* just one location.
11+
*
12+
* @since 1.6.7
13+
*/
14+
weSerialize: function() {
15+
return $( this ).serialize().replaceAll( '%20', '+' );
16+
},
17+
});
18+
})(jQuery);

assets/js/vendor.js

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22215,22 +22215,24 @@ module.exports = E;
2221522215
}(jQuery);
2221622216

2221722217
/* assets/js/utils/jquery-extensions.js */
22218-
$.fn.extend({
22219-
/**
22220-
* Custom jQuery serialize wrapper.
22221-
*
22222-
* When WordPress 5.6 increased the jQuery version to 3.5.1, the serialize function changed. Instead of
22223-
* sending spaces as "+", they are sent as "%20". This wrapper is for backwards compatibility.
22224-
*
22225-
* @todo This function is duplicated in both the frontend and backend. Need to have the code live in
22226-
* just one location.
22227-
*
22228-
* @since 1.6.7
22229-
*/
22230-
weSerialize: function() {
22231-
return $( this ).serialize().replaceAll( '%20', '+' );
22232-
},
22233-
});
22218+
;(function($) {
22219+
$.fn.extend({
22220+
/**
22221+
* Custom jQuery serialize wrapper.
22222+
*
22223+
* When WordPress 5.6 increased the jQuery version to 3.5.1, the serialize function changed. Instead of
22224+
* sending spaces as "+", they are sent as "%20". This wrapper is for backwards compatibility.
22225+
*
22226+
* @todo This function is duplicated in both the frontend and backend. Need to have the code live in
22227+
* just one location.
22228+
*
22229+
* @since 1.6.7
22230+
*/
22231+
weSerialize: function() {
22232+
return $( this ).serialize().replaceAll( '%20', '+' );
22233+
},
22234+
});
22235+
})(jQuery);
2223422236
/* assets/js/vendor/tinymce/plugins/code/plugin.min.js */
2223522237
tinymce.PluginManager.add("code",function(a){function b(){var b=a.windowManager.open({title:"Source code",body:{type:"textbox",name:"code",multiline:!0,minWidth:a.getParam("code_dialog_width",600),minHeight:a.getParam("code_dialog_height",Math.min(tinymce.DOM.getViewPort().h-200,500)),spellcheck:!1,style:"direction: ltr; text-align: left"},onSubmit:function(b){a.focus(),a.undoManager.transact(function(){a.setContent(b.data.code)}),a.selection.setCursorLocation(),a.nodeChanged()}});b.find("#code").value(a.getContent({source_view:!0}))}a.addCommand("mceCodeEditor",b),a.addButton("code",{icon:"code",tooltip:"Source code",onclick:b}),a.addMenuItem("code",{icon:"code",text:"Source code",context:"tools",onclick:b})});
2223622238
/* assets/js/vendor/tinymce/plugins/hr/plugin.min.js */

assets/js/vendor.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

languages/weforms.pot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ msgid ""
44
msgstr ""
55
"Project-Id-Version: weForms 1.6.7\n"
66
"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7-
"POT-Creation-Date: 2021-06-08 17:44:41+00:00\n"
7+
"POT-Creation-Date: 2021-06-10 14:46:05+00:00\n"
88
"MIME-Version: 1.0\n"
99
"Content-Type: text/plain; charset=utf-8\n"
1010
"Content-Transfer-Encoding: 8bit\n"

0 commit comments

Comments
 (0)