|
8 | 8 | init: function() {
|
9 | 9 | $('#djDebug').show();
|
10 | 10 | var current = null;
|
11 |
| - $(document).on('click', '#djDebugPanelList li a', function() { |
| 11 | + $('#djDebugPanelList').on('click', 'li a', function() { |
12 | 12 | if (!this.className) {
|
13 | 13 | return false;
|
14 | 14 | }
|
|
44 | 44 | }
|
45 | 45 | return false;
|
46 | 46 | });
|
47 |
| - $(document).on('click', '#djDebug a.djDebugClose', function() { |
| 47 | + $('#djDebug').on('click', 'a.djDebugClose', function() { |
48 | 48 | $(document).trigger('close.djDebug');
|
49 | 49 | $('#djDebugToolbar li').removeClass('djdt-active');
|
50 | 50 | return false;
|
51 | 51 | });
|
52 |
| - $(document).on('click', '#djDebug .djDebugPanelButton input[type=checkbox]', function() { |
| 52 | + $('#djDebug').on('click', '.djDebugPanelButton input[type=checkbox]', function() { |
53 | 53 | djdt.cookie.set($(this).attr('data-cookie'), $(this).prop('checked') ? 'on' : 'off', {
|
54 | 54 | path: '/',
|
55 | 55 | expires: 10
|
56 | 56 | });
|
57 | 57 | });
|
58 | 58 |
|
59 | 59 | // Used by the SQL and template panels
|
60 |
| - $(document).on('click', '#djDebug .remoteCall', function() { |
| 60 | + $('#djDebug').on('click', '.remoteCall', function() { |
61 | 61 | var self = $(this);
|
62 | 62 | var name = self[0].tagName.toLowerCase();
|
63 | 63 | var ajax_data = {};
|
|
83 | 83 | $('#djDebugWindow').html(message).show();
|
84 | 84 | });
|
85 | 85 |
|
86 |
| - $(document).on('click', '#djDebugWindow a.djDebugBack', function() { |
| 86 | + $('#djDebugWindow').on('click', 'a.djDebugBack', function() { |
87 | 87 | $(this).parent().parent().hide();
|
88 | 88 | return false;
|
89 | 89 | });
|
|
92 | 92 | });
|
93 | 93 |
|
94 | 94 | // Used by the cache, profiling and SQL panels
|
95 |
| - $(document).on('click', '#djDebug a.djToggleSwitch', function(e) { |
| 95 | + $('#djDebug').on('click', 'a.djToggleSwitch', function(e) { |
96 | 96 | e.preventDefault();
|
97 | 97 | var btn = $(this);
|
98 | 98 | var id = btn.attr('data-toggle-id');
|
|
0 commit comments