app/assets/javascript/toastr_rails.js in toastr_rails-2.1.0.2 vs app/assets/javascript/toastr_rails.js in toastr_rails-2.1.1
- old
+ new
@@ -23,8 +23,14 @@
notice: 'success',
alert: 'error',
warning: 'warning',
info: 'info'
};
- toastr[type[msg[0]]](msg[1]);
+ var options = {
+ notice: {},
+ alert: { "timeOut": "0", "extendedTimeOut": "0" },
+ warning: { "timeOut": "0", "extendedTimeOut": "0" },
+ info: {}
+ };
+ toastr[type[msg[0]]](msg[1], '', options[msg[0]]);
}
};