Merge pull request #840 from redhog/master

Bugfix for readonly timeslider
releases-1.1.1
John McLear 2012-07-05 10:34:55 -07:00
commit 34fdfcb253
1 changed files with 24 additions and 13 deletions

View File

@ -1062,10 +1062,19 @@ function handleChangesetRequest(client, message)
var granularity = message.data.granularity;
var start = message.data.start;
var end = start + (100 * granularity);
var padId = message.padId;
var padIds;
async.series([
function (callback) {
readOnlyManager.getIds(message.padId, function(err, value) {
if(ERR(err, callback)) return;
padIds = value;
callback();
});
},
function (callback) {
//build the requested rough changesets and send them back
getChangesetInfo(padId, start, end, granularity, function(err, changesetInfo)
getChangesetInfo(padIds.padId, start, end, granularity, function(err, changesetInfo)
{
ERR(err);
@ -1074,6 +1083,8 @@ function handleChangesetRequest(client, message)
client.json.send({type: "CHANGESET_REQ", data: data});
});
}
]);
}