name fix for angular

This commit is contained in:
hamza zia 2013-01-18 13:08:39 +05:00
parent fd9b5207af
commit bd8a1ad87f
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@
<tbody> <tbody>
<tr> <tr>
<td data-toggle="collapse" data-target=".download-detail .collapse" class="download-overview"> <td data-toggle="collapse" data-target=".download-detail .collapse" class="download-overview">
<b class="download-name">name {{download.gid}}</b> <b class="download-name">{{download.name}}</b>
<ul class="stats hidden-phone pull-right"> <ul class="stats hidden-phone pull-right">
<li class="label label-success">Time left: <span class="download-eta">{{(download.totalLength-download.completedLength)/download.downloadSpeed}}</span></li> <li class="label label-success">Time left: <span class="download-eta">{{(download.totalLength-download.completedLength)/download.downloadSpeed}}</span></li>

View File

@ -66,7 +66,7 @@ function(scope, rpc, utils) {
ctx[p] = d[p]; ctx[p] = d[p];
}); });
var path = (data.files[0].path || data.files[0].uris[0].uri); var path = (d.files[0].path || d.files[0].uris[0].uri);
ctx.name = utils.getFileName(path); ctx.name = utils.getFileName(path);
if (d.bittorrent && d.bittorrent.info) { if (d.bittorrent && d.bittorrent.info) {