start of noo for Search, and rewrite of GetEnt* to use eval(), search and flat done, but also fixed OLD bug I just noticed where prev/next buttons would not work when sorting by "A to Z", etc. as the value of the form.input has a space in it and serializeArray() was not dealing with it properly

This commit is contained in:
2022-01-29 18:06:21 +11:00
parent 8722448f2d
commit 8e82271e2a
5 changed files with 121 additions and 83 deletions

View File

@@ -1,3 +1,11 @@
// this is needed as serliazeArray doesnt handle spaces in values
// so we wrap it in this func
$.fn.serializeAndEncode = function() {
return $.map(this.serializeArray(), function(val) {
return [val.name, encodeURIComponent(val.value)].join('=');
}).join('&');
};
// grab all selected thumbnails and return a <div> containing the thumbnails
// with extra yr and date attached as attributes so we can set the default
// dir name for a move directory - not used in del, but no harm to include them