diff options
author | Michal Čihař <mcihar@suse.cz> | 2013-10-02 14:07:06 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2013-10-02 14:07:15 +0400 |
commit | 50deebcbdfe765e8b3566787655bd079d354ece9 (patch) | |
tree | bbbf95c26c31a74f802ab16878bcb81704ba83e3 /js/rte.js | |
parent | 0040765b4e0d032da97b1bccb2ea0073a7537bb4 (diff) |
Coding style: Bad line breaking before logical operators
Diffstat (limited to 'js/rte.js')
-rw-r--r-- | js/rte.js | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -278,8 +278,9 @@ RTE.COMMON = { }); // If this is the first item being added, remove // the "No items" message and show the list. - if ($('table.data').find('tr').has('td').length > 0 - && $('#nothing2display').is(':visible')) { + if ($('table.data').find('tr').has('td').length > 0 && + $('#nothing2display').is(':visible') + ) { $('#nothing2display').hide("slow", function () { $('table.data').show("slow"); }); @@ -526,8 +527,9 @@ RTE.ROUTINE = { var $inputtyp = $(this).find('select[name^=item_param_type]'); var $inputlen = $(this).find('input[name^=item_param_length]'); if ($inputtyp.length && $inputlen.length) { - if (($inputtyp.val() === 'ENUM' || $inputtyp.val() === 'SET' || $inputtyp.val().substr(0, 3) === 'VAR') - && $inputlen.val() === '') { + if (($inputtyp.val() === 'ENUM' || $inputtyp.val() === 'SET' || $inputtyp.val().substr(0, 3) === 'VAR') && + $inputlen.val() === '' + ) { $inputlen.focus(); isSuccess = false; return false; @@ -543,8 +545,9 @@ RTE.ROUTINE = { // be set, if the type is SET, ENUM, VARCHAR or VARBINARY. var $returntyp = this.$ajaxDialog.find('select[name=item_returntype]'); var $returnlen = this.$ajaxDialog.find('input[name=item_returnlength]'); - if (($returntyp.val() === 'ENUM' || $returntyp.val() === 'SET' || $returntyp.val().substr(0, 3) === 'VAR') - && $returnlen.val() === '') { + if (($returntyp.val() === 'ENUM' || $returntyp.val() === 'SET' || $returntyp.val().substr(0, 3) === 'VAR') && + $returnlen.val() === '' + ) { $returnlen.focus(); alert(PMA_messages.strFormEmpty); return false; |