[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_0BETA2-2070-gd0e1776

Marc Delisle lem9 at users.sourceforge.net
Wed Feb 9 11:53:26 CET 2011


The branch, master has been updated
       via  d0e1776af64acc185ab3a1260fc50d7bb7b98e6c (commit)
      from  dcc3eafd1275c6433b1289cf8bc8ecd9be3285e2 (commit)


- Log -----------------------------------------------------------------
commit d0e1776af64acc185ab3a1260fc50d7bb7b98e6c
Author: Marc Delisle <marc at infomarc.info>
Date:   Wed Feb 9 05:52:16 2011 -0500

    Correctly handle the ENUM editor message in case a column is added
    Add PMA_ prefix to function name

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

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

diff --git a/js/functions.js b/js/functions.js
index c1a6b26..07c6237 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -1556,7 +1556,7 @@ function PMA_ajaxShowMessage(message, timeout) {
 /**
  * Hides/shows the "Open in ENUM/SET editor" message, depending on the data type of the column currently selected
  */
-function showNoticeForEnum(selectElement) {
+function PMA_showNoticeForEnum(selectElement) {
     var enum_notice_id = selectElement.attr("id").split("_")[1];
     enum_notice_id += "_" + (parseInt(selectElement.attr("id").split("_")[2]) + 1);
     var selectedType = selectElement.attr("value");
@@ -1832,6 +1832,7 @@ $(document).ready(function() {
             if ($("#create_table_div").length > 0) {
                 $("#create_table_div").html(data);
             }
+            PMA_verifyTypeOfAllColumns();
         }) //end $.post()
 
     }) // end create table form (add fields)
@@ -2041,13 +2042,13 @@ $(document).ready(function() {
     //
     // needs live() to work also in the Create Table dialog
     $("select[class='column_type']").live('change', function() {
-        showNoticeForEnum($(this));
+        PMA_showNoticeForEnum($(this));
     });
 });
 
 function PMA_verifyTypeOfAllColumns() {
     $("select[class='column_type']").each(function() {
-        showNoticeForEnum($(this));
+        PMA_showNoticeForEnum($(this));
     });
 }
 


hooks/post-receive
-- 
phpMyAdmin




More information about the Git mailing list