Display appropriate msg while automatically submitting php error report.
Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>
This commit is contained in:
parent
0b9439a246
commit
c83457fb8a
@ -403,6 +403,7 @@ var AJAX = {
|
||||
&& data._stopErrorReportLoop != '1'
|
||||
) {
|
||||
$("#pma_report_errors_form").submit();
|
||||
PMA_ajaxShowMessage(PMA_messages['phpErrorsBeingSubmitted'], false);
|
||||
} else if (data._promptPhpErrors) {
|
||||
// otherwise just prompt user if it is set so.
|
||||
msg = msg + PMA_messages['phpErrorsFound'];
|
||||
|
||||
@ -438,6 +438,13 @@ $js_messages['phpErrorsFound'] = '<div class="error">'
|
||||
. '" onclick="PMA_ignorePhpErrors(false)" style="float: right; margin: 20px;">'
|
||||
. '</div></div>';
|
||||
|
||||
$js_messages['phpErrorsBeingSubmitted'] = '<div class="error">'
|
||||
. __('Some errors have been detected on the server!!')
|
||||
. '<br/>'
|
||||
. __('As per your settings, they are being submitted currently.')
|
||||
. __(' Please be patient.')
|
||||
. '</div>';
|
||||
|
||||
echo "var PMA_messages = new Array();\n";
|
||||
foreach ($js_messages as $name => $js_message) {
|
||||
PMA_printJsValue("PMA_messages['" . $name . "']", $js_message);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user