Menu

#4835 (ok 4.4.2) tbl_create: PMA_hideShowConnection not called after submit_num_fields

4.4.0
fixed
None
Low
2015-04-13
2015-04-03
No

In tbl_create.php, field 'Connection' shows up after adding a field by 'Add columns' (top of screen) - storage engine = MyISAM. Because this field seems to be 'required', it can be troublesome. After selecting a storage engine (left of it), it disappears.

I tracked down the affected code parts:
/functions.js
r2658-2683: event handler for 'submit_num_fields'
r2856-2861: AJAX.registerTeardown('functions.js', [...]
removes listeners
r2866-2884: AJAX.registerOnload('functions.js' [...]
sets listener: PMA_hideShowConnection for tbl_storage_engine selectbox
r2891-2907: function PMA_hideShowConnection($engine_selector) [...]
event handler for Connection field show/hide

I think inserting in event-handler 'submit_num_fields' is the solution for it. Nice spot is after PMA_verifyColumnsProperties() method.
Something like:
PMA_hideShowConnection($('.create_table_form select[name=tbl_storage_engine]'));

Discussion

  • Madhura Jayaratne

    • assigned_to: Madhura Jayaratne
     
  • Madhura Jayaratne

    • summary: tbl_create: PMA_hideShowConnection not called after submit_num_fields --> (ok 4.4.1) tbl_create: PMA_hideShowConnection not called after submit_num_fields
    • status: open --> resolved
    • Priority: Normal --> Low
     
  • Marc Delisle

    Marc Delisle - 2015-04-03
    • summary: (ok 4.4.1) tbl_create: PMA_hideShowConnection not called after submit_num_fields --> (ok 4.4.2) tbl_create: PMA_hideShowConnection not called after submit_num_fields
     
  • Marc Delisle

    Marc Delisle - 2015-04-13
    • Status: resolved --> fixed
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.