diff options
author | Raimund Schlüßler <raimund.schluessler@mailbox.org> | 2019-09-10 22:01:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-10 22:01:08 +0300 |
commit | 50fc89adcc3e928f3dadeaafab78fafc9f3292a1 (patch) | |
tree | 760386fdd7a9451f8bcd9554cbde749297fcbbf0 /src/main.js | |
parent | aa2442259b9145603a3f621807a0f18ac7217584 (diff) | |
parent | ed2d258ced411441d1721c0a65cca24f88e18fa5 (diff) |
Merge pull request #600 from nextcloud/cleanup
Remove legacy search code
Diffstat (limited to 'src/main.js')
-rw-r--r-- | src/main.js | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/main.js b/src/main.js index b7a00d28..398623c1 100644 --- a/src/main.js +++ b/src/main.js @@ -80,19 +80,7 @@ OCA.Tasks.App = new Vue({ } }, mounted: function() { - var version = this.$OC.config.version.split('.') - - if (version[0] >= 14) { - this.$OC.Search = new OCA.Search(this.filter, this.cleanSearch) - } else { - this.$OCA.Tasks.Search = { - attach: function(search) { - search.setFilter('tasks', this.filter) - } - } - - this.$OC.Plugins.register('OCA.Search', this.$OCA.Tasks.Search) - } + this.$OC.Search = new OCA.Search(this.filter, this.cleanSearch) }, beforeMount() { // Configure the locale of moment.js |