}
var initialSelection = $(node.parentNode).getSelectedNodes();
-
- if (initialSelection.length > 0 && !Event.isLeftClick(event))
- // Ignore non primary-click (ie right-click)
+ if (initialSelection.length > 0
+ && initialSelection.indexOf(node) >= 0
+ && !Event.isLeftClick(event))
+ // Ignore non primary-click (ie right-click) inside current selection
return true;
if ((event.shiftKey == 1 || event.ctrlKey == 1)
if (this.timer)
clearTimeout(this.timer);
- this.timer = setTimeout("onSearchFormSubmit()", 1000);
+ if (event.keyCode == 13) {
+ onSearchFormSubmit();
+ preventDefault(event);
+ }
+ else
+ this.timer = setTimeout("onSearchFormSubmit()", 1000);
}
function onSearchFormSubmit(event) {
return owner;
}
+function getListIndexForFolder(items, owner, folderName) {
+ var i;
+ var previousOwner = null;
+
+ for (var i = 0; i < items.length; i++) {
+ var currentFolderName = items[i].lastChild.nodeValue.strip();
+ var currentOwner = items[i].readAttribute('owner');
+ if (currentOwner == owner) {
+ previousOwner = currentOwner;
+ if (currentFolderName > folderName)
+ break;
+ }
+ else if (previousOwner ||
+ (currentOwner != UserLogin && currentOwner > owner))
+ break;
+ else if (currentOwner == "nobody")
+ break;
+ }
+
+ return i;
+}
+
function listRowMouseDownHandler(event) {
preventDefault(event);
//Event.stop(event);