[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_3_7-10543-g8eec123
Marc Delisle
lem9 at users.sourceforge.net
Fri Oct 8 18:53:19 CEST 2010
The branch, master has been updated
via 8eec123dd8f45a45b7324ba0e89b0da0e688badd (commit)
from 7d9a0f439b01a5547c262a94363efaa4ad1dcbf5 (commit)
- Log -----------------------------------------------------------------
commit 8eec123dd8f45a45b7324ba0e89b0da0e688badd
Author: Marc Delisle <marc at infomarc.info>
Date: Fri Oct 8 12:53:06 2010 -0400
we should not prefix a js variable name with dollar sign unless it is a jQuery object
-----------------------------------------------------------------------
Summary of changes:
js/functions.js | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/js/functions.js b/js/functions.js
index 03cf186..57bbd88 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -1722,23 +1722,23 @@ 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=$(".inner_sql").html();
+ var oldText,db,table,token,sql_query;
+ oldText=$(".inner_sql").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();
- $(".inner_sql").replaceWith("<textarea name=\"sql_query_edit\" id=\"sql_query_edit\">"+ $sql_query +"</textarea><input type=\"button\" id=\"btnSave\" value=\"" + PMA_messages['strGo'] + "\"><input type=\"button\" id=\"btnDiscard\" value=\"" + PMA_messages['strCancel'] + "\">");
+ db=$("input[name='db']").val();
+ table=$("input[name='table']").val();
+ token=$("input[name='token']").val();
+ sql_query=$("input[name='sql_query']").val();
+ $(".inner_sql").replaceWith("<textarea name=\"sql_query_edit\" id=\"sql_query_edit\">"+ sql_query +"</textarea><input type=\"button\" id=\"btnSave\" value=\"" + PMA_messages['strGo'] + "\"><input type=\"button\" id=\"btnDiscard\" value=\"" + PMA_messages['strCancel'] + "\">");
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+"");
+ 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("<span class=\"syntax\"><span class=\"inner_sql\">"+$oldText+"</span></span>");
+ $(".sql").html("<span class=\"syntax\"><span class=\"inner_sql\">" + oldText + "</span></span>");
});
$('.sqlbutton').click(function(evt){
hooks/post-receive
--
phpMyAdmin
More information about the Git
mailing list