Mise en place du canevas pour gérer la sélection des cases à cocher.
authorBenoît Pin <benoit.pin@gmail.com>
Sun, 8 Dec 2013 09:04:45 +0000 (10:04 +0100)
committerBenoît Pin <benoit.pin@gmail.com>
Sun, 8 Dec 2013 09:04:45 +0000 (10:04 +0100)
skins/ajax_scripts/folder_contents_script.js

index d427939..00bdeb9 100644 (file)
@@ -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;