diff --git a/rhodecode/public/js/src/rhodecode/comments.js b/rhodecode/public/js/src/rhodecode/comments.js --- a/rhodecode/public/js/src/rhodecode/comments.js +++ b/rhodecode/public/js/src/rhodecode/comments.js @@ -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(){ diff --git a/rhodecode/public/js/src/rhodecode/tooltips.js b/rhodecode/public/js/src/rhodecode/tooltips.js --- a/rhodecode/public/js/src/rhodecode/tooltips.js +++ b/rhodecode/public/js/src/rhodecode/tooltips.js @@ -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'); +} diff --git a/rhodecode/templates/admin/admin_log.html b/rhodecode/templates/admin/admin_log.html --- a/rhodecode/templates/admin/admin_log.html +++ b/rhodecode/templates/admin/admin_log.html @@ -50,8 +50,6 @@ //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'); diff --git a/rhodecode/templates/admin/gists/index.html b/rhodecode/templates/admin/gists/index.html --- a/rhodecode/templates/admin/gists/index.html +++ b/rhodecode/templates/admin/gists/index.html @@ -122,7 +122,6 @@ }, "initComplete": function( settings, json ) { timeagoActivate(); - tooltip_activate(); get_datatable_count(); } }); @@ -130,7 +129,6 @@ // update the counter when things change $('#gist_list_table').on('draw.dt', function() { timeagoActivate(); - tooltip_activate(); get_datatable_count(); }); diff --git a/rhodecode/templates/admin/my_account/my_account_repos.html b/rhodecode/templates/admin/my_account/my_account_repos.html --- a/rhodecode/templates/admin/my_account/my_account_repos.html +++ b/rhodecode/templates/admin/my_account/my_account_repos.html @@ -41,7 +41,6 @@ }, "initComplete": function( settings, json ) { get_datatable_count(); - tooltip_activate(); quick_repo_menu(); } }); diff --git a/rhodecode/templates/admin/my_account/my_account_watched.html b/rhodecode/templates/admin/my_account/my_account_watched.html --- a/rhodecode/templates/admin/my_account/my_account_watched.html +++ b/rhodecode/templates/admin/my_account/my_account_watched.html @@ -39,7 +39,6 @@ }, "initComplete": function( settings, json ) { get_datatable_count(); - tooltip_activate(); quick_repo_menu(); } }); diff --git a/rhodecode/templates/admin/repo_groups/repo_groups.html b/rhodecode/templates/admin/repo_groups/repo_groups.html --- a/rhodecode/templates/admin/repo_groups/repo_groups.html +++ b/rhodecode/templates/admin/repo_groups/repo_groups.html @@ -66,7 +66,6 @@ }, "initComplete": function( settings, json ) { get_datatable_count(); - tooltip_activate(); quick_repo_menu(); } }); diff --git a/rhodecode/templates/admin/repos/repos.html b/rhodecode/templates/admin/repos/repos.html --- a/rhodecode/templates/admin/repos/repos.html +++ b/rhodecode/templates/admin/repos/repos.html @@ -73,7 +73,6 @@ }, "initComplete": function( settings, json ) { get_datatable_count(); - tooltip_activate(); quick_repo_menu(); } }); diff --git a/rhodecode/templates/admin/user_groups/user_groups.html b/rhodecode/templates/admin/user_groups/user_groups.html --- a/rhodecode/templates/admin/user_groups/user_groups.html +++ b/rhodecode/templates/admin/user_groups/user_groups.html @@ -70,7 +70,6 @@ }, "initComplete": function( settings, json ) { get_datatable_count(); - tooltip_activate(); } }); diff --git a/rhodecode/templates/admin/users/users.html b/rhodecode/templates/admin/users/users.html --- a/rhodecode/templates/admin/users/users.html +++ b/rhodecode/templates/admin/users/users.html @@ -110,7 +110,6 @@ }, "initComplete": function( settings, json ) { get_datatable_count(); - tooltip_activate(); }, "createdRow": function ( row, data, index ) { if (!data['active_raw']){ diff --git a/rhodecode/templates/base/root.html b/rhodecode/templates/base/root.html --- a/rhodecode/templates/base/root.html +++ b/rhodecode/templates/base/root.html @@ -124,9 +124,7 @@ diff --git a/rhodecode/templates/bookmarks/bookmarks.html b/rhodecode/templates/bookmarks/bookmarks.html --- a/rhodecode/templates/bookmarks/bookmarks.html +++ b/rhodecode/templates/bookmarks/bookmarks.html @@ -72,7 +72,6 @@ }, "initComplete": function(settings, json) { get_datatable_count(); - tooltip_activate(); timeagoActivate(); compare_radio_buttons("${c.repo_name}", 'book'); } @@ -81,7 +80,6 @@ // update when things change $('#obj_list_table').on('draw.dt', function() { get_datatable_count(); - tooltip_activate(); timeagoActivate(); }); diff --git a/rhodecode/templates/branches/branches.html b/rhodecode/templates/branches/branches.html --- a/rhodecode/templates/branches/branches.html +++ b/rhodecode/templates/branches/branches.html @@ -71,7 +71,6 @@ }, "initComplete": function( settings, json ) { get_datatable_count(); - tooltip_activate(); timeagoActivate(); compare_radio_buttons("${c.repo_name}", 'branch'); } @@ -80,7 +79,6 @@ // update when things change $('#obj_list_table').on('draw.dt', function() { get_datatable_count(); - tooltip_activate(); timeagoActivate(); }); diff --git a/rhodecode/templates/changelog/changelog_summary_data.html b/rhodecode/templates/changelog/changelog_summary_data.html --- a/rhodecode/templates/changelog/changelog_summary_data.html +++ b/rhodecode/templates/changelog/changelog_summary_data.html @@ -77,7 +77,7 @@