私は自動ソートを機能させようとしていますが、それはページをロードするときにURLに設定されます:しかし、ページのロード時blah.com/?sorts[date]=-1
にすぐにソートされないため、ページを更新する必要があります。
$.ajax({
// Uncomment the following to send cross-domain cookies:
//xhrFields: {withCredentials: true},
url: $('#fileupload').fileupload('option', 'url'),
dataType: 'json',
context: $('#fileupload')[0]
}).always(function () {
$(this).removeClass('fileupload-processing');
}).done(function (result) {
$(this).fileupload('option', 'done').call(this, $.Event('done'), {result: result});
$('.table-striped').dynatable({
dataset: {
files: result,
ajaxData: {
sorts: { 'date': -1 }
}
}
});
});