Author: vmolotkov
Date: 2008-03-11 12:55:44 -0400 (Tue, 11 Mar 2008)
New Revision: 6709
Modified:
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js
Log:
new JS api functions are added
Modified:
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js
===================================================================
---
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js 2008-03-11
16:52:04 UTC (rev 6708)
+++
trunk/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js 2008-03-11
16:55:44 UTC (rev 6709)
@@ -172,6 +172,22 @@
this.controlListManager();
break;
}
+ },
+
+ top : function(e) {
+ this.moveSelectedItems("first", e);
+ },
+
+ bottom : function(e) {
+ this.moveSelectedItems("last", e);
+ },
+
+ up : function(e) {
+ this.moveSelectedItems("up", e);
+ },
+
+ down : function(e) {
+ this.moveSelectedItems("down", e);
}
});
@@ -181,8 +197,8 @@
Richfaces.OrderingList.ITEM_SEPARATOR = ",";
Richfaces.OrderingList.HANDLERS = {
- first: function (e) { this.moveSelectedItems("first", e); return false; },
- last: function (e) { this.moveSelectedItems("last", e);return false; },
- up: function (e) { this.moveSelectedItems("up", e);return false; },
- down: function (e) { this.moveSelectedItems("down", e);return false; }
+ first: function (e) { this.top(e); return false; },
+ last: function (e) { this.bottom(e); return false; },
+ up: function (e) { this.up(e); return false; },
+ down: function (e) { this.down(e); return false; }
};
\ No newline at end of file
Show replies by date