Skip to content

Commit 8be6963

Browse files
committed
fix: support for JS compression
1 parent 367bd33 commit 8be6963

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Fields/AutoSuggestSelect.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function _formDisplaySelection(_field, val) {
9595
9696
/*append the DIV element as a child of the autocomplete container:*/
9797
_altInput.parentNode.appendChild(a);
98-
let _itemCount = Object.keys(arr).length
98+
let _itemCount = Object.keys(arr).length;
9999
100100
Object.keys(arr).forEach(key => {
101101
if (arr[key].substr(0, val.length).toUpperCase() == val.toUpperCase()) {
@@ -111,7 +111,7 @@ function _formDisplaySelection(_field, val) {
111111
formCloseAllSelectLists();
112112
113113
if (a.childNodes.length > 0) {
114-
_altInput.setAttribute('class', inp.getAttribute('class'))
114+
_altInput.setAttribute('class', inp.getAttribute('class'));
115115
let _formElementStyle = getComputedStyle(_altInput);
116116
let border = "border: " + _formElementStyle.border + "; ";
117117
let width = "width:"+ _altInput.offsetWidth + "px; ";
@@ -191,7 +191,7 @@ function removeSelectActive(x) {
191191
}
192192
193193
if (_list && _list.childNodes.length > 0) {
194-
_altInput.setAttribute('class', inp.getAttribute('class'))
194+
_altInput.setAttribute('class', inp.getAttribute('class'));
195195
let _formElementStyle = getComputedStyle(_altInput);
196196
let border = "border: " + _formElementStyle.border + "; ";
197197
let width = "width:"+ _altInput.offsetWidth + "px; ";

src/Fields/Quill2.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ public static function js($id, $options)
366366
console.log(error);
367367
quill.enable(true);
368368
});
369-
}
369+
};
370370
371371
window._formsjs_quill_image_process = function (dataUrl, type, imageData) {
372372
let _container = null;
@@ -392,7 +392,7 @@ public static function js($id, $options)
392392
if (! files || ! files.length) {
393393
console.log('No files selected');
394394
return;
395-
}
395+
};
396396
397397
let _FileFormData = new FormData();
398398
_FileFormData.append('image', files[0]);
@@ -424,7 +424,7 @@ public static function js($id, $options)
424424
_FileInput.click();
425425
}
426426
}
427-
}
427+
};
428428
429429
let _editor_toolbarOptions = {
430430
container: _config.container,

0 commit comments

Comments
 (0)