wip PHRAS-681

This commit is contained in:
Florian BLOUET
2016-02-16 18:50:24 +01:00
parent 8eeec9c885
commit cfac4d7ecd
3 changed files with 22 additions and 7 deletions

View File

@@ -132,7 +132,8 @@ function checkFilters(save) {
bases: {},
fields: [],
dates: {},
status: []
status: [],
sort: {}
};
var adv_box = $('form.phrasea_query .adv_options');
@@ -220,6 +221,8 @@ function checkFilters(save) {
$("option.default-selection", fieldsSort).prop("selected", true);
$("option.default-selection", fieldsSortOrd).prop("selected", true);
}
search.sort.by = $("option:selected:enabled", fieldsSort).val();
search.sort.order = $("option:selected:enabled", fieldsSortOrd).val();
//--------- from fields filter ---------