return target;
}
-FolderDDropControler = function(listing, firstItemPos) {
+FolderDDropControler = function(listing, orderable, firstItemPos) {
this.folderUrl = document.getElementById("FolderUrl").innerHTML;
this.targetRow = null;
this.lastOverPosition = null;
this._updatePositions();
this.lastCBChecked = undefined;
var thisControler = this;
- this.listing.onmousedown = function(evt) {thisControler.drag(evt);};
- this.listing.onmouseover = function(evt) {thisControler.moveRow(evt);};
- this.listing.onmouseup = function(evt) {thisControler.drop(evt);};
- addListener(this.listing, 'click', function(evt) {thisControler.disableClickAfterDrop(evt);});
+ if (orderable) {
+ this.listing.onmousedown = function(evt) {thisControler.drag(evt);};
+ this.listing.onmouseover = function(evt) {thisControler.moveRow(evt);};
+ this.listing.onmouseup = function(evt) {thisControler.drop(evt);};
+ addListener(this.listing, 'click', function(evt) {thisControler.disableClickAfterDrop(evt);});
+ }
addListener(this.listing, 'click', function(evt) {thisControler.selectCBRange(evt);});
- if (browser.isIE) {
+ if (browser.isIE10max) {
this.listing.ondragstart = function() { window.event.returnValue = false;};
}
};
var targetRow = this.targetRow;
if (targetRow !== null) {
this.noOver = false;
- if (browser.isIE) {document.selection.clear();}
+ if (browser.isIE10max) {document.selection.clear();}
var overRow = getTargetRow(evt);
if (overRow.pos === targetRow.pos) {return;}
};
DropTarget.prototype.highlightTarget = function(evt){
- if (browser.isIE) {document.selection.clear();}
+ if (browser.isIE10max) {document.selection.clear();}
var target = getTargetedObject(evt);
if (this.folderDDControler.targetRow &&
target.nodeName === "A" &&