Update v1.0.6
After Width: | Height: | Size: 464 B |
BIN
public/filemanager/scripts/jquery.filetree/images/code.png
Normal file
After Width: | Height: | Size: 603 B |
BIN
public/filemanager/scripts/jquery.filetree/images/css.png
Normal file
After Width: | Height: | Size: 618 B |
BIN
public/filemanager/scripts/jquery.filetree/images/db.png
Normal file
After Width: | Height: | Size: 579 B |
After Width: | Height: | Size: 670 B |
BIN
public/filemanager/scripts/jquery.filetree/images/directory.png
Normal file
After Width: | Height: | Size: 537 B |
BIN
public/filemanager/scripts/jquery.filetree/images/doc.png
Normal file
After Width: | Height: | Size: 651 B |
BIN
public/filemanager/scripts/jquery.filetree/images/file-lock.png
Normal file
After Width: | Height: | Size: 614 B |
BIN
public/filemanager/scripts/jquery.filetree/images/file.png
Normal file
After Width: | Height: | Size: 294 B |
BIN
public/filemanager/scripts/jquery.filetree/images/film.png
Normal file
After Width: | Height: | Size: 653 B |
BIN
public/filemanager/scripts/jquery.filetree/images/flash.png
Normal file
After Width: | Height: | Size: 582 B |
After Width: | Height: | Size: 583 B |
BIN
public/filemanager/scripts/jquery.filetree/images/html.png
Normal file
After Width: | Height: | Size: 734 B |
BIN
public/filemanager/scripts/jquery.filetree/images/java.png
Normal file
After Width: | Height: | Size: 633 B |
BIN
public/filemanager/scripts/jquery.filetree/images/linux.png
Normal file
After Width: | Height: | Size: 668 B |
BIN
public/filemanager/scripts/jquery.filetree/images/music.png
Normal file
After Width: | Height: | Size: 385 B |
BIN
public/filemanager/scripts/jquery.filetree/images/pdf.png
Normal file
After Width: | Height: | Size: 591 B |
BIN
public/filemanager/scripts/jquery.filetree/images/php.png
Normal file
After Width: | Height: | Size: 538 B |
BIN
public/filemanager/scripts/jquery.filetree/images/picture.png
Normal file
After Width: | Height: | Size: 606 B |
BIN
public/filemanager/scripts/jquery.filetree/images/ppt.png
Normal file
After Width: | Height: | Size: 588 B |
BIN
public/filemanager/scripts/jquery.filetree/images/psd.png
Normal file
After Width: | Height: | Size: 856 B |
BIN
public/filemanager/scripts/jquery.filetree/images/ruby.png
Normal file
After Width: | Height: | Size: 626 B |
BIN
public/filemanager/scripts/jquery.filetree/images/script.png
Normal file
After Width: | Height: | Size: 859 B |
BIN
public/filemanager/scripts/jquery.filetree/images/spinner.gif
Normal file
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.2 KiB |
BIN
public/filemanager/scripts/jquery.filetree/images/txt.png
Normal file
After Width: | Height: | Size: 342 B |
BIN
public/filemanager/scripts/jquery.filetree/images/xls.png
Normal file
After Width: | Height: | Size: 663 B |
BIN
public/filemanager/scripts/jquery.filetree/images/zip.png
Normal file
After Width: | Height: | Size: 386 B |
292
public/filemanager/scripts/jquery.filetree/jqueryFileTree.css
vendored
Normal file
@@ -0,0 +1,292 @@
|
||||
UL.jqueryFileTree {
|
||||
font-family: Verdana, sans-serif;
|
||||
font-size: 11px;
|
||||
line-height: 18px;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
UL.jqueryFileTree LI {
|
||||
list-style: none;
|
||||
padding: 0px;
|
||||
padding-left: 20px;
|
||||
margin: 0px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
UL.jqueryFileTree A {
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
padding: 0px 2px;
|
||||
}
|
||||
|
||||
UL.jqueryFileTree A:hover {
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
/* Core Styles */
|
||||
.jqueryFileTree LI.directory {
|
||||
background: url(images/directory.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.directory-locked {
|
||||
background: url(images/directory-lock.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.expanded {
|
||||
background: url(images/folder_open.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.file {
|
||||
background: url(images/file.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.file-locked {
|
||||
background: url(images/file-lock.png) left top no-repeat ! important;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.wait {
|
||||
background: url(images/square-loading.gif) left top no-repeat;
|
||||
}
|
||||
|
||||
/* File Extensions*/
|
||||
.jqueryFileTree LI.ext_3gp {
|
||||
background: url(images/film.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_afp {
|
||||
background: url(images/code.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_afpa {
|
||||
background: url(images/code.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_asp {
|
||||
background: url(images/code.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_aspx {
|
||||
background: url(images/code.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_avi {
|
||||
background: url(images/film.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_bat {
|
||||
background: url(images/application.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_bmp {
|
||||
background: url(images/picture.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_c {
|
||||
background: url(images/code.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_cfm {
|
||||
background: url(images/code.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_cgi {
|
||||
background: url(images/code.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_com {
|
||||
background: url(images/application.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_cpp {
|
||||
background: url(images/code.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_css {
|
||||
background: url(images/css.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_doc {
|
||||
background: url(images/doc.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_exe {
|
||||
background: url(images/application.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_gif {
|
||||
background: url(images/picture.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_fla {
|
||||
background: url(images/flash.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_h {
|
||||
background: url(images/code.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_htm {
|
||||
background: url(images/html.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_html {
|
||||
background: url(images/html.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_jar {
|
||||
background: url(images/java.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_jpg {
|
||||
background: url(images/picture.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_jpeg {
|
||||
background: url(images/picture.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_js {
|
||||
background: url(images/script.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_lasso {
|
||||
background: url(images/code.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_log {
|
||||
background: url(images/txt.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_m4p {
|
||||
background: url(images/music.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_mov {
|
||||
background: url(images/film.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_mp3 {
|
||||
background: url(images/music.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_mp4 {
|
||||
background: url(images/film.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_mpg {
|
||||
background: url(images/film.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_mpeg {
|
||||
background: url(images/film.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_ogg {
|
||||
background: url(images/music.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_ogv {
|
||||
background: url(images/film.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_webm {
|
||||
background: url(images/film.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_pcx {
|
||||
background: url(images/picture.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_pdf {
|
||||
background: url(images/pdf.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_php {
|
||||
background: url(images/php.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_png {
|
||||
background: url(images/picture.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_ppt {
|
||||
background: url(images/ppt.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_psd {
|
||||
background: url(images/psd.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_pl {
|
||||
background: url(images/script.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_py {
|
||||
background: url(images/script.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_rb {
|
||||
background: url(images/ruby.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_rbx {
|
||||
background: url(images/ruby.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_rhtml {
|
||||
background: url(images/ruby.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_rpm {
|
||||
background: url(images/linux.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_ruby {
|
||||
background: url(images/ruby.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_sql {
|
||||
background: url(images/db.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_swf {
|
||||
background: url(images/flash.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_tif {
|
||||
background: url(images/picture.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_tiff {
|
||||
background: url(images/picture.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_txt {
|
||||
background: url(images/txt.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_vb {
|
||||
background: url(images/code.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_wav {
|
||||
background: url(images/music.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_wmv {
|
||||
background: url(images/film.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_xls {
|
||||
background: url(images/xls.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_xml {
|
||||
background: url(images/code.png) left top no-repeat;
|
||||
}
|
||||
|
||||
.jqueryFileTree LI.ext_zip {
|
||||
background: url(images/zip.png) left top no-repeat;
|
||||
}
|
120
public/filemanager/scripts/jquery.filetree/jqueryFileTree.js
vendored
Normal file
@@ -0,0 +1,120 @@
|
||||
// jQuery File Tree Plugin
|
||||
//
|
||||
// Version 1.01
|
||||
//
|
||||
// Cory S.N. LaViska
|
||||
// A Beautiful Site (http://abeautifulsite.net/)
|
||||
// 24 March 2008
|
||||
//
|
||||
// Visit http://abeautifulsite.net/notebook.php?article=58 for more information
|
||||
//
|
||||
// Usage: $('.fileTreeDemo').fileTree( options, callback )
|
||||
//
|
||||
// Options: root - root folder to display; default = /
|
||||
// script - location of the serverside AJAX file to use; default = jqueryFileTree.php
|
||||
// folderEvent - event to trigger expand/collapse; default = click
|
||||
// expandSpeed - default = 500 (ms); use -1 for no animation
|
||||
// collapseSpeed - default = 500 (ms); use -1 for no animation
|
||||
// expandEasing - easing function to use on expand (optional)
|
||||
// collapseEasing - easing function to use on collapse (optional)
|
||||
// multiFolder - whether or not to limit the browser to one subfolder at a time
|
||||
// loadMessage - Message to display while initial tree loads (can be HTML)
|
||||
//
|
||||
// History:
|
||||
// 1.03 (patched by simo for Filemanager) - add an expandedFolder option to open desired folder when init
|
||||
// 1.02 (patched by Filemanager) - add a datafunc option to get data through a function instead of a script
|
||||
// 1.01 - updated to work with foreign characters in directory/file names (12 April 2008)
|
||||
// 1.00 - released (24 March 2008)
|
||||
//
|
||||
// TERMS OF USE
|
||||
//
|
||||
// jQuery File Tree is licensed under a Creative Commons License and is copyrighted (C)2008 by Cory S.N. LaViska.
|
||||
// For details, visit http://creativecommons.org/licenses/by/3.0/us/
|
||||
//
|
||||
if(jQuery) (function($){
|
||||
|
||||
$.extend($.fn, {
|
||||
fileTree: function(o, h) {
|
||||
// Defaults
|
||||
if( !o ) var o = {};
|
||||
if( o.root == undefined ) o.root = '/';
|
||||
if( o.datafunc == undefined ) o.datafunc = null;
|
||||
if( o.script == undefined ) o.script = 'jqueryFileTree.php';
|
||||
if( o.folderEvent == undefined ) o.folderEvent = 'click';
|
||||
if( o.expandSpeed == undefined ) o.expandSpeed= 500;
|
||||
if( o.collapseSpeed == undefined ) o.collapseSpeed= 500;
|
||||
if( o.expandEasing == undefined ) o.expandEasing = null;
|
||||
if( o.collapseEasing == undefined ) o.collapseEasing = null;
|
||||
if( o.multiFolder == undefined ) o.multiFolder = true;
|
||||
if( o.loadMessage == undefined ) o.loadMessage = 'Loading...';
|
||||
if( o.folderCallback == undefined ) o.folderCallback = null;
|
||||
if( o.after == undefined ) o.after = null;
|
||||
if(o.expandedFolder == undefined) o.expandedFolder = '';
|
||||
|
||||
$(this).each( function() {
|
||||
|
||||
function showTree(c, t) {
|
||||
function showData(data) {
|
||||
$(c).find('.start').html('');
|
||||
$(c).removeClass('wait').append(data);
|
||||
if( o.root == t ) $(c).find('UL:hidden').show();
|
||||
else $(c).find('UL:hidden').slideDown({ duration: o.expandSpeed, easing: o.expandEasing });
|
||||
bindTree(c);
|
||||
if (o.expandedFolder != null) {
|
||||
$(c).find(".directory.collapsed").each(function (i,f) {
|
||||
if ((o.expandedFolder).match($(f).children().attr('data-path'))) {
|
||||
showTree($(f), $(f).children().attr('data-path').match(/.*\//));
|
||||
$(f).removeClass('collapsed').addClass('expanded');
|
||||
};
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
o.after(data);
|
||||
}
|
||||
$(c).addClass('wait');
|
||||
$(".jqueryFileTree.start").remove();
|
||||
if (o.datafunc) o.datafunc(t, showData);
|
||||
else $.post(o.script, { dir: t }, showData);
|
||||
}
|
||||
|
||||
function bindTree(t) {
|
||||
$(t).find('LI A').bind(o.folderEvent, function() {
|
||||
if( $(this).parent().hasClass('directory')) {
|
||||
if( $(this).parent().hasClass('collapsed') ) {
|
||||
// Expand
|
||||
if( !o.multiFolder ) {
|
||||
$(this).parent().parent().find('UL').slideUp({ duration: o.collapseSpeed, easing: o.collapseEasing });
|
||||
$(this).parent().parent().find('LI.directory').removeClass('expanded').addClass('collapsed');
|
||||
}
|
||||
$(this).parent().find('UL').remove(); // cleanup
|
||||
showTree( $(this).parent(), $(this).attr('data-path').match( /.*\// ) );
|
||||
$(this).parent().removeClass('collapsed').addClass('expanded');
|
||||
// @simo's hack : prevent opening folder and loader when clicking locked folder
|
||||
if($(this).parent().hasClass('directory-locked')) $(this).parent().removeClass('expanded').removeClass('wait');
|
||||
} else {
|
||||
// Collapse
|
||||
$(this).parent().find('UL').slideUp({ duration: o.collapseSpeed, easing: o.collapseEasing });
|
||||
$(this).parent().removeClass('expanded').addClass('collapsed');
|
||||
}
|
||||
|
||||
o.folderCallback($(this).attr('data-path'));
|
||||
|
||||
} else {
|
||||
h($(this).attr('data-path'));
|
||||
}
|
||||
return false;
|
||||
});
|
||||
// Prevent A from triggering the # on non-click events
|
||||
if( o.folderEvent.toLowerCase != 'click' ) $(t).find('LI A').bind('click', function() { return false; });
|
||||
}
|
||||
// Loading message
|
||||
$(this).html('<ul class="jqueryFileTree start"><li class="wait">' + o.loadMessage + '<li></ul>');
|
||||
// Get the initial file list
|
||||
showTree( $(this), o.root );
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
})(jQuery);
|