silverstripe-scienceninjas/silverstripe-cms — comment on commit 7ad9eff0d01173cd557f10cfb25ae44e71c13a73
File: javascript/AssetAdmin.js line 64
By chillu:

Case in point: This form behaviour will be used in many places (AssetAdmin, SecurityAdmin, ModelAdmin at least).
So it should probably move to LeftAndMain.js, and have a selector like ".cms-filter-form".
The field serialization should be its own getter so it can be overloaded without writing the whole onsubmit() again.

Maybe we'll end up attaching onsubmit handlers based on component visibility of the list/tree/gallery view
instead, so turn around the relationship (and avoid hardcoding selectors in the onsubmit()),
but that's better left until we know what the ominous "gallery field" will look like.