diff --git a/js/functions.js b/js/functions.js
index a42439e5f..3e0eb91be 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -1656,23 +1656,22 @@ function changeMIMEType(db, table, reference, mime_type)
}
// Jquery Coding for inline editing SQL_QUERY
$(document).ready(function(){
- var $oldText,$db,$table,$token,$sql_query;
- $oldText=$(".syntax").html();
- $("#inline_edit").click(function(){
- $db=$("input[name='db']").val();
- $table=$("input[name='table']").val();
- $token=$("input[name='token']").val();
- $sql_query=$("input[name='sql_query']").val();
-
-$(".syntax").replaceWith("");
- return false;
- });
+ var $oldText,$db,$table,$token,$sql_query;
+ $oldText=$(".syntax").html();
+ $("#inline_edit").click(function(){
+ $db=$("input[name='db']").val();
+ $table=$("input[name='table']").val();
+ $token=$("input[name='token']").val();
+ $sql_query=$("input[name='sql_query']").val();
+ $(".syntax").replaceWith("");
+ return false;
+ });
-$("#btnSave").live("click",function(){
- window.location.replace("import.php?db="+$db+"&table="+$table+"&sql_query="+$("#sql_query_edit").val()+"&show_query=1&token="+$token+"");
- });
-
- $("#btnDiscard").live("click",function(){
- $(".sql").html(""+$oldText+"");
- });
-});
\ No newline at end of file
+ $("#btnSave").live("click",function(){
+ window.location.replace("import.php?db="+$db+"&table="+$table+"&sql_query="+$("#sql_query_edit").val()+"&show_query=1&token="+$token+"");
+ });
+
+ $("#btnDiscard").live("click",function(){
+ $(".sql").html(""+$oldText+"");
+ });
+});