1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-02 11:42:42 +01:00
phorge-phorge/webroot/rsrc/js/application/differential/behavior-populate.js

25 lines
544 B
JavaScript
Raw Normal View History

2011-01-25 20:57:47 +01:00
/**
* @provides javelin-behavior-differential-populate
* @requires javelin-behavior
* javelin-request
* javelin-util
* javelin-dom
2011-01-25 20:57:47 +01:00
*/
JX.behavior('differential-populate', function(config) {
function onresponse(target, response) {
JX.DOM.replace(JX.$(target), JX.$H(response));
2011-01-25 20:57:47 +01:00
}
for (var k in config.registry) {
new JX.Request(config.uri, JX.bind(null, onresponse, k))
2011-01-25 20:57:47 +01:00
.setData({
ref : config.registry[k],
2011-01-25 20:57:47 +01:00
whitespace: config.whitespace
})
.send();
}
});