K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / usr / share / phpmyadmin / js /
server ip : 172.67.156.115

your ip : 172.70.100.13

H O M E


Filename/usr/share/phpmyadmin/js/tbl_relation.js
Size942
Permissionrw-r--r--
Ownerroot : root
Create time27-Apr-2025 10:12
Last modified05-Dec-2013 01:44
Last accessed05-Jul-2025 22:43
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* for tbl_relation.php
*
*/
function show_hide_clauses($thisDropdown)
{
// here, one span contains the label and the clause dropdown
// and we have one span for ON DELETE and one for ON UPDATE
//
if ($thisDropdown.val() != '') {
$thisDropdown.parent().nextAll('span').show();
} else {
$thisDropdown.parent().nextAll('span').hide();
}
}

/**
* Unbind all event handlers before tearing down a page
*/
AJAX.registerTeardown('tbl_relation.js', function() {
$('select.referenced_column_dropdown').unbind('change');
});

AJAX.registerOnload('tbl_relation.js', function() {
// initial display
$('select.referenced_column_dropdown').each(function(index, one_dropdown) {
show_hide_clauses($(one_dropdown));
});
// change
$('select.referenced_column_dropdown').change(function() {
show_hide_clauses($(this));
});
});