aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-08-21 16:28:37 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-08-21 16:28:37 +0200
commit21457fc9bd399f46da5bd6bd61a3e79fd29d06b1 (patch)
tree1a6d8cd849c672c21e3165ff5819cb51bd6ae31f /apps
parenteba447987c7b531a6626d0639b9730de1d28b809 (diff)
downloadnextcloud-server-21457fc9bd399f46da5bd6bd61a3e79fd29d06b1.tar.gz
nextcloud-server-21457fc9bd399f46da5bd6bd61a3e79fd29d06b1.zip
in 14 the click action gets lost in the Backbone view.
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps')
-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;