remove <p> on alerts generated by JS

This commit is contained in:
Oliver Gorwits
2012-03-03 16:21:26 +00:00
parent 3f3a521515
commit 484b851449

View File

@@ -45,7 +45,7 @@ function do_search (event, tab) {
// in case of slow data load, let the user know // in case of slow data load, let the user know
$(target).html( $(target).html(
'<div class="span3 alert"><p>Waiting for results...</p></div>' '<div class="span2 alert">Waiting for results...</div>'
); );
// submit the query and put results into the tab pane // submit the query and put results into the tab pane
@@ -53,14 +53,14 @@ function do_search (event, tab) {
function(response, status, xhr) { function(response, status, xhr) {
if (status !== "success") { if (status !== "success") {
$(target).html( $(target).html(
'<div class="span6 alert alert-error">' + '<div class="span5 alert alert-error">' +
'<p>Search failed! Please contact your site administrator.</p></div>' 'Search failed! Please contact your site administrator.</div>'
); );
return; return;
} }
if (response === "") { if (response === "") {
$(target).html( $(target).html(
'<div class="span3 alert alert-info"><p>No matching records.</p></div>' '<div class="span2 alert alert-info">No matching records.</div>'
); );
} }