add toastr cdn and modified toast function

This commit is contained in:
hitman 2017-03-07 02:45:29 +05:30
parent 5e3e482311
commit 40b99cc2d6
6 changed files with 22 additions and 27 deletions

View file

@ -46,7 +46,6 @@
//= require unobtrusive_flash
//= require unobtrusive_flash_bootstrap
//= require countable
//= require toastr
$(document).ready(function() {
$('a[disabled=disabled]').click(function(event){
@ -56,22 +55,4 @@ $(document).ready(function() {
$('body').smoothScroll({
delegateSelector: 'a.smoothscroll'
});
toastr.options = {
"closeButton": false,
"debug": false,
"newestOnTop": false,
"progressBar": true,
"positionClass": "toast-top-right",
"preventDuplicates": false,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"timeOut": "5000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
}
});

View file

@ -15,5 +15,4 @@
*= require leaflet
*= require bootstrap3-switch
*= require osem-payments
*= require toastr
*/