owncloud/core — pull request #12555 by butonic (2014-12-02 16:36:18+00:00)
Title: introduce inApps[] filter for search via ajax query

Make file results show up in files app only, allows limiting search results to specific apps. see https://github.com/owncloud/core/issues/821

Gracefully handles old apps that don't set the apps option for a search provider.

@PVince81 do we have a JS api to get the currently active app? I currently use `var classList = document.getElementById('content').className.split(/\s+/);` and grab the first class starting with 'app-' ... but that seems hackish to me.

PRs for contacts, calendar and other apps to follow.