[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_1-2941-g42e1fc1

Michal Čihař nijel at users.sourceforge.net
Thu Jun 2 17:01:36 CEST 2011


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


- Log -----------------------------------------------------------------
commit 42e1fc1533941c86b6f1017cf899ca41f29dbb06
Author: Michal Čihař <mcihar at novell.com>
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




More information about the Git mailing list