Merge branch 'master' of ssh://phpmyadmin.git.sourceforge.net/gitroot/phpmyadmin/phpmyadmin
This commit is contained in:
@@ -212,6 +212,7 @@ $(document).ready(function() {
|
|||||||
width: 800,
|
width: 800,
|
||||||
// height is a workaround for this Chrome problem:
|
// height is a workaround for this Chrome problem:
|
||||||
// http://bugs.jqueryui.com/ticket/4671
|
// http://bugs.jqueryui.com/ticket/4671
|
||||||
|
// also it's interesting to be able to scroll this window
|
||||||
height: 600,
|
height: 600,
|
||||||
modal: true,
|
modal: true,
|
||||||
buttons: button_options
|
buttons: button_options
|
||||||
@@ -322,6 +323,7 @@ $(document).ready(function() {
|
|||||||
.append(data)
|
.append(data)
|
||||||
.dialog({
|
.dialog({
|
||||||
width: 900,
|
width: 900,
|
||||||
|
height: 600,
|
||||||
buttons: button_options
|
buttons: button_options
|
||||||
}); //dialog options end
|
}); //dialog options end
|
||||||
displayPasswordGenerateButton();
|
displayPasswordGenerateButton();
|
||||||
|
@@ -192,12 +192,15 @@ $(document).ready(function() {
|
|||||||
if (! $('#sqlqueryform').find('a').is('#togglequerybox')) {
|
if (! $('#sqlqueryform').find('a').is('#togglequerybox')) {
|
||||||
$('<a id="togglequerybox"></a>')
|
$('<a id="togglequerybox"></a>')
|
||||||
.html(PMA_messages['strHideQueryBox'])
|
.html(PMA_messages['strHideQueryBox'])
|
||||||
.appendTo("#sqlqueryform");
|
.appendTo("#sqlqueryform")
|
||||||
|
// initially hidden because at this point, nothing else
|
||||||
|
// appears under the link
|
||||||
|
.hide();
|
||||||
|
|
||||||
// Attach the toggling of the query box visibility to a click
|
// Attach the toggling of the query box visibility to a click
|
||||||
$("#togglequerybox").bind('click', function() {
|
$("#togglequerybox").bind('click', function() {
|
||||||
var $link = $(this)
|
var $link = $(this)
|
||||||
$link.siblings().slideToggle("medium");
|
$link.siblings().slideToggle("fast");
|
||||||
if ($link.text() == PMA_messages['strHideQueryBox']) {
|
if ($link.text() == PMA_messages['strHideQueryBox']) {
|
||||||
$link.text(PMA_messages['strShowQueryBox']);
|
$link.text(PMA_messages['strShowQueryBox']);
|
||||||
} else {
|
} else {
|
||||||
@@ -263,6 +266,7 @@ $(document).ready(function() {
|
|||||||
$('#sqlqueryresults').show();
|
$('#sqlqueryresults').show();
|
||||||
$("#sqlqueryresults").html(data);
|
$("#sqlqueryresults").html(data);
|
||||||
$("#sqlqueryresults").trigger('appendAnchor');
|
$("#sqlqueryresults").trigger('appendAnchor');
|
||||||
|
$('#togglequerybox').show();
|
||||||
if($("#togglequerybox").siblings(":visible").length > 0) {
|
if($("#togglequerybox").siblings(":visible").length > 0) {
|
||||||
$("#togglequerybox").trigger('click');
|
$("#togglequerybox").trigger('click');
|
||||||
}
|
}
|
||||||
|
@@ -2935,11 +2935,15 @@ function PMA_ajaxResponse($message, $success = true, $extra_data = array())
|
|||||||
$response = array_merge($response, $extra_data);
|
$response = array_merge($response, $extra_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the Content-Type header to JSON so that jQuery parses the response correctly
|
// Set the Content-Type header to JSON so that jQuery parses the
|
||||||
if(!isset($GLOBALS['is_header_sent'])) {
|
// response correctly.
|
||||||
header('Cache-Control: no-cache');
|
//
|
||||||
header("Content-Type: application/json");
|
// At this point, other headers might have been sent;
|
||||||
}
|
// even if $GLOBALS['is_header_sent'] is true,
|
||||||
|
// we have to send these additional headers.
|
||||||
|
header('Cache-Control: no-cache');
|
||||||
|
header("Content-Type: application/json");
|
||||||
|
|
||||||
echo json_encode($response);
|
echo json_encode($response);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
@@ -15,7 +15,7 @@ require_once './libraries/common.inc.php';
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If this is an Ajax request, we do not need to generate all this output.
|
* This is not an Ajax request so we need to generate all this output.
|
||||||
*/
|
*/
|
||||||
if (isset($GLOBALS['is_ajax_request']) && !$GLOBALS['is_ajax_request']) {
|
if (isset($GLOBALS['is_ajax_request']) && !$GLOBALS['is_ajax_request']) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user