Subversion Repositories SmartDukaan

Rev

Rev 35626 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35626 Rev 37498
Line 11... Line 11...
11
            $('body').removeClass('modal-open');
11
            $('body').removeClass('modal-open');
12
            $('.modal-backdrop').remove();
12
            $('.modal-backdrop').remove();
13
        });
13
        });
14
 
14
 
15
        // Ensure backdrop is removed on any modal close
15
        // Ensure backdrop is removed on any modal close
-
 
16
        // Fragment is re-injected with .html(), which re-runs this script; clear the
-
 
17
        // namespace first so handlers replace rather than stack.
-
 
18
        $(document).off('.mypartnertickets');
16
        $(document).on('hidden.bs.modal', '.modal', function () {
19
        $(document).on('hidden.bs.modal.mypartnertickets', '.modal', function () {
17
            if ($('.modal:visible').length === 0) {
20
            if ($('.modal:visible').length === 0) {
18
                $('body').removeClass('modal-open');
21
                $('body').removeClass('modal-open');
19
                $('.modal-backdrop').remove();
22
                $('.modal-backdrop').remove();
20
            }
23
            }
21
        });
24
        });