Skip to content

Commit

Permalink
Clean up some code smells discovered by Sonar Quebe
Browse files Browse the repository at this point in the history
  • Loading branch information
johnf committed Oct 28, 2023
1 parent e26fe56 commit 576f7df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
10 changes: 2 additions & 8 deletions app/assets/stylesheets/_layout_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ body.bp {
margin-bottom: 8px;
width: 100%;
box-sizing: border-box;
-moz-box-sizing: border-box;
legend {
font-size: 18px;
text-shadow: grey 2px 2px 3px;
Expand Down Expand Up @@ -322,8 +321,7 @@ body.bp {
padding: 4px 0;
border: solid 1px #E5E5E5;
box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 8px;
background: -webkit-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px);
background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px);
background: linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px);
}

select.bool {
Expand Down Expand Up @@ -353,10 +351,7 @@ body.bp {
border: solid 1px #E5E5E5;
background: #FFFFFF;
box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 8px;
background: -webkit-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px);
background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px);
background: -ms-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px);
background: -o-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px);
background: linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px);
&:hover, &:focus {
box-shadow: rgba(0, 0, 0, 0.25) 0px 0px 8px;
}
Expand All @@ -371,7 +366,6 @@ body.bp {
input[type="text"], input[type="email"], input[type="password"], textarea {
width: 100%;
box-sizing: border-box;
-moz-box-sizing: border-box;
padding: 7px;
margin: 0 7px 0 0;
&#search {
Expand Down
6 changes: 0 additions & 6 deletions app/javascript/custom/query_builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,23 +94,17 @@ $(function () {
switch (typeForField) {
case 'boolean':
return replaceWithBooleanInput(valueField);
break;
case 'number':
return replaceWithNumber(valueField);
break;
case 'date':
return replaceWithDateInput(valueField);
break;
case 'collection':
return replaceWithCollection(valueField, fieldName);
break;
case 'autocomplete':
return replaceWithAutocomplete(valueField, fieldName);
break;
case 'text':
default:
return replaceWithTextInput(valueField);
break;
}
}
$(document).on('change', '.operator', function() {
Expand Down

0 comments on commit 576f7df

Please sign in to comment.