zoninator
zoninator copied to clipboard
Send empty set when search yields no results
When a search for content yields no results, Zoninator exits without sending a response. jQuery interprets this response to represent a failed request (I believe because it interprets it as malformed JSON) and never fires the "success" callback that removes the loading spinner, making it look to the user as though they're still waiting for search results. Sending an empty array back to the browser appears to address this issue.