[SSE mobile] Add Sort into Filter Options

This commit is contained in:
Julia Svinareva 2019-06-19 11:06:36 +03:00
parent b1547a601d
commit ee8e572cce
2 changed files with 18 additions and 0 deletions

View file

@ -152,6 +152,8 @@ define([
this.setClearDisable();
$clearFilter.single('click', _.bind(me.onClickClearFilter, me));
$deleteFilter.single('click', _.bind(me.onClickDeleteFilter, me));
$('.sortdown').single('click', _.bind(me.onClickSort, me, 'down'));
$('.sortup').single('click', _.bind(me.onClickSort, me, 'up'));
this.setDataFilterCells();
},
@ -159,6 +161,10 @@ define([
dataFilter = config;
},
onClickSort: function(type) {
this.api.asc_sortColFilter(type == 'down' ? Asc.c_oAscSortOptions.Ascending : Asc.c_oAscSortOptions.Descending, '');
},
onClickClearFilter: function () {
var me = this;
if (me.api)

View file

@ -10,6 +10,18 @@
<div class="page" data-page="filter-root-view">
<div class="page-content">
<div class="list-block">
<ul><li>
<div class="item-content buttons">
<div class="item-inner">
<div class="row">
<a class="button no-ripple"><i class="icon sortdown"></i></a>
<a class="button no-ripple"><i class="icon sortup"></i></a>
</div>
</div>
</div>
</li></ul>
</div>
<div class="list-block list-center">
<ul>
<li id="btn-clear-filter">
<div class="item-content">