Commit d8513aa2 authored by Xiaowu Zhang's avatar Xiaowu Zhang

rename title

parent aa60d3b9
......@@ -16,9 +16,9 @@
<body>
<div data-role="page" class="ui-page" >
<div class="nav" data-role="header" data-theme="b">
<h1>music player</h1>
<h1>media player</h1>
<a class="addMusic" data-icon="plus" href="#page=upload">add</a>
<a data-icon="grid" href="#page=playlist" >music library</a>
<a data-icon="grid" href="#page=playlist" >media library</a>
</div>
......
......@@ -38,7 +38,7 @@
rows: tmp
});
$(list).listview("refresh");
return gadget.displayThisTitle("localhost playlist: " + tmp.length + " music");
return gadget.displayThisTitle("localhost playlist: " + tmp.length + " media");
}).fail(function(error) {
if (!(error instanceof RSVP.CancellationError)) {
gadget.__element.getElementsByClassName("info")[0].innerHTML = "please enable local server";
......
......@@ -46,7 +46,7 @@
rows: tmp
});
$(list).listview("refresh");
return gadget.displayThisTitle("offline playlist: " + tmp.length + " music");
return gadget.displayThisTitle("offline playlist: " + tmp.length + " media");
}).fail(function(error) {
if (!(error instanceof RSVP.CancellationError)) {
console.log("error");
......
......@@ -115,14 +115,14 @@
rows: tmp
});
$(list).listview("refresh");
return gadget.displayThisTitle("online playlist: " + tmp.length + " music");
return gadget.displayThisTitle("online playlist: " + tmp.length + " media");
}
return check.call(gadget, ip_context.value);
}).fail(function(error) {
if (ipValue) {
gadget.__element.getElementsByClassName("info")[0].innerHTML = "network error";
}
return gadget.displayThisTitle("online playlist: " + "0 music");
return gadget.displayThisTitle("online playlist: " + "0 media");
});
}).declareMethod("startService", function() {
var g = this, research = g.__element.getElementsByClassName("research")[0], ip = g.__element.getElementsByClassName("inputIp")[0];
......
......@@ -16,9 +16,9 @@
<body>
<div data-role="page" class="ui-page" >
<div class="nav" data-role="header" data-theme="b">
<h1>music player</h1>
<h1>media player</h1>
<a class="addMusic" data-icon="plus" href="#page=upload">add</a>
<a data-icon="grid" href="#page=playlist" >music library</a>
<a data-icon="grid" href="#page=playlist" >media library</a>
</div>
......
......@@ -56,7 +56,7 @@
});
$(list).listview("refresh");
return gadget.displayThisTitle("localhost playlist: " +
tmp.length + " music");
tmp.length + " media");
})
.fail(function (error) {
if (!(error instanceof RSVP.CancellationError)) {
......
......@@ -64,7 +64,7 @@
});
$(list).listview("refresh");
return gadget.displayThisTitle("offline playlist: " +
tmp.length + " music");
tmp.length + " media");
})
.fail(function (error) {
if (!(error instanceof RSVP.CancellationError)) {
......
......@@ -155,7 +155,7 @@
});
$(list).listview("refresh");
return gadget.displayThisTitle("online playlist: " +
tmp.length + " music");
tmp.length + " media");
}
return check.call(gadget, ip_context.value);
})
......@@ -165,7 +165,7 @@
"network error";
}
return gadget.displayThisTitle("online playlist: " +
"0 music");
"0 media");
});
})
.declareMethod('startService', function () {
......
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