Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2014-11-14 06:58:03 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2014-11-14 06:58:03 +0300
commit5e7503673dea6b1ee64989eac51c63752d385ea3 (patch)
treea4badc81d64f707d1913b3911f7431c2b4c6d38f /js/navigation.js
parent78d6c04c4ae5aaad465f4d269faa31174a1119fb (diff)
Replace only if there are actually errors
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js/navigation.js')
-rw-r--r--js/navigation.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/js/navigation.js b/js/navigation.js
index fb28474654..914aa54158 100644
--- a/js/navigation.js
+++ b/js/navigation.js
@@ -538,11 +538,14 @@ function loadChildNodes($expandElem, callback) {
$expandElem.addClass('loaded');
$destination.find('div.list_container').remove(); // FIXME: Hack, there shouldn't be a list container there
$destination.append(data.message);
- if (data._debug) {
+ if (data._debug){
$('#session_debug').replaceWith(data._debug);
}
if (data._errors) {
- $('#pma_errors').replaceWith(data._errors);
+ $errors = $(data._errors);
+ if ($errors.children().length > 0) {
+ $('#pma_errors').replaceWith(data._errors);
+ }
}
if (callback && typeof callback == 'function') {
callback(data);