Commit cbf630c3 authored by Zsolt from VM's avatar Zsolt from VM
Browse files

Update caption

parent df2a3703
......@@ -112,7 +112,8 @@ function reloadAll() {
// My items
loadFromUrlNoParse("/myitems", {complete_user : user_str }, "#log-items",
function (rslt) {
if (rslt == "") { return "<p>I have no items at the moment</p>"; }
rslt = JSON.parse(rslt);
if (rslt.length == 0) { return "<p>I have no items at the moment</p>"; }
rslt = JSON.parse(rslt);
const mappedVals = rslt.map(showItemInfo);
......@@ -128,4 +129,4 @@ function reloadAll() {
let intervalID = setInterval( reloadAll, 5000);
$(document).ready( reloadAll );
\ No newline at end of file
$(document).ready( reloadAll );
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