diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-15 09:09:39 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-15 09:09:39 +0300 |
commit | 01ef10900ad5ce2efea5abe6bbbc6d118b9ee6f8 (patch) | |
tree | a71b64d6c9bda41468bac890a5614c8ff958ffa7 /app/assets/javascripts/right_sidebar.js | |
parent | a3ac132686ea5e5e83c184334bf7f03bb641211c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/right_sidebar.js')
-rw-r--r-- | app/assets/javascripts/right_sidebar.js | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/app/assets/javascripts/right_sidebar.js b/app/assets/javascripts/right_sidebar.js index 24041a60e3d..36f5e6f4ce1 100644 --- a/app/assets/javascripts/right_sidebar.js +++ b/app/assets/javascripts/right_sidebar.js @@ -2,7 +2,7 @@ import $ from 'jquery'; import Cookies from 'js-cookie'; -import { fixTitle, hide } from '~/tooltips'; +import { hide } from '~/tooltips'; import createFlash from './flash'; import axios from './lib/utils/axios_utils'; import { sprintf, s__, __ } from './locale'; @@ -107,36 +107,6 @@ Sidebar.prototype.toggleTodo = function (e) { ); }; -Sidebar.prototype.todoUpdateDone = function (data) { - const deletePath = data.delete_path ? data.delete_path : null; - const attrPrefix = deletePath ? 'mark' : 'todo'; - const $todoBtns = $('.js-issuable-todo'); - - $(document).trigger('todo:toggle', data.count); - - $todoBtns.each((i, el) => { - const $el = $(el); - const $elText = $el.find('.js-issuable-todo-inner'); - - $el - .removeClass('is-loading') - .enable() - .attr('aria-label', $el.data(`${attrPrefix}Text`)) - .attr('title', $el.data(`${attrPrefix}Text`)) - .data('deletePath', deletePath); - - if ($el.hasClass('has-tooltip')) { - fixTitle(el); - } - - if (typeof $el.data('isCollapsed') !== 'undefined') { - $elText.html($el.data(`${attrPrefix}Icon`)); - } else { - $elText.text($el.data(`${attrPrefix}Text`)); - } - }); -}; - Sidebar.prototype.sidebarCollapseClicked = function (e) { if ($(e.currentTarget).hasClass('dont-change-state')) { return; |