Revert "in 14 the click action gets lost in the Backbone view."

This commit is contained in:
Morris Jobke 2018-10-09 15:33:01 +02:00 committed by GitHub
parent 877823eb9d
commit ddfc362779
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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;
}
});
}

View File

@ -56,6 +56,7 @@
* references the SystemTagsInfoView to associate to this toggle view.
*/
initialize: function(options) {
var self = this;
options = options || {};
this._systemTagsInfoView = options.systemTagsInfoView;