develop
Last change
on this file since e954f3e was 194a359, checked in by beratkjufliju <kufliju@…>, 3 years ago |
added departments, edited users and added user settings
|
-
Property mode
set to
100644
|
File size:
881 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | $(document).ready(function () {
|
---|
3 |
|
---|
4 | var doc = $(document);
|
---|
5 |
|
---|
6 | toastr.options = {
|
---|
7 | timeOut: 3000,
|
---|
8 | progressBar: true,
|
---|
9 | showMethod: "slideDown",
|
---|
10 | hideMethod: "slideUp",
|
---|
11 | showDuration: 200,
|
---|
12 | hideDuration: 200
|
---|
13 | };
|
---|
14 |
|
---|
15 | doc.on('click', '.toastr-examples a.btn-success', function () {
|
---|
16 | toastr.success('Successfully completed');
|
---|
17 | return false;
|
---|
18 | });
|
---|
19 |
|
---|
20 | doc.on('click', '.toastr-examples a.btn-danger', function () {
|
---|
21 | toastr.error('Something went wrong');
|
---|
22 | return false;
|
---|
23 | });
|
---|
24 |
|
---|
25 | doc.on('click', '.toastr-examples a.btn-info', function () {
|
---|
26 | toastr.info('This is an informational message');
|
---|
27 | return false;
|
---|
28 | });
|
---|
29 |
|
---|
30 | doc.on('click', '.toastr-examples a.btn-warning', function () {
|
---|
31 | toastr.warning('You are currently not authorized');
|
---|
32 | return false;
|
---|
33 | });
|
---|
34 |
|
---|
35 | }); |
---|
Note:
See
TracBrowser
for help on using the repository browser.