Author: abelevich
Date: 2010-05-13 12:35:39 -0400 (Thu, 13 May 2010)
New Revision: 17025
Removed:
root/ui-sandbox/tables/trunk/ui/src/main/resources/META-INF/resources/datatable-test.js
Log:
remove
Deleted:
root/ui-sandbox/tables/trunk/ui/src/main/resources/META-INF/resources/datatable-test.js
===================================================================
---
root/ui-sandbox/tables/trunk/ui/src/main/resources/META-INF/resources/datatable-test.js 2010-05-13
16:30:13 UTC (rev 17024)
+++
root/ui-sandbox/tables/trunk/ui/src/main/resources/META-INF/resources/datatable-test.js 2010-05-13
16:35:39 UTC (rev 17025)
@@ -1,51 +0,0 @@
-(function(jQuery, RichFaces) {
-
- RichFaces.ui = RichFaces.ui || {};
-
- RichFaces.ui.DataTable = function(id, options) {
- this.id = id;
- this.options = options;
- this.sortField = options.sortField;
- this.init(options);
-
- }
-
- jQuery.extend(RichFaces.ui.DataTable.prototype, ( function () {
-
- var clientToggle = function(e, data) {
- };
-
- var serverToggle = function(e,data){
- };
-
- var ajaxToggle = function(event,data){
- var component = event.data.component;
-
- component.save(data.source);
-
- var params = {"source": data.source,
"javax.faces.partial.render":"@all"};
- var id = component.id;
- jsf.ajax.request(id, event, params);
- };
-
- return {
- init: function(options) {
- this.switchType = options.switchType;
- RichFaces.Event.bindById(this.id, 'RICH:sort', this.toggle, this);
- },
-
- toggle: function(e,elem, d) {
- ajaxToggle(e,d);
- },
-
- save: function(state) {
- var fieldToSave = jQuery(document.getElementById(this.sortField));
- fieldToSave.attr('value', state);
- }
-
- }
-
- })());
-
-})(jQuery, window.RichFaces);
-