$(
'.show_more_saved').
off().
on(
"click",
$.
proxy(
function(){
$(
'.saved_filter_tile.afterfour').
css(
'display',
'flex');
$(
'.show_more_saved').
text(
$(
'.show_more_saved').
text().
replace(
"View more",
"View less"));
$(
'.show_more_saved').
addClass(
'show_less_saved');
$(
'.show_more_saved').
removeClass(
'show_more_saved');
},
this));
$(
'.show_less_saved').
off().
on(
"click",
$.
proxy(
function(){
console.
log(
'hello');
$(
'.saved_filter_tile.afterfour').
css(
'display',
'none');
$(
'.show_less_saved').
text(
$(
'.show_less_saved').
text().
replace(
"View less",
"View more"));
$(
'.show_less_saved').
addClass(
'show_more_saved');
$(
'.show_less_saved').
removeClass(
'show_less_saved');
},
this));