mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
The search was using !$.inArray when the expression should be $.inArray === -1 since it returns the index of the value in the array. Also tidied up the code so it is easier to read. Fixes #1918