[TECHNICAL-SUPPORT] LPS-33071 Manually entered values as Custom Ranges can cause ArrayIndexOutOfBoundsException in Search Portlet Modified facet

Hey Iliyan,

I have modified the code to work properly based on our discussion.

Now, it is aware of which field fired 'errorField' or 'validField' event and we can change the corresponding variable accordingly.

Form submitting (searchButton) is enabled, only when both fields are valid.

I have also added "disabled" attribute to "searchButton", to disable or enable it on server side before rendering the page.

Please, review my changes.

tested browsers: (host OS: Ubuntu 12.04 64-bit)
- Google Chrome 25.0.1364.97
- Google Chrome 25.0.1364.97 m (on Win7 64-bit vm)
- IE 9.0.8112.16421 (on Win7 64-bit vm)
- IE 8 (on WinXP 32-bit vm)
- IE 7.0.5730.13 32-bit (on WinXP 32-bit vm)
- Mozilla Firefox 3.6.27 (on WinXP 32-bit vm)
- Mozilla Firefox 19.0 for Canonical Ubuntu
- Mozilla Firefox 19.0 (on Win7 64-bit vm)

Thanks,
Tibor