Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-08-21 17:28:37 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-08-21 17:28:37 +0300
commit21457fc9bd399f46da5bd6bd61a3e79fd29d06b1 (patch)
tree1a6d8cd849c672c21e3165ff5819cb51bd6ae31f /apps/systemtags
parenteba447987c7b531a6626d0639b9730de1d28b809 (diff)
in 14 the click action gets lost in the Backbone view.
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/systemtags')
-rw-r--r--apps/systemtags/js/filesplugin.js4
-rw-r--r--apps/systemtags/js/systemtagsinfoviewtoggleview.js1
2 files changed, 2 insertions, 3 deletions
diff --git a/apps/systemtags/js/filesplugin.js b/apps/systemtags/js/filesplugin.js
index fc2a227b5be..ca706775121 100644
--- a/apps/systemtags/js/filesplugin.js
+++ b/apps/systemtags/js/filesplugin.js
@@ -49,10 +49,10 @@
systemTagsInfoViewToggleView.$el.detach();
});
systemTagsInfoViewToggleView.listenTo(detailView, 'post-render', function() {
+ var clicker = _.bind(systemTagsInfoViewToggleView.click, systemTagsInfoViewToggleView);
+ systemTagsInfoViewToggleView.$el.click(clicker);
detailView.$el.find('.file-details').append(systemTagsInfoViewToggleView.$el);
});
-
- return;
}
});
}
diff --git a/apps/systemtags/js/systemtagsinfoviewtoggleview.js b/apps/systemtags/js/systemtagsinfoviewtoggleview.js
index 13a48e49cfb..fabff56d031 100644
--- a/apps/systemtags/js/systemtagsinfoviewtoggleview.js
+++ b/apps/systemtags/js/systemtagsinfoviewtoggleview.js
@@ -62,7 +62,6 @@
* references the SystemTagsInfoView to associate to this toggle view.
*/
initialize: function(options) {
- var self = this;
options = options || {};
this._systemTagsInfoView = options.systemTagsInfoView;