Skip to content

Commit 5c86283

Browse files
authored
Merge pull request #139 from tsctao/patch-1
Multiple init standalone button
2 parents 6cf1ff3 + 1d66ec3 commit 5c86283

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

public/js/lfm.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,9 @@
99
type = 'Files';
1010
}
1111

12-
var input_id = this.data('input');
13-
var preview_id = this.data('preview');
14-
1512
this.on('click', function(e) {
16-
localStorage.setItem('target_input', input_id);
17-
localStorage.setItem('target_preview', preview_id);
13+
localStorage.setItem('target_input', $(this).data('input'));
14+
localStorage.setItem('target_preview', $(this).data('preview'));
1815
window.open('/laravel-filemanager?type=' + type, 'FileManager', 'width=900,height=600');
1916
return false;
2017
});

0 commit comments

Comments
 (0)