function wpuf_custom_fields() { $action = isset($_GET['action']) ? $_GET['action'] : ''; switch ($action) { case 'edit': wpuf_custom_fields_edit(); break; default: wpuf_custom_fields_main(); break; } ?> <script type="text/javascript"> function wpuf_show(el){ var d = jQuery('#wpuf_field_values_row'); if(jQuery(el).val() == 'select') { d.show(); } else { d.hide(); } } //tooltip function jQuery(document).ready(function($) { $('.wpuf-admin #type').change(); }); </script> <?php }
function wpuf_custom_fields() { $action = isset($_GET['action']) ? $_GET['action'] : ''; switch ($action) { case 'edit': wpuf_custom_fields_edit(); break; default: wpuf_custom_fields_main(); break; } }