X7ROOT File Manager
Current Path:
/home/hamdjcne/public_html/wp-content/plugins/wp-file-manager/lib/js/ui
home
/
hamdjcne
/
public_html
/
wp-content
/
plugins
/
wp-file-manager
/
lib
/
js
/
ui
/
ðŸ“
..
📄
button.js
(4.12 KB)
📄
contextmenu.js
(21.45 KB)
📄
cwd.js
(87.65 KB)
📄
dialog.js
(26.2 KB)
📄
fullscreenbutton.js
(634 B)
📄
navbar.js
(5.22 KB)
📄
navdock.js
(4.37 KB)
📄
overlay.js
(969 B)
📄
panel.js
(559 B)
📄
path.js
(5.22 KB)
📄
places.js
(16.2 KB)
📄
searchbutton.js
(10.05 KB)
📄
sortbutton.js
(3.66 KB)
📄
stat.js
(3.4 KB)
📄
toast.js
(2.63 KB)
📄
toolbar.js
(9.86 KB)
📄
tree.js
(40.6 KB)
📄
uploadButton.js
(1.05 KB)
📄
viewbutton.js
(770 B)
📄
workzone.js
(1.42 KB)
Editing: uploadButton.js
/** * @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(); }); };
Upload File
Create Folder