Newer
Older
// Instantiate the clipboard only if the copyToken button exists
var clipboard = new Clipboard($copyTokenBtn[0]);
// show tooltip "Copied!" on success
$copyTokenBtn.tooltip("enable");
$copyTokenBtn.tooltip("show");