projects
/
Plinn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
04a9543
)
Début de refactoring.
author
Benoît Pin
<pin@cri.ensmp.fr>
Wed, 14 Aug 2013 11:22:38 +0000
(13:22 +0200)
committer
Benoît Pin
<pin@cri.ensmp.fr>
Wed, 14 Aug 2013 11:22:38 +0000
(13:22 +0200)
skins/ajax_scripts/folder_contents_script.js
patch
|
blob
|
history
diff --git
a/skins/ajax_scripts/folder_contents_script.js
b/skins/ajax_scripts/folder_contents_script.js
index
379c2c3
..
ece076d
100644
(file)
--- a/
skins/ajax_scripts/folder_contents_script.js
+++ b/
skins/ajax_scripts/folder_contents_script.js
@@
-4,6
+4,12
@@
//
//
//
//
+var FolderDDropControler;
+var DropTarget;
+var loadListing;
+
+(function(){
+
function getTargetRow(evt){
var target = getTargetedObject(evt);
while (target.nodeName != "TR")
function getTargetRow(evt){
var target = getTargetedObject(evt);
while (target.nodeName != "TR")
@@
-11,7
+17,7
@@
function getTargetRow(evt){
return target;
}
return target;
}
-
function FolderDDropControler
(listing) {
+
FolderDDropControler = function
(listing) {
this.folderUrl = document.getElementById("FolderUrl").innerHTML;
this.targetRow = null;
this.lastOverPosition = null;
this.folderUrl = document.getElementById("FolderUrl").innerHTML;
this.targetRow = null;
this.lastOverPosition = null;
@@
-136,7
+142,7
@@
FolderDDropControler.prototype.reset = function() {
-
function DropTarget
(node, folderDDControler) {
+
DropTarget = function
(node, folderDDControler) {
this.folderDDControler = folderDDControler;
this.batchSize = parseInt(document.getElementById("BatchNavigationSize").innerHTML);
var thisControler = this;
this.folderDDControler = folderDDControler;
this.batchSize = parseInt(document.getElementById("BatchNavigationSize").innerHTML);
var thisControler = this;
@@
-196,7
+202,7
@@
DropTarget.prototype.highlightTarget = function(evt){
-
function loadListing
(evt) {
+
loadListing = function
(evt) {
var target = getTargetedObject(evt);
disableDefault(evt);
disablePropagation(evt);
var target = getTargetedObject(evt);
disableDefault(evt);
disablePropagation(evt);
@@
-233,3
+239,5
@@
function loadListing(evt) {
}
return false;
}
}
return false;
}
+
+}());
\ No newline at end of file