add item not found handler
This commit is contained in:
1 parent
6d62a6ff4a
commit
7427bff0e5
1 file changed
+3
@@ -56,6 +56,9 @@
|
||||
$.get(DATA_PATH + encode_utf8(item_name) + ".txt",
|
||||
function(data) {
|
||||
$("#output").text(data);
|
||||
}).fail(
|
||||
function() {
|
||||
$("#output").text("Error: item '" + item_name + "' not found");
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in new issue
Block a user