From 0653435b83dec941d9885fdcd4ffb06fd6b7880d Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 18 Dec 2014 08:26:06 -0500 Subject: [PATCH] Fix coding style Signed-off-by: Marc Delisle --- js/export.js | 2 +- js/server_variables.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/js/export.js b/js/export.js index 82e3ed6542..22abbaaa11 100644 --- a/js/export.js +++ b/js/export.js @@ -204,7 +204,7 @@ AJAX.registerOnload('export.js', function () { */ function toggle_quick_or_custom() { - if ($("input[name='quick_or_custom']").length == 0 // custom_no_form option + if ($("input[name='quick_or_custom']").length === 0 // custom_no_form option || $("#radio_custom_export").prop("checked") // custom ) { $("#databases_and_tables").show(); diff --git a/js/server_variables.js b/js/server_variables.js index cb8f8555bc..52935f149b 100644 --- a/js/server_variables.js +++ b/js/server_variables.js @@ -24,7 +24,8 @@ AJAX.registerOnload('server_variables.js', function () { if ($elm.hasClass('editable') && ! $elm.hasClass('edit')) { $elm.prepend($editLink.clone().show()); } - }) + }); + $('#serverVariables').delegate('.var-row', 'mouseleave', function (event) { $(this).find('a.editLink').remove(); })