bugfix for records sorting

This commit is contained in:
OttoMao
2015-08-12 19:26:29 +08:00
parent ae070c90ab
commit 531f4d0421
5 changed files with 107 additions and 95 deletions

View File

@@ -117,7 +117,11 @@ var recorder;
function initRecordSet(){
$.getJSON("/lastestLog",function(res){
if(typeof res == "object"){
recordSet = res;
res.map(function(item){
if(item.id){
recordSet[item.id] = item;
}
});
eventCenter.dispatchEvent("recordSetUpdated");
}
});

File diff suppressed because one or more lines are too long

View File

@@ -117,7 +117,11 @@ var recorder;
function initRecordSet(){
$.getJSON("/lastestLog",function(res){
if(typeof res == "object"){
recordSet = res;
res.map(function(item){
if(item.id){
recordSet[item.id] = item;
}
});
eventCenter.dispatchEvent("recordSetUpdated");
}
});