Commit 56dfb49c authored by Xiaowu Zhang's avatar Xiaowu Zhang

add total music notify

parent cc1c64af
......@@ -22,9 +22,6 @@
var gadget = this,
list = gadget.__element.getElementsByTagName('ul')[0];
return new RSVP.Queue()
.push(function () {
return gadget.displayThisTitle("playlist");
})
.push(function () {
return RSVP.all([
gadget.displayThisPage({page: "playlist",
......@@ -82,11 +79,16 @@
"rows" : tmp
});
$(list).listview("refresh");
return tmp.length;
})
.push(function (value) {
return gadget.displayThisTitle("playlist: " +
value + " music");
})
.fail(function (error) {
if (!(error instanceof RSVP.CancellationError)) {
document.getElementsByTagName('body')[0].textContent =
"network ip not correct";
"network error";
}
});
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment