PageSourceSearch

https://lms.pryor.com/Scripts/Shared/ToastrOptions.js

js pryor.com collected 2026-10-02 14:31:05 UTC 1,287 bytes, 39 lines download raw bytes

1var toastrOptions = function(params) {
2
3    var errorTimeout;
4
5    var options = {
6        initialize: function(initParams) {
7            params.toastr.options.closeButton = true;
8            params.toastr.options.progressBar = true;
9            params.toastr.options.timeOut = initParams && initParams.timeOut;
10            errorTimeout = initParams ? initParams.timeOut : 10000;
11        },
12        logToastr: function(message, type) {
13            $.post("/Toastr/Log",
14                { messageType: type, data: window.location.href, message: message });
15        }
16    };
17
18    options.genericErrorToastr = function() {
19        options.errorToastr("An error has occurred.  If the problem persists please contact your administrator.");
20    };
21
22    options.errorToastr = function(message) {
23        params.toastr.error(message, null, { timeOut: errorTimeout });
24        options.logToastr(message, "error");
25    };
26
27    options.successToastr = function(message) {
28        params.toastr.success(message);
29        options.logToastr(message, "success");
30    };
31
32    options.warningToastr = function(message) {
33        params.toastr.warning(message);
34        options.logToastr(message, "warning");
35    };
36
37    return options;
38
39}( { toastr: toastr } );

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.