From b25cf058aecd978c7d421b1e91a40799afbf6a2e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Wed, 14 Aug 2013 13:22:38 +0200 Subject: [PATCH 1/1] =?utf8?q?D=C3=A9but=20de=20refactoring.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- skins/ajax_scripts/folder_contents_script.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/skins/ajax_scripts/folder_contents_script.js b/skins/ajax_scripts/folder_contents_script.js index 379c2c3..ece076d 100644 --- 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") @@ -11,7 +17,7 @@ function getTargetRow(evt){ return target; } -function FolderDDropControler(listing) { +FolderDDropControler = function(listing) { 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; @@ -196,7 +202,7 @@ DropTarget.prototype.highlightTarget = function(evt){ -function loadListing(evt) { +loadListing = function(evt) { var target = getTargetedObject(evt); disableDefault(evt); disablePropagation(evt); @@ -233,3 +239,5 @@ function loadListing(evt) { } return false; } + +}()); \ No newline at end of file -- 2.20.1