diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-10-08 18:14:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-08 18:14:00 +0300 |
commit | c4ac9bcea2deb97d90576233557b1a23907e2e5a (patch) | |
tree | 158cce320560a4cf979f69acdda0962491d91102 /apps/systemtags/js | |
parent | fe2a60082334f53d75411bd8c05928778afadc04 (diff) | |
parent | 21457fc9bd399f46da5bd6bd61a3e79fd29d06b1 (diff) |
Merge pull request #10782 from nextcloud/fix/10774/deadtagaction
in 14 the click action gets lost in the Backbone view.
Diffstat (limited to 'apps/systemtags/js')
-rw-r--r-- | apps/systemtags/js/filesplugin.js | 4 | ||||
-rw-r--r-- | apps/systemtags/js/systemtagsinfoviewtoggleview.js | 1 |
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 a3261e7994d..ec9ac1a216b 100644 --- a/apps/systemtags/js/systemtagsinfoviewtoggleview.js +++ b/apps/systemtags/js/systemtagsinfoviewtoggleview.js @@ -56,7 +56,6 @@ * references the SystemTagsInfoView to associate to this toggle view. */ initialize: function(options) { - var self = this; options = options || {}; this._systemTagsInfoView = options.systemTagsInfoView; |