Merge pull request #5 from Microsoft/leef/working
FIxed errors with the error message parsing and the pagination from b…
This commit is contained in:
Коммит
116fb575b4
|
@ -131,7 +131,7 @@ namespace LabWeb.Controllers
|
|||
}
|
||||
else
|
||||
{
|
||||
newModel.Error = e.Message;
|
||||
newModel.Error = e.Message.Substring(0, e.Message.IndexOf(Environment.NewLine));
|
||||
}
|
||||
}
|
||||
} while (numRetries < 1);
|
||||
|
|
|
@ -215,7 +215,7 @@ $(".btn-run").on("click", function () {
|
|||
// Hide display, show error
|
||||
docs = null;
|
||||
$(".result-pager").addClass("hidden");
|
||||
error = JSON.stringify(JSON.parse(('{' + msg.Error.substring(0, msg.Error.lastIndexOf('}') + 1) + '}').replace('Message', '"Message"')), null, 2);
|
||||
error = (JSON.stringify(JSON.parse(msg.Error), null, 2));
|
||||
setErrorPaneWithAnimation(error);
|
||||
}
|
||||
}).fail(function (msg) {
|
||||
|
|
|
@ -17,11 +17,11 @@
|
|||
<div class="right-pane">
|
||||
<span class="pane-title pane-title-active title-left pane1">Results</span>
|
||||
<div class="result-pager hidden">
|
||||
<span class="left-arrow glyphicon glyphicon-menu-left"><</span>
|
||||
<span class="left-arrow glyphicon glyphicon-menu-left"></span>
|
||||
<span class="current-page"></span>
|
||||
<span class="">/</span>
|
||||
<span class="total-page"></span>
|
||||
<span class="right-arrow glyphicon glyphicon-menu-right">></span>
|
||||
<span class="right-arrow glyphicon glyphicon-menu-right"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
|
Загрузка…
Ссылка в новой задаче