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