Subversion-Projekte lars-tiefland.ci

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
776 lars 1
var UIConfirmations = function () {
2
 
3
    var handleSample = function () {
4
 
5
        $('#bs_confirmation_demo_1').on('confirmed.bs.confirmation', function () {
6
            alert('You confirmed action #1');
7
        });
8
 
9
        $('#bs_confirmation_demo_1').on('canceled.bs.confirmation', function () {
10
            alert('You canceled action #1');
11
        });
12
 
13
        $('#bs_confirmation_demo_2').on('confirmed.bs.confirmation', function () {
14
            alert('You confirmed action #2');
15
        });
16
 
17
        $('#bs_confirmation_demo_2').on('canceled.bs.confirmation', function () {
18
            alert('You canceled action #2');
19
        });
20
    }
21
 
22
 
23
    return {
24
        //main function to initiate the module
25
        init: function () {
26
 
27
           handleSample();
28
 
29
        }
30
 
31
    };
32
 
33
}();
34
 
35
jQuery(document).ready(function() {
36
   UIConfirmations.init();
37
});