Commit 07e76a57 authored by XhmikosR's avatar XhmikosR

Redo changes needed to hide Copy button.

parent 438cae9d
This diff is collapsed.
...@@ -145,7 +145,7 @@ ...@@ -145,7 +145,7 @@
.data('placement', 'top') .data('placement', 'top')
.attr('title', 'Copy to clipboard') .attr('title', 'Copy to clipboard')
.tooltip() .tooltip()
})
// Copy to clipboard // Copy to clipboard
zeroClipboard.on('dataRequested', function (client) { zeroClipboard.on('dataRequested', function (client) {
...@@ -162,13 +162,13 @@ ...@@ -162,13 +162,13 @@
.attr('title', 'Copy to clipboard') .attr('title', 'Copy to clipboard')
.tooltip('fixTitle') .tooltip('fixTitle')
}) })
})
// Notify copy failure // Hide copy button when no Flash is found
// or wrong Flash version is present
zeroClipboard.on('noflash wrongflash', function () { zeroClipboard.on('noflash wrongflash', function () {
htmlBridge $('.zero-clipboard').remove()
.attr('title', 'Flash required') ZeroClipboard.destroy()
.tooltip('fixTitle')
.tooltip('show')
}) })
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment