forked from MarseyWorld/MarseyWorld
fds
parent
b930cccc94
commit
b14587fc9c
|
@ -459,12 +459,12 @@
|
|||
};
|
||||
|
||||
var clipboard = new ClipboardJS('.copy-link');
|
||||
clipboard.on('success', function(e) {
|
||||
clipboard.addEventListener('success', function(e) {
|
||||
var myToast = new bootstrap.Toast(document.getElementById('toast-success'));
|
||||
myToast.show();
|
||||
console.log(e);
|
||||
});
|
||||
clipboard.on('error', function(e) {
|
||||
clipboard.addEventListener('error', function(e) {
|
||||
var myToast = new bootstrap.Toast(document.getElementById('toast-error'));
|
||||
myToast.show();
|
||||
console.log(e);
|
||||
|
|
|
@ -18,12 +18,12 @@
|
|||
|
||||
<script>
|
||||
var clipboard = new ClipboardJS('.copy-link');
|
||||
clipboard.on('success', function(e) {
|
||||
clipboard.addEventListener('success', function(e) {
|
||||
var myToast = new bootstrap.Toast(document.getElementById('toast-success'));
|
||||
myToast.show();
|
||||
console.log(e);
|
||||
});
|
||||
clipboard.on('error', function(e) {
|
||||
clipboard.addEventListener('error', function(e) {
|
||||
var myToast = new bootstrap.Toast(document.getElementById('toast-error'));
|
||||
myToast.show();
|
||||
console.log(e);
|
||||
|
|
|
@ -18,12 +18,12 @@
|
|||
<script>
|
||||
|
||||
var clipboard = new ClipboardJS('.copy-link');
|
||||
clipboard.on('success', function(e) {
|
||||
clipboard.addEventListener('success', function(e) {
|
||||
var myToast = new bootstrap.Toast(document.getElementById('toast-success'));
|
||||
myToast.show();
|
||||
console.log(e);
|
||||
});
|
||||
clipboard.on('error', function(e) {
|
||||
clipboard.addEventListener('error', function(e) {
|
||||
var myToast = new bootstrap.Toast(document.getElementById('toast-error'));
|
||||
myToast.show();
|
||||
console.log(e);
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
|
||||
<script>
|
||||
var clipboard = new ClipboardJS('.copy-link');
|
||||
clipboard.on('success', function(e) {
|
||||
clipboard.addEventListener('success', function(e) {
|
||||
var myToast = new bootstrap.Toast(document.getElementById('toast-success'));
|
||||
myToast.show();
|
||||
console.log(e);
|
||||
});
|
||||
clipboard.on('error', function(e) {
|
||||
clipboard.addEventListener('error', function(e) {
|
||||
var myToast = new bootstrap.Toast(document.getElementById('toast-error'));
|
||||
myToast.show();
|
||||
console.log(e);
|
||||
|
|
Loading…
Reference in New Issue