Author: vmolotkov
Date: 2008-01-16 11:35:28 -0500 (Wed, 16 Jan 2008)
New Revision: 5430
Modified:
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js
Log:
components were changed
Modified:
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js
===================================================================
---
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js 2008-01-16
15:41:48 UTC (rev 5429)
+++
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/ListBase.js 2008-01-16
16:35:28 UTC (rev 5430)
@@ -1,14 +1,12 @@
if(!window.Richfaces) window.Richfaces = {};
-Richfaces.disableSelectionText = function(target) {
- target.onselectstart = function(e) {
- e = window.event||e;
- if (e.srcElement) {
- if (e.srcElement.tagName) {
- var tagName = e.srcElement.tagName.toUpperCase();
-
- if (tagName != "INPUT" && tagName != "TEXTAREA" /* any
items more? */) {
- return false;
- }
+Richfaces.disableSelectionText = function(e) {
+ e = window.event||e;
+ if (e.srcElement) {
+ if (e.srcElement.tagName) {
+ var tagName = e.srcElement.tagName.toUpperCase();
+
+ if (tagName != "INPUT" && tagName != "TEXTAREA" /* any
items more? */) {
+ return false;
}
}
}
@@ -170,9 +168,6 @@
this.setFocus();
-
- //this.saveState();
- //this.layoutManager.widthSynchronization();
}
},
@@ -257,23 +252,14 @@
* CTRL+Click handler
*/
addSelectedItem : function(activeItem) {
- //var markedItem = this.getSelectItemByNode(activeItem);
var markedShuttleItem = activeItem;
- /*if (markedItem._selected) {
- this.selectedItems.remove(markedShuttleItem);
- markedItem._selected = false;
- } else {
- markedItem._selected = true;
- this.selectedItems.push(markedShuttleItem);
- }*/
-
if (activeItem.item.isSelected()) {
- this.selectedItems.remove(markedShuttleItem); //TODO :delete
+ this.selectedItems.remove(markedShuttleItem);
activeItem.item.doNormal();
} else {
activeItem.item.doSelect();
- this.selectedItems.push(markedShuttleItem); //TODO :delete
+ this.selectedItems.push(markedShuttleItem);
}
if ((this.activeItem != null) && (this.activeItem.rowIndex !=
activeItem.rowIndex)) {
@@ -284,11 +270,6 @@
this.activeItem.item.doNormal();
}
}
-
- /*if (this.activeItem && !this.getSelectItemByNode(this.activeItem)._selected)
{
- Richfaces.SelectItems.doNormal(this.activeItem);
- }*/
- //this.saveState();
},
/**
Show replies by date