[SSE mobile] Add Sort into Filter Options
This commit is contained in:
parent
b1547a601d
commit
ee8e572cce
|
@ -152,6 +152,8 @@ define([
|
||||||
this.setClearDisable();
|
this.setClearDisable();
|
||||||
$clearFilter.single('click', _.bind(me.onClickClearFilter, me));
|
$clearFilter.single('click', _.bind(me.onClickClearFilter, me));
|
||||||
$deleteFilter.single('click', _.bind(me.onClickDeleteFilter, 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();
|
this.setDataFilterCells();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -159,6 +161,10 @@ define([
|
||||||
dataFilter = config;
|
dataFilter = config;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onClickSort: function(type) {
|
||||||
|
this.api.asc_sortColFilter(type == 'down' ? Asc.c_oAscSortOptions.Ascending : Asc.c_oAscSortOptions.Descending, '');
|
||||||
|
},
|
||||||
|
|
||||||
onClickClearFilter: function () {
|
onClickClearFilter: function () {
|
||||||
var me = this;
|
var me = this;
|
||||||
if (me.api)
|
if (me.api)
|
||||||
|
|
|
@ -10,6 +10,18 @@
|
||||||
<div class="page" data-page="filter-root-view">
|
<div class="page" data-page="filter-root-view">
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<div class="list-block">
|
<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>
|
<ul>
|
||||||
<li id="btn-clear-filter">
|
<li id="btn-clear-filter">
|
||||||
<div class="item-content">
|
<div class="item-content">
|
||||||
|
|
Loading…
Reference in a new issue