tooltips: remove all occurences of explicit tooltip activation
This commit is contained in:
parent
bcb73b4b91
commit
29c54ee77a
23 changed files with 8 additions and 53 deletions
|
|
@ -192,7 +192,6 @@ var injectInlineForm = function(tr){
|
|||
// re trigger the linkification of next/prev navigation
|
||||
linkifyComments($('.inline-comment-injected'));
|
||||
timeagoActivate();
|
||||
tooltip_activate();
|
||||
bindDeleteCommentButtons();
|
||||
commentForm.setActionButtonsDisabled(false);
|
||||
|
||||
|
|
@ -536,7 +535,6 @@ var CommentForm = (function() {
|
|||
self.resetCommentFormState();
|
||||
bindDeleteCommentButtons();
|
||||
timeagoActivate();
|
||||
tooltip_activate();
|
||||
}
|
||||
};
|
||||
var submitFailCallback = function(){
|
||||
|
|
|
|||
|
|
@ -86,18 +86,9 @@ TTIP.main = {
|
|||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* tooltip activate
|
||||
*/
|
||||
var tooltip_activate = function(){
|
||||
yt = TTIP.main;
|
||||
if ($(document).data('activated-tooltips') !== '1'){
|
||||
$(document).ready(yt.init);
|
||||
$(document).data('activated-tooltips', '1');
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* show changeset tooltip
|
||||
*/
|
||||
var show_changeset_tooltip = function(){};
|
||||
// activate tooltips
|
||||
yt = TTIP.main;
|
||||
if ($(document).data('activated-tooltips') !== '1'){
|
||||
$(document).ready(yt.init);
|
||||
$(document).data('activated-tooltips', '1');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,8 +50,6 @@ ${c.users_log.pager('$link_previous ~2~ $link_next')}
|
|||
//therefore the .one method
|
||||
$(document).on('pjax:complete',function(){
|
||||
show_more_event();
|
||||
tooltip_activate();
|
||||
show_changeset_tooltip();
|
||||
});
|
||||
|
||||
$(document).pjax('#user_log .pager_link', '#user_log');
|
||||
|
|
|
|||
|
|
@ -122,7 +122,6 @@ $(document).ready(function() {
|
|||
},
|
||||
"initComplete": function( settings, json ) {
|
||||
timeagoActivate();
|
||||
tooltip_activate();
|
||||
get_datatable_count();
|
||||
}
|
||||
});
|
||||
|
|
@ -130,7 +129,6 @@ $(document).ready(function() {
|
|||
// update the counter when things change
|
||||
$('#gist_list_table').on('draw.dt', function() {
|
||||
timeagoActivate();
|
||||
tooltip_activate();
|
||||
get_datatable_count();
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ $(document).ready(function() {
|
|||
},
|
||||
"initComplete": function( settings, json ) {
|
||||
get_datatable_count();
|
||||
tooltip_activate();
|
||||
quick_repo_menu();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@ $(document).ready(function() {
|
|||
},
|
||||
"initComplete": function( settings, json ) {
|
||||
get_datatable_count();
|
||||
tooltip_activate();
|
||||
quick_repo_menu();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -66,7 +66,6 @@ $(document).ready(function() {
|
|||
},
|
||||
"initComplete": function( settings, json ) {
|
||||
get_datatable_count();
|
||||
tooltip_activate();
|
||||
quick_repo_menu();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -73,7 +73,6 @@ $(document).ready(function() {
|
|||
},
|
||||
"initComplete": function( settings, json ) {
|
||||
get_datatable_count();
|
||||
tooltip_activate();
|
||||
quick_repo_menu();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -70,7 +70,6 @@ $(document).ready(function() {
|
|||
},
|
||||
"initComplete": function( settings, json ) {
|
||||
get_datatable_count();
|
||||
tooltip_activate();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -110,7 +110,6 @@ $(document).ready(function() {
|
|||
},
|
||||
"initComplete": function( settings, json ) {
|
||||
get_datatable_count();
|
||||
tooltip_activate();
|
||||
},
|
||||
"createdRow": function ( row, data, index ) {
|
||||
if (!data['active_raw']){
|
||||
|
|
|
|||
|
|
@ -124,9 +124,7 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
tooltip_activate();
|
||||
show_more_event();
|
||||
show_changeset_tooltip();
|
||||
timeagoActivate();
|
||||
})
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -72,7 +72,6 @@ $(document).ready(function() {
|
|||
},
|
||||
"initComplete": function(settings, json) {
|
||||
get_datatable_count();
|
||||
tooltip_activate();
|
||||
timeagoActivate();
|
||||
compare_radio_buttons("${c.repo_name}", 'book');
|
||||
}
|
||||
|
|
@ -81,7 +80,6 @@ $(document).ready(function() {
|
|||
// update when things change
|
||||
$('#obj_list_table').on('draw.dt', function() {
|
||||
get_datatable_count();
|
||||
tooltip_activate();
|
||||
timeagoActivate();
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -71,7 +71,6 @@ $(document).ready(function() {
|
|||
},
|
||||
"initComplete": function( settings, json ) {
|
||||
get_datatable_count();
|
||||
tooltip_activate();
|
||||
timeagoActivate();
|
||||
compare_radio_buttons("${c.repo_name}", 'branch');
|
||||
}
|
||||
|
|
@ -80,7 +79,6 @@ $(document).ready(function() {
|
|||
// update when things change
|
||||
$('#obj_list_table').on('draw.dt', function() {
|
||||
get_datatable_count();
|
||||
tooltip_activate();
|
||||
timeagoActivate();
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@
|
|||
|
||||
<script type="text/javascript">
|
||||
$(document).pjax('#shortlog_data .pager_link','#shortlog_data', {timeout: 2000, scrollTo: false });
|
||||
$(document).on('pjax:success', function(){ timeagoActivate(); tooltip_activate(); });
|
||||
$(document).on('pjax:success', function(){ timeagoActivate(); });
|
||||
</script>
|
||||
|
||||
<div class="pagination-wh pagination-left">
|
||||
|
|
|
|||
|
|
@ -121,7 +121,6 @@
|
|||
'<span title="{0}">{1}</span>'.format(
|
||||
data[i].author, data[i].user_profile));
|
||||
}
|
||||
tooltip_activate();
|
||||
timeagoActivate();
|
||||
});
|
||||
metadataRequest.fail(function (data, textStatus, errorThrown) {
|
||||
|
|
@ -134,7 +133,6 @@
|
|||
|
||||
var callbacks = function() {
|
||||
var state = getState('callbacks');
|
||||
tooltip_activate();
|
||||
timeagoActivate();
|
||||
|
||||
// used for history, and switch to
|
||||
|
|
@ -316,7 +314,6 @@
|
|||
$('#file_history_overview').hide();
|
||||
$('#file_history_overview_full').show();
|
||||
timeagoActivate();
|
||||
tooltip_activate();
|
||||
} else {
|
||||
callbacks();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,8 +23,6 @@
|
|||
$(document).on('pjax:success',function(){
|
||||
show_more_event();
|
||||
timeagoActivate();
|
||||
tooltip_activate();
|
||||
show_changeset_tooltip();
|
||||
});
|
||||
</script>
|
||||
${c.followers_pager.pager('$link_previous ~2~ $link_next')}
|
||||
|
|
|
|||
|
|
@ -38,8 +38,6 @@
|
|||
$(document).on('pjax:success',function(){
|
||||
show_more_event();
|
||||
timeagoActivate();
|
||||
tooltip_activate();
|
||||
show_changeset_tooltip();
|
||||
});
|
||||
</script>
|
||||
${c.forks_pager.pager('$link_previous ~2~ $link_next')}
|
||||
|
|
|
|||
|
|
@ -106,7 +106,6 @@
|
|||
},
|
||||
"drawCallback": function( settings, json ) {
|
||||
timeagoActivate();
|
||||
tooltip_activate();
|
||||
quick_repo_menu();
|
||||
}
|
||||
});
|
||||
|
|
@ -139,7 +138,6 @@
|
|||
},
|
||||
"drawCallback": function( settings, json ) {
|
||||
timeagoActivate();
|
||||
tooltip_activate();
|
||||
quick_repo_menu();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -46,8 +46,6 @@
|
|||
$('#j_filter').autoGrowInput();
|
||||
$(document).on('pjax:success',function(){
|
||||
show_more_event();
|
||||
tooltip_activate();
|
||||
show_changeset_tooltip();
|
||||
});
|
||||
$(document).pjax('#refresh', '#journal',
|
||||
{url: "${h.url.current(filter=c.search_term)}", push: false});
|
||||
|
|
|
|||
|
|
@ -44,8 +44,6 @@
|
|||
$(document).on('pjax:success',function(){
|
||||
show_more_event();
|
||||
timeagoActivate();
|
||||
tooltip_activate();
|
||||
show_changeset_tooltip();
|
||||
});
|
||||
</script>
|
||||
%else:
|
||||
|
|
|
|||
|
|
@ -112,7 +112,6 @@ $(document).ready(function() {
|
|||
},
|
||||
"drawCallback": function( settings, json ) {
|
||||
timeagoActivate();
|
||||
tooltip_activate();
|
||||
},
|
||||
"createdRow": function ( row, data, index ) {
|
||||
if (data['closed']) {
|
||||
|
|
|
|||
|
|
@ -72,7 +72,6 @@ $(document).ready(function() {
|
|||
},
|
||||
"initComplete": function(settings, json) {
|
||||
get_datatable_count();
|
||||
tooltip_activate();
|
||||
timeagoActivate();
|
||||
compare_radio_buttons("${c.repo_name}", 'tag');
|
||||
}
|
||||
|
|
@ -81,7 +80,6 @@ $(document).ready(function() {
|
|||
// update when things change
|
||||
$('#obj_list_table').on('draw.dt', function() {
|
||||
get_datatable_count();
|
||||
tooltip_activate();
|
||||
timeagoActivate();
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -59,9 +59,7 @@
|
|||
<script>CodeMirror.modeURL = "/js/mode/%N/%N.js";</script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
tooltip_activate();
|
||||
show_more_event();
|
||||
show_changeset_tooltip();
|
||||
timeagoActivate();
|
||||
})
|
||||
</script>
|
||||
|
|
@ -495,4 +493,4 @@ Mjk3M3B4OyI+VE0KICAgICAgICAgICAgPC90ZXh0PgogICAgICAgIDwvc3ZnPg==
|
|||
</div><!-- /.modal-dialog -->
|
||||
</div><!-- /.modal -->
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue