mirror of
https://github.com/simple-login/app.git
synced 2024-09-28 20:51:29 +02:00
set clipboard behavior on all pages
This commit is contained in:
parent
aeb4108570
commit
83abbe5406
@ -215,15 +215,6 @@
|
|||||||
localStorage.setItem("introShown", "yes")
|
localStorage.setItem("introShown", "yes")
|
||||||
}
|
}
|
||||||
|
|
||||||
clipboard.on('success', function (e) {
|
|
||||||
notie.alert({
|
|
||||||
type: "success",
|
|
||||||
text: "Copied to clipboard",
|
|
||||||
time: 1,
|
|
||||||
});
|
|
||||||
|
|
||||||
e.clearSelection();
|
|
||||||
});
|
|
||||||
|
|
||||||
$(".delete-email").on("click", function (e) {
|
$(".delete-email").on("click", function (e) {
|
||||||
notie.confirm({
|
notie.confirm({
|
||||||
|
@ -112,7 +112,6 @@
|
|||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -177,16 +176,5 @@
|
|||||||
currentElement.parent().parent().remove();
|
currentElement.parent().parent().remove();
|
||||||
});
|
});
|
||||||
|
|
||||||
var clipboard = new ClipboardJS('.clipboard');
|
|
||||||
|
|
||||||
clipboard.on('success', function (e) {
|
|
||||||
notie.alert({
|
|
||||||
type: "success",
|
|
||||||
text: "Copied to clipboard",
|
|
||||||
time: 2,
|
|
||||||
});
|
|
||||||
|
|
||||||
e.clearSelection();
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -104,18 +104,6 @@
|
|||||||
|
|
||||||
{% block script %}
|
{% block script %}
|
||||||
<script>
|
<script>
|
||||||
var clipboard = new ClipboardJS('.btn');
|
|
||||||
|
|
||||||
clipboard.on('success', function (e) {
|
|
||||||
notie.alert({
|
|
||||||
type: "success",
|
|
||||||
text: "Copied to clipboard",
|
|
||||||
time: 1,
|
|
||||||
});
|
|
||||||
|
|
||||||
e.clearSelection();
|
|
||||||
});
|
|
||||||
|
|
||||||
$(".delete-client").on("click", function (e) {
|
$(".delete-client").on("click", function (e) {
|
||||||
notie.confirm({
|
notie.confirm({
|
||||||
text: "This operation is not reversible, please confirm",
|
text: "This operation is not reversible, please confirm",
|
||||||
|
@ -120,21 +120,4 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block script %}
|
|
||||||
<script>
|
|
||||||
var clipboard = new ClipboardJS('.clipboard');
|
|
||||||
|
|
||||||
clipboard.on('success', function (e) {
|
|
||||||
notie.alert({
|
|
||||||
type: "success",
|
|
||||||
text: "Copied to clipboard",
|
|
||||||
time: 1,
|
|
||||||
});
|
|
||||||
|
|
||||||
e.clearSelection();
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
{% endblock %}
|
|
@ -85,19 +85,3 @@
|
|||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block script %}
|
|
||||||
<script>
|
|
||||||
var clipboard = new ClipboardJS('.clipboard');
|
|
||||||
|
|
||||||
clipboard.on('success', function (e) {
|
|
||||||
notie.alert({
|
|
||||||
type: "success",
|
|
||||||
text: "Copied to clipboard",
|
|
||||||
time: 1,
|
|
||||||
});
|
|
||||||
|
|
||||||
e.clearSelection();
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
{% endblock %}
|
|
@ -105,6 +105,18 @@
|
|||||||
overlayClickDismiss: false,
|
overlayClickDismiss: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var clipboard = new ClipboardJS('.clipboard');
|
||||||
|
|
||||||
|
clipboard.on('success', function (e) {
|
||||||
|
notie.alert({
|
||||||
|
type: "success",
|
||||||
|
text: "Copied to clipboard",
|
||||||
|
time: 2,
|
||||||
|
});
|
||||||
|
|
||||||
|
e.clearSelection();
|
||||||
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- For additional script -->
|
<!-- For additional script -->
|
||||||
|
Loading…
Reference in New Issue
Block a user