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 @@
diff --git a/rhodecode/templates/files/files.html b/rhodecode/templates/files/files.html --- a/rhodecode/templates/files/files.html +++ b/rhodecode/templates/files/files.html @@ -121,7 +121,6 @@ '{1}'.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(); } diff --git a/rhodecode/templates/followers/followers_data.html b/rhodecode/templates/followers/followers_data.html --- a/rhodecode/templates/followers/followers_data.html +++ b/rhodecode/templates/followers/followers_data.html @@ -23,8 +23,6 @@ $(document).on('pjax:success',function(){ show_more_event(); timeagoActivate(); - tooltip_activate(); - show_changeset_tooltip(); }); ${c.followers_pager.pager('$link_previous ~2~ $link_next')} diff --git a/rhodecode/templates/forks/forks_data.html b/rhodecode/templates/forks/forks_data.html --- a/rhodecode/templates/forks/forks_data.html +++ b/rhodecode/templates/forks/forks_data.html @@ -38,8 +38,6 @@ $(document).on('pjax:success',function(){ show_more_event(); timeagoActivate(); - tooltip_activate(); - show_changeset_tooltip(); }); ${c.forks_pager.pager('$link_previous ~2~ $link_next')} diff --git a/rhodecode/templates/index_base.html b/rhodecode/templates/index_base.html --- a/rhodecode/templates/index_base.html +++ b/rhodecode/templates/index_base.html @@ -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(); } }); diff --git a/rhodecode/templates/journal/journal.html b/rhodecode/templates/journal/journal.html --- a/rhodecode/templates/journal/journal.html +++ b/rhodecode/templates/journal/journal.html @@ -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}); diff --git a/rhodecode/templates/journal/journal_data.html b/rhodecode/templates/journal/journal_data.html --- a/rhodecode/templates/journal/journal_data.html +++ b/rhodecode/templates/journal/journal_data.html @@ -44,8 +44,6 @@ $(document).on('pjax:success',function(){ show_more_event(); timeagoActivate(); - tooltip_activate(); - show_changeset_tooltip(); }); %else: diff --git a/rhodecode/templates/pullrequests/pullrequests.html b/rhodecode/templates/pullrequests/pullrequests.html --- a/rhodecode/templates/pullrequests/pullrequests.html +++ b/rhodecode/templates/pullrequests/pullrequests.html @@ -112,7 +112,6 @@ }, "drawCallback": function( settings, json ) { timeagoActivate(); - tooltip_activate(); }, "createdRow": function ( row, data, index ) { if (data['closed']) { diff --git a/rhodecode/templates/tags/tags.html b/rhodecode/templates/tags/tags.html --- a/rhodecode/templates/tags/tags.html +++ b/rhodecode/templates/tags/tags.html @@ -72,7 +72,6 @@ }, "initComplete": function(settings, json) { get_datatable_count(); - tooltip_activate(); timeagoActivate(); compare_radio_buttons("${c.repo_name}", 'tag'); } @@ -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/tests/test b/rhodecode/tests/test --- a/rhodecode/tests/test +++ b/rhodecode/tests/test @@ -59,9 +59,7 @@ @@ -495,4 +493,4 @@ Mjk3M3B4OyI+VE0KICAgICAgICAgICAgPC90ZXh0
- \ No newline at end of file +