The branch, master has been updated
via d0e1776af64acc185ab3a1260fc50d7bb7b98e6c (commit)
from dcc3eafd1275c6433b1289cf8bc8ecd9be3285e2 (commit)
- Log -----------------------------------------------------------------
commit d0e1776af64acc185ab3a1260fc50d7bb7b98e6c
Author: Marc Delisle <[email protected]>
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
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Phpmyadmin-git mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-git