mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
* Updates the sim stats module. Cleans out some of the rot.
* Adds a prototype web stats module which is disabled by default. It's functional with one report right now, however, the database structure may change, so I don't recommend enabling this to keep actual stats right now. I'll let you know when it's safe. * Adds Prototype for ajaxy web content * removed a warning or two.
This commit is contained in:
4222
bin/data/prototype.js
vendored
Normal file
4222
bin/data/prototype.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
20
bin/data/updater.js
Normal file
20
bin/data/updater.js
Normal file
@@ -0,0 +1,20 @@
|
||||
var updater = Class.create({
|
||||
initialize: function(divToUpdate, interval, file) {
|
||||
this.divToUpdate = divToUpdate;
|
||||
this.interval = interval;
|
||||
this.file = file;
|
||||
new PeriodicalExecuter(this.getUpdate.bind(this), this.interval);
|
||||
},
|
||||
|
||||
getUpdate: function() {
|
||||
var oOptions = {
|
||||
method: "POST",
|
||||
parameters: "intervalPeriod="+this.interval,
|
||||
asynchronous: true,
|
||||
onComplete: function (oXHR, Json) {
|
||||
$(this.divToUpdate).innerHTML = oXHR.responseText;
|
||||
}
|
||||
};
|
||||
var oRequest = new Ajax.Updater(this.divToUpdate, this.file, oOptions);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user