Cleanup of po files.
[phpmyadmin/dkf.git] / js / tbl_relation.js
blob5cdb0d7d9f7c8db5b412b146d7c0e3d02c4151b2
1 /* vim: set expandtab sw=4 ts=4 sts=4: */
2 /**
3 * for tbl_relation.php
5 */
6 function show_hide_clauses(thisDropdown) {
7 // here, one span contains the label and the clause dropdown
8 // and we have one span for ON DELETE and one for ON UPDATE
9 //
10 if (thisDropdown.val() != '') {
11 thisDropdown.parent().next('span').show().next('span').show();
12 } else {
13 thisDropdown.parent().next('span').hide().next('span').hide();
17 $(document).ready(function() {
18 // initial display
19 $('.referenced_column_dropdown').each(function(index, one_dropdown) {
20 show_hide_clauses($(one_dropdown));
21 });
22 // change
23 $('.referenced_column_dropdown').change(function() {
24 show_hide_clauses($(this));
25 });
26 });