use render for toast and remove helper function

This commit is contained in:
hitman 2017-03-07 15:13:38 +05:30
parent db1eedf51b
commit 33b9a2b93b
4 changed files with 20 additions and 33 deletions

View file

@ -11,6 +11,7 @@
// GO AFTER THE REQUIRES BELOW.
//
//= require jquery
//= require toastr_rails
//= require jquery_ujs
//= require jquery.mobile.custom.min
//= require jquery.ui.draggable
@ -52,6 +53,23 @@ $(document).ready(function() {
return false;
});
toastr.options = {
'closeButton': false,
'debug': false,
'newestOnTop': false,
'progressBar': true,
'positionClass': 'toast-bottom-center',
'preventDuplicates': true,
'onclick': null,
'showDuration': '300',
'hideDuration': '100',
'timeOut': '5000',
'extendedTimeOut': '1000',
'showEasing': 'swing',
'hideEasing': 'linear',
'showMethod': 'fadeIn',
'hideMethod': 'fadeOut'
};
$('body').smoothScroll({
delegateSelector: 'a.smoothscroll'
});

View file

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