Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ["#copy-user-button","#copy-password-button"].map (id)->
- copybtn = new ZeroClipboard $(id)
- copybtn.on 'ready', (readyEvent) ->
- $(id).attr("data-original-title", "click to copy")
- .tooltip()
- copybtn.on 'aftercopy', (event) ->
- $(id)
- .attr("data-original-title", "copied")
- .tooltip "show"
- .attr("data-original-title", "click to copy")
- button#copy-user-button(type="button" data-clipboard-text="{{user}}").btn.btn-primary.btn-xs copy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement