Skip to content

Commit 47bd486

Browse files
committed
replace es6 script in lfm.js
1 parent ce305e5 commit 47bd486

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

public/js/lfm.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
type = 'Files';
99
}
1010

11-
let input_id = this.data('input');
12-
let preview_id = this.data('preview');
11+
var input_id = this.data('input');
12+
var preview_id = this.data('preview');
1313

1414
this.on('click', function(e) {
1515
localStorage.setItem('target_input', input_id);
@@ -24,10 +24,10 @@
2424

2525
function SetUrl(url){
2626
//set the value of the desired input to image url
27-
let target_input = $('#' + localStorage.getItem('target_input'));
27+
var target_input = $('#' + localStorage.getItem('target_input'));
2828
target_input.val(url);
2929

3030
//set or change the preview image src
31-
let target_preview = $('#' + localStorage.getItem('target_preview'));
31+
var target_preview = $('#' + localStorage.getItem('target_preview'));
3232
target_preview.attr('src',url);
3333
}

0 commit comments

Comments
 (0)