[Phpmyadmin-git] [SCM] phpMyAdmin branch, QA_3_4, updated. RELEASE_3_4_2-24-g9d2269d

Madhura Jayaratne madhuracj at users.sourceforge.net
Thu Jun 16 17:37:17 CEST 2011


The branch, QA_3_4 has been updated
       via  9d2269d297cdc04dfe19d29025afb28b87a83f66 (commit)
      from  99bae4acb9a94c93ca31c8d49eb9a771f34aad54 (commit)


- Log -----------------------------------------------------------------
commit 9d2269d297cdc04dfe19d29025afb28b87a83f66
Author: Madhura Jayaratne <madhura.cj at gmail.com>
Date:   Thu Jun 16 21:05:54 2011 +0530

    bug #3317293 [edit] Inline edit places HTML line breaks in edit area

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

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

diff --git a/ChangeLog b/ChangeLog
index 0ae3c2e..cc6ce50 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,7 @@ phpMyAdmin - ChangeLog
 - bug #3315720 [search] Fix search in non unicode tables
 - bug #3315741 [display] Inline query edit broken
 - patch #3317206 [privileges] Generate password option missing on new accounts
+- bug #3317293 [edit] Inline edit places HTML line breaks in edit area
 
 3.4.2.0 (2011-06-07)
 - bug #3301249 [interface] Iconic table operations does not remove inline edit label
diff --git a/js/sql.js b/js/sql.js
index 26075d4..e871c74 100644
--- a/js/sql.js
+++ b/js/sql.js
@@ -678,8 +678,10 @@ $(document).ready(function() {
             // and store the current value in a hidden span
             if($this_field.is(':not(.truncated, .transformed, .relation, .enum, .set, .null)')) {
                 // handle non-truncated, non-transformed, non-relation values
+
+                value = data_value.replace("<br>", "\n");
                 // We don't need to get any more data, just wrap the value
-                $this_field.append('<textarea>'+data_value+'</textarea>');
+                $this_field.append('<textarea>' + value + '</textarea>');
                 $this_field.data('original_data', data_value);
             }
             else if($this_field.is('.truncated, .transformed')) {


hooks/post-receive
-- 
phpMyAdmin




More information about the Git mailing list