mirror of
https://github.com/github/choosealicense.com
synced 2024-11-05 11:18:50 +01:00
Merge pull request #232 from github/copy-to-clipboard-firefox
Use W3C compliant `textContent` instead of `innerText
This commit is contained in:
commit
6a220e589a
@ -90,11 +90,11 @@ class Choosealicense
|
||||
|
||||
# Callback to restore the clipboard button's original text
|
||||
clipboardMouseout: (client, args) ->
|
||||
@innerText = $(this).data("clipboard-prompt")
|
||||
@textContent = $(this).data("clipboard-prompt")
|
||||
|
||||
# Post-copy user feedback callback
|
||||
clipboardComplete: (client, args) ->
|
||||
@innerText = "Copied!"
|
||||
@textContent = "Copied!"
|
||||
|
||||
# Initializes pill navigation for license variations
|
||||
initLicenseVariationNav: ->
|
||||
|
Loading…
Reference in New Issue
Block a user