Some TODO's

This commit is contained in:
Jamie.Rees 2017-01-12 08:39:52 +00:00
commit 32f044b4da
2 changed files with 29 additions and 2 deletions

View file

@ -30,6 +30,26 @@ var mixItUpDefault = {
},
callbacks: {
onMixStart: function (state, futureState) {
//futureState.activeSort // sort
//futureState.activeFilter // next filter
// The below is TODO for saving the users filter and sort order
//var url = createBaseUrl(base, '/requests/UpdateFilters');
//$.ajax({
// type: 'post',
// url: url,
// data: {sort:futureState.activeSort, filter:futureState.activeFilte},
// dataType: "json",
// success: function (response) {
// console.log("saved filter and sort order");
// },
// error: function (e) {
// console.log(e);
// generateNotify("Something went wrong saving your filter!", "danger");
// }
//});
$('.mix', this).removeAttr('data-bound').removeData('bound'); // fix for animation issues in other tabs
}
}