Fix proposition for issue #221
Adding a p element to inform user that his search return no results
This commit is contained in:
parent
09ba2ec913
commit
1ac684b43f
2 changed files with 10 additions and 0 deletions
|
@ -442,3 +442,8 @@ form.search input {
|
|||
padding: 10px;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
p.noresult {
|
||||
padding : 10px;
|
||||
text-align : center;
|
||||
}
|
|
@ -116,6 +116,11 @@ function(HostApp, Core, Paths, URI) {
|
|||
_this.body.appendChild(new_node);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
var noresult = document.createElement("p");
|
||||
noresult.className = "noresult";
|
||||
noresult.textContent = "No Results";
|
||||
_this.body.appendChild(noresult);
|
||||
}
|
||||
|
||||
}, null, false);
|
||||
|
|
Reference in a new issue