remove <p> on alerts generated by JS
This commit is contained in:
@@ -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>'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user