Replaces ZeroClipboard with clipboard.

Based on: c7ae9c6eeb
This commit is contained in:
Jens Schauder
2017-05-22 11:00:05 +02:00
parent 42b18ed624
commit b43a75a5b8
5 changed files with 37 additions and 23 deletions

View File

@@ -107,9 +107,7 @@ Spring.SnippetView = Backbone.View.extend({
var html = $(this.combinedTemplate(this.model));
this.$el.html(html);
if (ZeroClipboard.detectFlashSupport()) {
Spring.buildCopyButton(html.find(":first"), "snippet");
}
Spring.buildCopyButton(html.find(":first"), "snippet");
return this;
},