Author: pyaschenko
Date: 2010-05-05 11:07:26 -0400 (Wed, 05 May 2010)
New Revision: 16896
Modified:
root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces-queue.js
root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces.js
Log:
queue options
Modified:
root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces-queue.js
===================================================================
---
root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces-queue.js 2010-05-05
14:32:59 UTC (rev 16895)
+++
root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces-queue.js 2010-05-05
15:07:26 UTC (rev 16896)
@@ -363,6 +363,10 @@
$.extend(defaultQueueOptions, id);
}
return richfaces.queue;
+ },
+
+ getQueueOptions: function (id) {
+ return defaultQueueOptions[id] || {};
}
}
}());
Modified: root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces.js
===================================================================
---
root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces.js 2010-05-05
14:32:59 UTC (rev 16895)
+++
root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces.js 2010-05-05
15:07:26 UTC (rev 16896)
@@ -480,12 +480,12 @@
}
}());
- richfaces.ajax = function(source, event, options) {
-
- options = options || {};
+ richfaces.ajax = function(source, event, parameters, queueId) {
+
var sourceId = (typeof source == 'object' && source.id) ? source.id :
source;
+ var options = (richfaces.queue) ? richfaces.queue.getQueueOptions(queueId || sourceId)
: {};
- parameters = options.parameters || {}; // TODO: change "parameters" to
"richfaces.ajax.params"
+ //parameters = options.parameters || {}; // TODO: change "parameters" to
"richfaces.ajax.params"
parameters.execute = "@component";
parameters.render = "@component";
Show replies by date