Fix proposition for issue #221

Adding a p element to inform user that his search return no results
This commit is contained in:
dblugeon 2013-05-05 17:34:37 +02:00
parent 09ba2ec913
commit 1ac684b43f
2 changed files with 10 additions and 0 deletions

View file

@ -442,3 +442,8 @@ form.search input {
padding: 10px;
font-size: 1.2em;
}
p.noresult {
padding : 10px;
text-align : center;
}

View file

@ -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);