diff options
author | Michal Čihař <mcihar@suse.cz> | 2013-07-30 16:32:34 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2013-07-30 16:36:43 +0400 |
commit | 5263a051692ce51fcdecdf7fe9a08c9232d3c5ab (patch) | |
tree | 30d13088cbc0df5329a2d681301f9a96dc984033 /js/tbl_relation.js | |
parent | c1da6e51f7d264894c3ae95acf522b58801f70a4 (diff) |
Correct spacing of functions
Diffstat (limited to 'js/tbl_relation.js')
-rw-r--r-- | js/tbl_relation.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/tbl_relation.js b/js/tbl_relation.js index 2925096ceb..a2b6bddf01 100644 --- a/js/tbl_relation.js +++ b/js/tbl_relation.js @@ -60,13 +60,13 @@ function getDropdownValues($dropdown) { + '&table=' + $form.find('input[name="table"]').val() + '&foreign=' + (foreign != '') + '&foreignDb=' + encodeURIComponent(foreignDb) - + (foreignTable !== null ? + + (foreignTable !== null ? '&foreignTable=' + encodeURIComponent(foreignTable) : '' ); $.ajax({ url: url, datatype: 'json', - success: function(data) { + success: function (data) { PMA_ajaxRemoveMessage($msgbox); if (data.success) { // if the changed dropdown is a database selector @@ -90,7 +90,7 @@ function setDropdownValues($dropdown, values) { var optionsAsString = ''; // add an empty string to the beginning for empty selection values.unshift(''); - $.each(values, function() { + $.each(values, function () { optionsAsString += "<option value='" + this + "'>" + this + "</option>"; }) $dropdown.append($(optionsAsString)); @@ -121,7 +121,7 @@ AJAX.registerOnload('tbl_relation.js', function () { + ' select[name^="destination_table"],' + ' select[name^="destination_foreign_db"],' + ' select[name^="destination_foreign_table"]') - .change(function() { + .change(function () { getDropdownValues($(this)); }); }); |