Skip to content
Snippets Groups Projects
Commit 112e5bdc authored by Elke Kreim's avatar Elke Kreim
Browse files

Show message when no results found and redirect to dashboard

parent dc831620
No related branches found
No related tags found
No related merge requests found
......@@ -52,12 +52,16 @@ define(['jquery'], function ($) {
+ '<a href="' + wwwroot + '/course/view.php?id=' + course.id + '">' + displaystr + '</a> </li>')
.appendTo(list);
});
} else {
$('<li class="list-group-item hshcoursesearchlistitem " value="">'
+ '<a href="' + wwwroot + '/my/">Keine Ergebnisse gefunden.</a> </li>')
.appendTo(list);
}
$("#hshcourselistul").replaceWith(list);
$("#hshcourseprogress").hide();
},
error: function (a) {
console.error("error " + JSON.stringify(a));
$(location).attr('href', wwwroot + '/my/');
}
});
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment