1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 05:12:41 +01:00
phorge-phorge/webroot/rsrc/js/application/differential/behavior-populate.js
2011-02-03 15:41:58 -08:00

22 lines
501 B
JavaScript

/**
* @provides javelin-behavior-differential-populate
* @requires javelin-lib-dev
*/
JX.behavior('differential-populate', function(config) {
function onresponse(target, response) {
JX.DOM.replace(JX.$(target), JX.HTML(response));
}
for (var k in config.registry) {
new JX.Request(config.uri, JX.bind(null, onresponse, k))
.setData({
id: config.registry[k][0],
vs: config.registry[k][1],
whitespace: config.whitespace
})
.send();
}
});