|
16 | 16 | init: function() {
|
17 | 17 | $('#djDebug').show();
|
18 | 18 | var current = null;
|
19 |
| - $('#djDebugPanelList li a').live('click', function() { |
| 19 | + $(document).on('click', '#djDebugPanelList li a', function() { |
20 | 20 | if (!this.className) {
|
21 | 21 | return false;
|
22 | 22 | }
|
|
51 | 51 | }
|
52 | 52 | return false;
|
53 | 53 | });
|
54 |
| - $('#djDebug a.djDebugClose').live('click', function() { |
| 54 | + $(document).on('click', '#djDebug a.djDebugClose', function() { |
55 | 55 | $(document).trigger('close.djDebug');
|
56 | 56 | $('#djDebugToolbar li').removeClass('active');
|
57 | 57 | return false;
|
58 | 58 | });
|
59 |
| - $('#djDebug .djDebugPanelButton input[type=checkbox]').live('click', function() { |
| 59 | + $(document).on('click', '#djDebug .djDebugPanelButton input[type=checkbox]', function() { |
60 | 60 | $.cookie($(this).attr('data-cookie'), $(this).prop('checked') ? 'on' : 'off', {
|
61 | 61 | path: '/',
|
62 | 62 | expires: 10,
|
63 | 63 | });
|
64 | 64 | });
|
65 | 65 |
|
66 | 66 | // Used by the SQL and template panels
|
67 |
| - $('#djDebug .remoteCall').live('click', function() { |
| 67 | + $(document).on('click', '#djDebug .remoteCall', function() { |
68 | 68 | var self = $(this);
|
69 | 69 | var name = self[0].tagName.toLowerCase();
|
70 | 70 | var ajax_data = {};
|
|
90 | 90 | $('#djDebugWindow').html(message).show();
|
91 | 91 | });
|
92 | 92 |
|
93 |
| - $('#djDebugWindow a.djDebugBack').live('click', function() { |
| 93 | + $(document).on('click', '#djDebugWindow a.djDebugBack', function() { |
94 | 94 | $(this).parent().parent().hide();
|
95 | 95 | return false;
|
96 | 96 | });
|
|
99 | 99 | });
|
100 | 100 |
|
101 | 101 | // Used by the cache, profiling and SQL panels
|
102 |
| - $('#djDebug a.djToggleSwitch').live('click', function(e) { |
| 102 | + $(document).on('click', '#djDebug a.djToggleSwitch', function(e) { |
103 | 103 | e.preventDefault();
|
104 | 104 | var btn = $(this);
|
105 | 105 | var id = btn.attr('data-toggle-id');
|
|
0 commit comments