pull/59/head
Piero Toffanin 2018-12-02 21:39:11 -05:00
rodzic 06c46157e4
commit af92c38fa1
2 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -106,7 +106,7 @@
<p data-bind="visible: loading()">Retrieving <span data-bind="text: uuid"></span> ... <span class="glyphicon glyphicon-refresh spinning"></span></p>
<div data-bind="visible: !loading() && !info().error">
<div class="taskItem"><strong>UUID:</strong>
<a data-bind="text: info().uuid, attr: {href: '/task/' + info().uuid + '/info'}"></a>
<a data-bind="text: info().uuid, click: openInfo" href="#"></a>
</div>
<div class="taskItem"><strong>Name:</strong> <span data-bind="text: info().name"></span></div>
<div class="taskItem"><strong>Images:</strong> <span data-bind="text: info().imagesCount"></span></div>

Wyświetl plik

@ -164,6 +164,9 @@ $(function() {
this.autoScrollOutput = true;
this.output.removeAll();
};
Task.prototype.openInfo = function(){
location.href='/task/' + this.uuid + '/info?token=' + token;
};
Task.prototype.downloadOutput = function(){
var self = this;
var url = "/task/" + self.uuid + "/output";