Show More
@@ -192,7 +192,6 b' var injectInlineForm = function(tr){' | |||
|
192 | 192 | // re trigger the linkification of next/prev navigation |
|
193 | 193 | linkifyComments($('.inline-comment-injected')); |
|
194 | 194 | timeagoActivate(); |
|
195 | tooltip_activate(); | |
|
196 | 195 | bindDeleteCommentButtons(); |
|
197 | 196 | commentForm.setActionButtonsDisabled(false); |
|
198 | 197 | |
@@ -536,7 +535,6 b' var CommentForm = (function() {' | |||
|
536 | 535 | self.resetCommentFormState(); |
|
537 | 536 | bindDeleteCommentButtons(); |
|
538 | 537 | timeagoActivate(); |
|
539 | tooltip_activate(); | |
|
540 | 538 | } |
|
541 | 539 | }; |
|
542 | 540 | var submitFailCallback = function(){ |
@@ -86,18 +86,9 b' TTIP.main = {' | |||
|
86 | 86 | } |
|
87 | 87 | }; |
|
88 | 88 | |
|
89 | /** | |
|
90 | * tooltip activate | |
|
91 | */ | |
|
92 | var tooltip_activate = function(){ | |
|
93 | yt = TTIP.main; | |
|
94 | if ($(document).data('activated-tooltips') !== '1'){ | |
|
95 | $(document).ready(yt.init); | |
|
96 | $(document).data('activated-tooltips', '1'); | |
|
97 | } | |
|
98 | }; | |
|
99 | ||
|
100 | /** | |
|
101 | * show changeset tooltip | |
|
102 | */ | |
|
103 | var show_changeset_tooltip = function(){}; | |
|
89 | // activate tooltips | |
|
90 | yt = TTIP.main; | |
|
91 | if ($(document).data('activated-tooltips') !== '1'){ | |
|
92 | $(document).ready(yt.init); | |
|
93 | $(document).data('activated-tooltips', '1'); | |
|
94 | } |
@@ -50,8 +50,6 b'' | |||
|
50 | 50 | //therefore the .one method |
|
51 | 51 | $(document).on('pjax:complete',function(){ |
|
52 | 52 | show_more_event(); |
|
53 | tooltip_activate(); | |
|
54 | show_changeset_tooltip(); | |
|
55 | 53 | }); |
|
56 | 54 | |
|
57 | 55 | $(document).pjax('#user_log .pager_link', '#user_log'); |
@@ -122,7 +122,6 b'' | |||
|
122 | 122 | }, |
|
123 | 123 | "initComplete": function( settings, json ) { |
|
124 | 124 | timeagoActivate(); |
|
125 | tooltip_activate(); | |
|
126 | 125 | get_datatable_count(); |
|
127 | 126 | } |
|
128 | 127 | }); |
@@ -130,7 +129,6 b'' | |||
|
130 | 129 | // update the counter when things change |
|
131 | 130 | $('#gist_list_table').on('draw.dt', function() { |
|
132 | 131 | timeagoActivate(); |
|
133 | tooltip_activate(); | |
|
134 | 132 | get_datatable_count(); |
|
135 | 133 | }); |
|
136 | 134 |
@@ -41,7 +41,6 b'' | |||
|
41 | 41 | }, |
|
42 | 42 | "initComplete": function( settings, json ) { |
|
43 | 43 | get_datatable_count(); |
|
44 | tooltip_activate(); | |
|
45 | 44 | quick_repo_menu(); |
|
46 | 45 | } |
|
47 | 46 | }); |
@@ -39,7 +39,6 b'' | |||
|
39 | 39 | }, |
|
40 | 40 | "initComplete": function( settings, json ) { |
|
41 | 41 | get_datatable_count(); |
|
42 | tooltip_activate(); | |
|
43 | 42 | quick_repo_menu(); |
|
44 | 43 | } |
|
45 | 44 | }); |
@@ -66,7 +66,6 b'' | |||
|
66 | 66 | }, |
|
67 | 67 | "initComplete": function( settings, json ) { |
|
68 | 68 | get_datatable_count(); |
|
69 | tooltip_activate(); | |
|
70 | 69 | quick_repo_menu(); |
|
71 | 70 | } |
|
72 | 71 | }); |
@@ -73,7 +73,6 b'' | |||
|
73 | 73 | }, |
|
74 | 74 | "initComplete": function( settings, json ) { |
|
75 | 75 | get_datatable_count(); |
|
76 | tooltip_activate(); | |
|
77 | 76 | quick_repo_menu(); |
|
78 | 77 | } |
|
79 | 78 | }); |
@@ -70,7 +70,6 b'' | |||
|
70 | 70 | }, |
|
71 | 71 | "initComplete": function( settings, json ) { |
|
72 | 72 | get_datatable_count(); |
|
73 | tooltip_activate(); | |
|
74 | 73 | } |
|
75 | 74 | }); |
|
76 | 75 |
@@ -110,7 +110,6 b'' | |||
|
110 | 110 | }, |
|
111 | 111 | "initComplete": function( settings, json ) { |
|
112 | 112 | get_datatable_count(); |
|
113 | tooltip_activate(); | |
|
114 | 113 | }, |
|
115 | 114 | "createdRow": function ( row, data, index ) { |
|
116 | 115 | if (!data['active_raw']){ |
@@ -124,9 +124,7 b'' | |||
|
124 | 124 | |
|
125 | 125 | <script type="text/javascript"> |
|
126 | 126 | $(document).ready(function(){ |
|
127 | tooltip_activate(); | |
|
128 | 127 | show_more_event(); |
|
129 | show_changeset_tooltip(); | |
|
130 | 128 | timeagoActivate(); |
|
131 | 129 | }) |
|
132 | 130 | </script> |
@@ -72,7 +72,6 b'' | |||
|
72 | 72 | }, |
|
73 | 73 | "initComplete": function(settings, json) { |
|
74 | 74 | get_datatable_count(); |
|
75 | tooltip_activate(); | |
|
76 | 75 | timeagoActivate(); |
|
77 | 76 | compare_radio_buttons("${c.repo_name}", 'book'); |
|
78 | 77 | } |
@@ -81,7 +80,6 b'' | |||
|
81 | 80 | // update when things change |
|
82 | 81 | $('#obj_list_table').on('draw.dt', function() { |
|
83 | 82 | get_datatable_count(); |
|
84 | tooltip_activate(); | |
|
85 | 83 | timeagoActivate(); |
|
86 | 84 | }); |
|
87 | 85 |
@@ -71,7 +71,6 b'' | |||
|
71 | 71 | }, |
|
72 | 72 | "initComplete": function( settings, json ) { |
|
73 | 73 | get_datatable_count(); |
|
74 | tooltip_activate(); | |
|
75 | 74 | timeagoActivate(); |
|
76 | 75 | compare_radio_buttons("${c.repo_name}", 'branch'); |
|
77 | 76 | } |
@@ -80,7 +79,6 b'' | |||
|
80 | 79 | // update when things change |
|
81 | 80 | $('#obj_list_table').on('draw.dt', function() { |
|
82 | 81 | get_datatable_count(); |
|
83 | tooltip_activate(); | |
|
84 | 82 | timeagoActivate(); |
|
85 | 83 | }); |
|
86 | 84 |
@@ -77,7 +77,7 b'' | |||
|
77 | 77 | |
|
78 | 78 | <script type="text/javascript"> |
|
79 | 79 | $(document).pjax('#shortlog_data .pager_link','#shortlog_data', {timeout: 2000, scrollTo: false }); |
|
80 |
$(document).on('pjax:success', function(){ timeagoActivate(); |
|
|
80 | $(document).on('pjax:success', function(){ timeagoActivate(); }); | |
|
81 | 81 | </script> |
|
82 | 82 | |
|
83 | 83 | <div class="pagination-wh pagination-left"> |
@@ -121,7 +121,6 b'' | |||
|
121 | 121 | '<span title="{0}">{1}</span>'.format( |
|
122 | 122 | data[i].author, data[i].user_profile)); |
|
123 | 123 | } |
|
124 | tooltip_activate(); | |
|
125 | 124 | timeagoActivate(); |
|
126 | 125 | }); |
|
127 | 126 | metadataRequest.fail(function (data, textStatus, errorThrown) { |
@@ -134,7 +133,6 b'' | |||
|
134 | 133 | |
|
135 | 134 | var callbacks = function() { |
|
136 | 135 | var state = getState('callbacks'); |
|
137 | tooltip_activate(); | |
|
138 | 136 | timeagoActivate(); |
|
139 | 137 | |
|
140 | 138 | // used for history, and switch to |
@@ -316,7 +314,6 b'' | |||
|
316 | 314 | $('#file_history_overview').hide(); |
|
317 | 315 | $('#file_history_overview_full').show(); |
|
318 | 316 | timeagoActivate(); |
|
319 | tooltip_activate(); | |
|
320 | 317 | } else { |
|
321 | 318 | callbacks(); |
|
322 | 319 | } |
@@ -23,8 +23,6 b'' | |||
|
23 | 23 | $(document).on('pjax:success',function(){ |
|
24 | 24 | show_more_event(); |
|
25 | 25 | timeagoActivate(); |
|
26 | tooltip_activate(); | |
|
27 | show_changeset_tooltip(); | |
|
28 | 26 | }); |
|
29 | 27 | </script> |
|
30 | 28 | ${c.followers_pager.pager('$link_previous ~2~ $link_next')} |
@@ -38,8 +38,6 b'' | |||
|
38 | 38 | $(document).on('pjax:success',function(){ |
|
39 | 39 | show_more_event(); |
|
40 | 40 | timeagoActivate(); |
|
41 | tooltip_activate(); | |
|
42 | show_changeset_tooltip(); | |
|
43 | 41 | }); |
|
44 | 42 | </script> |
|
45 | 43 | ${c.forks_pager.pager('$link_previous ~2~ $link_next')} |
@@ -106,7 +106,6 b'' | |||
|
106 | 106 | }, |
|
107 | 107 | "drawCallback": function( settings, json ) { |
|
108 | 108 | timeagoActivate(); |
|
109 | tooltip_activate(); | |
|
110 | 109 | quick_repo_menu(); |
|
111 | 110 | } |
|
112 | 111 | }); |
@@ -139,7 +138,6 b'' | |||
|
139 | 138 | }, |
|
140 | 139 | "drawCallback": function( settings, json ) { |
|
141 | 140 | timeagoActivate(); |
|
142 | tooltip_activate(); | |
|
143 | 141 | quick_repo_menu(); |
|
144 | 142 | } |
|
145 | 143 | }); |
@@ -46,8 +46,6 b'' | |||
|
46 | 46 | $('#j_filter').autoGrowInput(); |
|
47 | 47 | $(document).on('pjax:success',function(){ |
|
48 | 48 | show_more_event(); |
|
49 | tooltip_activate(); | |
|
50 | show_changeset_tooltip(); | |
|
51 | 49 | }); |
|
52 | 50 | $(document).pjax('#refresh', '#journal', |
|
53 | 51 | {url: "${h.url.current(filter=c.search_term)}", push: false}); |
@@ -44,8 +44,6 b'' | |||
|
44 | 44 | $(document).on('pjax:success',function(){ |
|
45 | 45 | show_more_event(); |
|
46 | 46 | timeagoActivate(); |
|
47 | tooltip_activate(); | |
|
48 | show_changeset_tooltip(); | |
|
49 | 47 | }); |
|
50 | 48 | </script> |
|
51 | 49 | %else: |
@@ -112,7 +112,6 b'' | |||
|
112 | 112 | }, |
|
113 | 113 | "drawCallback": function( settings, json ) { |
|
114 | 114 | timeagoActivate(); |
|
115 | tooltip_activate(); | |
|
116 | 115 | }, |
|
117 | 116 | "createdRow": function ( row, data, index ) { |
|
118 | 117 | if (data['closed']) { |
@@ -72,7 +72,6 b'' | |||
|
72 | 72 | }, |
|
73 | 73 | "initComplete": function(settings, json) { |
|
74 | 74 | get_datatable_count(); |
|
75 | tooltip_activate(); | |
|
76 | 75 | timeagoActivate(); |
|
77 | 76 | compare_radio_buttons("${c.repo_name}", 'tag'); |
|
78 | 77 | } |
@@ -81,7 +80,6 b'' | |||
|
81 | 80 | // update when things change |
|
82 | 81 | $('#obj_list_table').on('draw.dt', function() { |
|
83 | 82 | get_datatable_count(); |
|
84 | tooltip_activate(); | |
|
85 | 83 | timeagoActivate(); |
|
86 | 84 | }); |
|
87 | 85 |
@@ -59,9 +59,7 b'' | |||
|
59 | 59 | <script>CodeMirror.modeURL = "/js/mode/%N/%N.js";</script> |
|
60 | 60 | <script type="text/javascript"> |
|
61 | 61 | $(document).ready(function(){ |
|
62 | tooltip_activate(); | |
|
63 | 62 | show_more_event(); |
|
64 | show_changeset_tooltip(); | |
|
65 | 63 | timeagoActivate(); |
|
66 | 64 | }) |
|
67 | 65 | </script> |
@@ -495,4 +493,4 b' Mjk3M3B4OyI+VE0KICAgICAgICAgICAgPC90ZXh0' | |||
|
495 | 493 | </div><!-- /.modal-dialog --> |
|
496 | 494 | </div><!-- /.modal --> |
|
497 | 495 | </body> |
|
498 | </html> No newline at end of file | |
|
496 | </html> |
General Comments 0
You need to be logged in to leave comments.
Login now