Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js/rte.js
diff options
context:
space:
mode:
authorMichal Čihař <mcihar@suse.cz>2013-10-02 14:07:06 +0400
committerMichal Čihař <mcihar@suse.cz>2013-10-02 14:07:15 +0400
commit50deebcbdfe765e8b3566787655bd079d354ece9 (patch)
treebbbf95c26c31a74f802ab16878bcb81704ba83e3 /js/rte.js
parent0040765b4e0d032da97b1bccb2ea0073a7537bb4 (diff)
Coding style: Bad line breaking before logical operators
Diffstat (limited to 'js/rte.js')
-rw-r--r--js/rte.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/js/rte.js b/js/rte.js
index 6d068aa735..569931ce7f 100644
--- a/js/rte.js
+++ b/js/rte.js
@@ -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;