Skip to content
This repository has been archived by the owner on Sep 29, 2020. It is now read-only.

Commit

Permalink
changing "elfinder" references to "finder"
Browse files Browse the repository at this point in the history
  • Loading branch information
oyejorge committed Nov 1, 2012
1 parent 61b5c38 commit e0047f7
Show file tree
Hide file tree
Showing 84 changed files with 688 additions and 696 deletions.
4 changes: 2 additions & 2 deletions css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*********************************************/

/* common container */
.elfinder { padding:0; position:relative; display:block; }
.finder { padding:0; position:relative; display:block; }

/* right to left enviroment */
.finder-rtl { text-align:right; direction:rtl; }
Expand Down Expand Up @@ -84,7 +84,7 @@
.finder-overlay { opacity: 0; filter:Alpha(Opacity=0); }

/* panels under/below cwd (for search field etc) */
.elfinder .finder-panel {
.finder .finder-panel {
position:relative;
background-image:none;
padding:7px 12px;
Expand Down
6 changes: 3 additions & 3 deletions css/cwd.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}

/* container active on dropenter */
.elfinder .finder-cwd-wrapper.finder-droppable-active {
.finder .finder-cwd-wrapper.finder-droppable-active {
padding:0;
border:2px solid #8cafed;
}
Expand Down Expand Up @@ -188,9 +188,9 @@
/*.finder-cwd-view-list { padding:0 0 4px 0; }*/

.finder-cwd table { width:100%; border-collapse:collapse; border:0 solid; margin:0 0 10px 0; }
.elfinder .finder-cwd table thead tr { border-left:0 solid; border-top:0 solid; border-right:0 solid; }
.finder .finder-cwd table thead tr { border-left:0 solid; border-top:0 solid; border-right:0 solid; }

.elfinder .finder-cwd table td {
.finder .finder-cwd table td {
padding:3px 12px;
white-space:pre;
overflow:hidden;
Expand Down
2 changes: 1 addition & 1 deletion css/dialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
}


/* dialog for elFinder itself */
/* dialog for Finder itself */
.dialogfinder .dialogfinder-drag {
border-left:0 solid;
border-top:0 solid;
Expand Down
2 changes: 1 addition & 1 deletion css/fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
.finder-upload-dropbox { font-size:1.2em; }
.finder-upload-dialog-or { font-size:1.2em; }
.dialogfinder .dialogfinder-drag { font-size:.9em; }
.elfinder .finder-navbar { font-size:.72em; }
.finder .finder-navbar { font-size:.72em; }
.finder-place-drag .finder-navbar-dir { font-size:.9em;}
.finder-quicklook-title { font-size:.7em; }
.finder-quicklook-info-data { font-size:.72em; }
Expand Down
2 changes: 1 addition & 1 deletion css/navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*********************************************/

/* container */
.elfinder .finder-navbar {
.finder .finder-navbar {
width:230px;
padding:3px 5px;
background-image:none;
Expand Down
14 changes: 7 additions & 7 deletions css/toolbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/*.finder-buttonset:first-child { margin:0; }*/

/* button */
.elfinder .finder-button {
.finder .finder-button {
width:16px;
height:16px;
margin:0;
Expand All @@ -34,7 +34,7 @@
border:0 solid;
}

.elfinder .ui-icon-search { cursor:pointer;}
.finder .ui-icon-search { cursor:pointer;}

.finder-button:first-child {
-moz-border-radius-topleft: 4px;
Expand Down Expand Up @@ -66,8 +66,8 @@
}

/* change icon opacity^ not button */
.elfinder .finder-button.ui-state-disabled { opacity:1; filter:Alpha(Opacity=100);}
.elfinder .finder-button.ui-state-disabled .finder-button-icon { opacity:.4; filter:Alpha(Opacity=40);}
.finder .finder-button.ui-state-disabled { opacity:1; filter:Alpha(Opacity=100);}
.finder .finder-button.ui-state-disabled .finder-button-icon { opacity:.4; filter:Alpha(Opacity=40);}

/* rtl enviroment */
.finder-rtl .finder-buttonset { float:right; }
Expand Down Expand Up @@ -113,7 +113,7 @@
.finder-button-icon-rotate-l { background-position: 0 -641px; }

/* button with dropdown menu*/
.elfinder .finder-menubutton { overflow:visible; }
.finder .finder-menubutton { overflow:visible; }



Expand Down Expand Up @@ -161,10 +161,10 @@
cursor: pointer;
}

.elfinder .finder-button form input { background:transparent; cursor: default;}
.finder .finder-button form input { background:transparent; cursor: default;}

/* search "button" */
.elfinder .finder-button-search {
.finder .finder-button-search {
border:0 solid;
background:transparent;
padding:0;
Expand Down
2 changes: 1 addition & 1 deletion elfinder.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
// Documentation for client options:
// https://github.com/oyejorge/gpFinder/wiki/Client-configuration-options
$().ready(function() {
$('#finder').elfinder({
$('#finder').finder({
url : 'php/connector.minimal.php' // connector URL (REQUIRED)
// lang: 'ru', // language (OPTIONAL)
});
Expand Down
19 changes: 6 additions & 13 deletions elfinder.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@
<!-- Finder dialog -->
<script src="js/jquery.dialogfinder.js"></script>

<!-- Finder 1.x connector API support
<script src="js/proxy/elFinderSupportVer1.js"></script>
-->

<!-- Finder custom extenstions
<script src="extensions/jplayer/elfinder.quicklook.jplayer.js"></script>
Expand Down Expand Up @@ -148,15 +145,11 @@

<script>
$().ready(function() {
$('#finder').elfinder({
$('#finder').finder({
requestType : 'post',

// url : 'php/connector.php',
url : 'php/connector.php',
// transport : new elFinderSupportVer1(),
// getFileCallback : function(files, fm) {
// console.log(files);
// },
debug : true, //['error', 'warning', 'event-destroy'],
handlers : {
select : function(event, FinderInstance) {
Expand Down Expand Up @@ -208,7 +201,7 @@
// }
})

// $('#finder2').elfinder({
// $('#finder2').finder({
// url : 'connectors/php/connector.php',
// width:650,
// lang : 'ru'
Expand All @@ -217,15 +210,15 @@
// console.log(f1)
//
// setTimeout(function() {
// console.log($('#finder').elfinder('instance'))
// console.log($('#finder').finder('instance'))
// }, 2000)

// new elFinder($('<div/>'))
// new Finder($('<div/>'))

// var f2 = $('#asd').elfinder({
// var f2 = $('#asd').finder({
// url : 'connectors/php/connector.php',
// lang : 'ru'
// }).elfinder('instance')
// }).finder('instance')

$('#back').click(function(e) {
f1.exec('back')
Expand Down
14 changes: 7 additions & 7 deletions js/Finder.command.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/**
* elFinder command prototype
* Finder command prototype
*
* @type elFinder.command
* @type Finder.command
* @author Dmitry (dio) Levashov
*/
elFinder.prototype.command = function(fm) {
Finder.prototype.command = function(fm) {

/**
* elFinder instance
* Finder instance
*
* @type elFinder
* @type Finder
*/
this.fm = fm;

Expand Down Expand Up @@ -60,7 +60,7 @@ elFinder.prototype.command = function(fm) {
this.updateOnSelect = true;

/**
* elFinder events defaults handlers.
* Finder events defaults handlers.
* Inside handlers "this" is current command object
*
* @type Object
Expand All @@ -76,7 +76,7 @@ elFinder.prototype.command = function(fm) {
};

/**
* elFinder events handlers.
* Finder events handlers.
* Inside handlers "this" is current command object
*
* @type Object
Expand Down
18 changes: 9 additions & 9 deletions js/Finder.history.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* @class elFinder.history
* @class Finder.history
* Store visited folders
* and provide "back" and "forward" methods
*
* @author Dmitry (dio) Levashov
*/
elFinder.prototype.history = function(fm) {
Finder.prototype.history = function(fm) {
var self = this,
/**
* Update history on "open" event?
Expand Down Expand Up @@ -48,7 +48,7 @@ elFinder.prototype.history = function(fm) {
}
return $.Deferred().reject();
};

/**
* Return true if there is previous visited directories
*
Expand All @@ -57,7 +57,7 @@ elFinder.prototype.history = function(fm) {
this.canBack = function() {
return current > 0;
}

/**
* Return true if can go forward
*
Expand All @@ -66,14 +66,14 @@ elFinder.prototype.history = function(fm) {
this.canForward = function() {
return current < history.length - 1;
}

/**
* Go back
*
* @return void
*/
this.back = go;

/**
* Go forward
*
Expand All @@ -82,8 +82,8 @@ elFinder.prototype.history = function(fm) {
this.forward = function() {
return go(true);
}
// bind to elfinder events

// bind to finder events
fm.open(function(e) {
var l = history.length,
cwd = fm.cwd().hash;
Expand All @@ -96,5 +96,5 @@ elFinder.prototype.history = function(fm) {
update = true;
})
.reload(reset);

}
Loading

0 comments on commit e0047f7

Please sign in to comment.