The branch, master has been updated
       via  42e1fc1533941c86b6f1017cf899ca41f29dbb06 (commit)
      from  ee481df7c8f21809da28e53933dff3239d1d880b (commit)


- Log -----------------------------------------------------------------
commit 42e1fc1533941c86b6f1017cf899ca41f29dbb06
Author: Michal Čihař <[email protected]>
Date:   Thu Jun 2 17:01:17 2011 +0200

    Fix detection whether there is SQL editor to handle

-----------------------------------------------------------------------

Summary of changes:
 js/functions.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/js/functions.js b/js/functions.js
index a8595a1..fdae296 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -2396,7 +2396,7 @@ $(document).ready(function() {
  */
 $(document).ready(function() {
     var elm = $('#sqlquery');
-    if (elm) {
+    if (elm.length > 0) {
         codemirror_editor = CodeMirror.fromTextArea(elm[0], {lineNumbers: 
true, matchBrackets: true, indentUnit: 4, mode: "text/x-mysql"});
     }
 })


hooks/post-receive
-- 
phpMyAdmin

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Phpmyadmin-git mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-git

Reply via email to