Author: abelevich
Date: 2009-12-18 10:16:45 -0500 (Fri, 18 Dec 2009)
New Revision: 16171
Modified:
root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/resources/toggler.js
Log:
merged file
Modified:
root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/resources/toggler.js
===================================================================
---
root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/resources/toggler.js 2009-12-18
15:10:27 UTC (rev 16170)
+++
root/ui-sandbox/trunk/components/tables/ui/src/main/resources/META-INF/resources/toggler.js 2009-12-18
15:16:45 UTC (rev 16171)
@@ -61,6 +61,7 @@
this.expandControl = this.getElement(id + ":expand");
this.collapseControl = this.getElement(id + ":collapse");
this.form = this.getElement(options.formId);
+ this.options = options;
this.forId = options.forId;
this.state = options.initialState;
@@ -120,6 +121,13 @@
},
ajaxToggle: function(expand){
+ if(richfaces.ajax && typeof richfaces.ajax == 'function') {
+ this.saveState(expand);
+ var source = this.id;
+ var event = this.options.eventName;
+ var params = this.options.ajax;
+ jsf.ajax.request(source, event, params);
+ }
},
command: function(name, element){
@@ -129,7 +137,6 @@
}
}
}
-
};
})());
Show replies by date