From bcab6e09c0bb00bfdbc7a9329b45dff3825364b1 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 19 Mar 2018 11:23:10 +0100 Subject: [PATCH] Fix undefined this.connection when creating a room Signed-off-by: Joas Schilling --- js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index 4de7818e57..42882cb188 100644 --- a/js/app.js +++ b/js/app.js @@ -68,7 +68,7 @@ dataType: 'json', quietMillis: 100, data: function (term) { - OCA.SpreedMe.app._searchTerm = term; + this._searchTerm = term; return { format: 'json', search: term, @@ -164,7 +164,7 @@ console.log("Unknown type", e.object.type); break; } - }); + }.bind(this)); $('#select-participants').on("select2-loaded", function() { $('.select2-drop').find('.avatar').each(function () {