You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case you are developing javascript application and you want dynamically to trigger filemanager popup, you can create function like this. It doesn't rely on jQuery.
181
181
182
182
183
183
```javascript
184
-
var lfm = function(options, cb) {
185
-
186
-
var route_prefix = (options && options.prefix) ? options.prefix : '/laravel-filemanager';
184
+
var lfm = function(id, type, options) {
185
+
let button = document.getElementById(id);
186
+
187
+
button.addEventListener('click', function () {
188
+
var route_prefix = (options && options.prefix) ? options.prefix : '/laravel-filemanager';
189
+
var target_input = document.getElementById(button.getAttribute('data-input'));
190
+
var target_preview = document.getElementById(button.getAttribute('data-preview'));
0 commit comments