mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-18 11:21:23 +02:00
Redo changes needed to hide Copy button.
This commit is contained in:
18
docs/assets/js/docs.min.js
vendored
18
docs/assets/js/docs.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -145,30 +145,30 @@
|
|||||||
.data('placement', 'top')
|
.data('placement', 'top')
|
||||||
.attr('title', 'Copy to clipboard')
|
.attr('title', 'Copy to clipboard')
|
||||||
.tooltip()
|
.tooltip()
|
||||||
|
|
||||||
|
|
||||||
|
// Copy to clipboard
|
||||||
|
zeroClipboard.on('dataRequested', function (client) {
|
||||||
|
var highlight = $(this).parent().nextAll('.highlight').first()
|
||||||
|
client.setText(highlight.text())
|
||||||
|
})
|
||||||
|
|
||||||
|
// Notify copy success and reset tooltip title
|
||||||
|
zeroClipboard.on('complete', function () {
|
||||||
|
htmlBridge
|
||||||
|
.attr('title', 'Copied!')
|
||||||
|
.tooltip('fixTitle')
|
||||||
|
.tooltip('show')
|
||||||
|
.attr('title', 'Copy to clipboard')
|
||||||
|
.tooltip('fixTitle')
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
// Copy to clipboard
|
// Hide copy button when no Flash is found
|
||||||
zeroClipboard.on('dataRequested', function (client) {
|
// or wrong Flash version is present
|
||||||
var highlight = $(this).parent().nextAll('.highlight').first()
|
|
||||||
client.setText(highlight.text())
|
|
||||||
})
|
|
||||||
|
|
||||||
// Notify copy success and reset tooltip title
|
|
||||||
zeroClipboard.on('complete', function () {
|
|
||||||
htmlBridge
|
|
||||||
.attr('title', 'Copied!')
|
|
||||||
.tooltip('fixTitle')
|
|
||||||
.tooltip('show')
|
|
||||||
.attr('title', 'Copy to clipboard')
|
|
||||||
.tooltip('fixTitle')
|
|
||||||
})
|
|
||||||
|
|
||||||
// Notify copy failure
|
|
||||||
zeroClipboard.on('noflash wrongflash', function () {
|
zeroClipboard.on('noflash wrongflash', function () {
|
||||||
htmlBridge
|
$('.zero-clipboard').remove()
|
||||||
.attr('title', 'Flash required')
|
ZeroClipboard.destroy()
|
||||||
.tooltip('fixTitle')
|
|
||||||
.tooltip('show')
|
|
||||||
})
|
})
|
||||||
|
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user