Skip to content

Commit

Permalink
dropdown on gis-search-form
Browse files Browse the repository at this point in the history
  • Loading branch information
TeterinaSvetlana committed Nov 11, 2021
1 parent 926fc0f commit 43003c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
12 changes: 0 additions & 12 deletions addon/controllers/gis-search-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,18 +280,6 @@ export default Controller.extend({
|| (key >= 48 && key <= 57) || (key >= 96 && key <= 105));
},

/**
Handles scale condition changing.
@method actions.onScaleConditionChange
@param {String} index Index of selected element.
@param {Object} element Selected element.
@param {String} value Selected value.
*/
onScaleConditionChange(index, element, value) {
this.set(`searchConditions.scaleFilters.${index}.condition`, value);
},

/**
Handles click on row select checkbox.
Expand Down
7 changes: 4 additions & 3 deletions app/templates/gis-search-form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@
<div class="scale-filters">
{{#each searchConditions.scaleFilters as |filter index|}}
<div class="scale-filter">
<label>
{{filter.condition}}
</label>
{{flexberry-dropdown
class="compact selection"
items=scaleFilterConditions
value=value
displayCaptions=filter.condition
onChange=(action "onScaleConditionChange" index)
value=index
}}
{{t "forms.gis-search-form.scale-prefix"}}
{{flexberry-dropdown-input
Expand Down

0 comments on commit 43003c3

Please sign in to comment.