1 Answers
Hello,
Under functions.js file
function themeNotify(data) {
if (undefined == data.level && undefined == data.message) {
data = data.responseJSON;
var level = 'error';
var message = data.message;
var errors = data.errors;
} else {
var level = data.level;
var message = data.message;
}
if (undefined != errors) {
message += "<br>";
$.each(errors, function (key, val) {
message += val + "<br>";
});
}
if (undefined == level && undefined == message) {
level = 'error';
message = 'Something went wrong!!';
}
toastr[level](message, ucfirst(level));
}
change
toastr[level](message, ucfirst(level));
to
toastr[level](message, ucfirst(level), { timeOut: YourTimeoutValue }
);
Please login or Register to submit your answer