From 5d9fea82ebed9803115d71a7c2c2ce8df0f86d1d Mon Sep 17 00:00:00 2001 From: Son NK Date: Mon, 18 Nov 2019 19:16:31 +0100 Subject: [PATCH] replace noty by toastr because noty cannot handle multiple toasts --- templates/base.html | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/templates/base.html b/templates/base.html index acc2f4ef..f3bbe95a 100644 --- a/templates/base.html +++ b/templates/base.html @@ -57,8 +57,9 @@ - - + + + @@ -76,6 +77,10 @@ gtag('config', 'UA-145852331-2'); + + {% block head %} {% endblock %} @@ -89,13 +94,7 @@ {% if messages %} {% for category, message in messages %} {% endfor %} {% endif %} @@ -125,14 +124,7 @@ var clipboard = new ClipboardJS('.clipboard'); clipboard.on('success', function (e) { - new Noty({ - type: 'success', - theme: 'nest', - text: 'Copied to clipboard', - timeout: 1000, - progressBar: false - }).show(); - + toastr.success("Copied to clipboard"); e.clearSelection(); });