From: Benoît Pin Date: Sun, 8 Dec 2013 09:04:45 +0000 (+0100) Subject: Mise en place du canevas pour gérer la sélection des cases à cocher. X-Git-Url: https://scm.cri.mines-paristech.fr/git/Plinn.git/commitdiff_plain/4d01bfd85c7c9c07ce1f3011e1a6cd5aa25fb5a1?ds=inline;hp=--cc Mise en place du canevas pour gérer la sélection des cases à cocher. --- 4d01bfd85c7c9c07ce1f3011e1a6cd5aa25fb5a1 diff --git a/skins/ajax_scripts/folder_contents_script.js b/skins/ajax_scripts/folder_contents_script.js index d427939..00bdeb9 100644 --- a/skins/ajax_scripts/folder_contents_script.js +++ b/skins/ajax_scripts/folder_contents_script.js @@ -29,7 +29,8 @@ FolderDDropControler = function(listing) { this.listing.onmousedown = function(evt) {thisControler.drag(evt);}; this.listing.onmouseover = function(evt) {thisControler.moveRow(evt);}; this.listing.onmouseup = function(evt) {thisControler.drop(evt);}; - this.listing.onclick = function(evt) {thisControler.disableClickAfterDrop(evt);}; + addListener(this.listing, 'click', function(evt) {thisControler.disableClickAfterDrop(evt);}); + addListener(this.listing, 'click', function(evt) {thisControler.selectCBRange(evt);}); if (browser.isIE) { this.listing.ondragstart = function() { window.event.returnValue = false;}; @@ -134,6 +135,10 @@ FolderDDropControler.prototype.disableClickAfterDrop = function(evt) { this.reset(); }; +FolderDDropControler.prototype.selectCBRange = function(evt) { +}; + + FolderDDropControler.prototype.reset = function() { this.targetRow = null; this.lastOverPosition = null;