Remove tab characters
This commit is contained in:
@@ -36,18 +36,15 @@ $(document).ready(function() {
|
|||||||
$('#togglesearchformlink')
|
$('#togglesearchformlink')
|
||||||
.html(PMA_messages['strShowSearchCriteria'])
|
.html(PMA_messages['strShowSearchCriteria'])
|
||||||
.bind('click', function() {
|
.bind('click', function() {
|
||||||
var $link = $(this);
|
var $link = $(this);
|
||||||
//prompt("'"+$link.text()+"'");
|
$('#db_search_form').slideToggle();
|
||||||
//prompt("'"+PMA_messages['strShowSearchCriteria']+"'");
|
if ($link.text() == PMA_messages['strHideSearchCriteria']) {
|
||||||
$('#db_search_form').slideToggle();
|
$link.text(PMA_messages['strShowSearchCriteria']);
|
||||||
if ($link.text() == PMA_messages['strHideSearchCriteria']) {
|
} else {
|
||||||
$link.text(PMA_messages['strShowSearchCriteria']);
|
$link.text(PMA_messages['strHideSearchCriteria']);
|
||||||
} else {
|
}
|
||||||
$link.text(PMA_messages['strHideSearchCriteria']);
|
// avoid default click action
|
||||||
}
|
return false;
|
||||||
//var_dump("");
|
|
||||||
// avoid default click action
|
|
||||||
return false;
|
|
||||||
});
|
});
|
||||||
/**
|
/**
|
||||||
* Ajax Event handler for retrieving the result of an SQL Query
|
* Ajax Event handler for retrieving the result of an SQL Query
|
||||||
@@ -56,7 +53,6 @@ $(document).ready(function() {
|
|||||||
* @uses PMA_ajaxShowMessage()
|
* @uses PMA_ajaxShowMessage()
|
||||||
*/
|
*/
|
||||||
$("#db_search_form.ajax").live('submit', function(event) {
|
$("#db_search_form.ajax").live('submit', function(event) {
|
||||||
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
PMA_ajaxShowMessage(PMA_messages['strSearching']);
|
PMA_ajaxShowMessage(PMA_messages['strSearching']);
|
||||||
@@ -69,19 +65,18 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$.post($form.attr('action'), $form.serialize() + "&submit_search=" + $("#buttonGo").val(), function(response) {
|
$.post($form.attr('action'), $form.serialize() + "&submit_search=" + $("#buttonGo").val(), function(response) {
|
||||||
if (typeof response == 'string') {
|
if (typeof response == 'string') {
|
||||||
// found results
|
// found results
|
||||||
$("#searchresults").html(response);
|
$("#searchresults").html(response);
|
||||||
$("#sqlqueryresults").trigger('appendAnchor');
|
$("#sqlqueryresults").trigger('appendAnchor');
|
||||||
$('#db_search_form').hide();
|
$('#db_search_form').hide();
|
||||||
$('#togglesearchformlink')
|
$('#togglesearchformlink')
|
||||||
// always start with the Show message
|
// always start with the Show message
|
||||||
.text(PMA_messages['strShowSearchCriteria'])
|
.text(PMA_messages['strShowSearchCriteria'])
|
||||||
$('#togglesearchformdiv')
|
$('#togglesearchformdiv')
|
||||||
// now it's time to show the div containing the link
|
// now it's time to show the div containing the link
|
||||||
.show();
|
.show();
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
// error message (zero rows)
|
// error message (zero rows)
|
||||||
$("#sqlqueryresults").html(response['message']);
|
$("#sqlqueryresults").html(response['message']);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user