Commit 909f8076 authored by Enrique Alcántara's avatar Enrique Alcántara

Merge branch...

Merge branch '249790-replace-bstooltip-with-gltooltip-in-app-assets-javascripts-right_sidebar-js' into 'master'

Replace tooltip api calls with facade calls in right_sidebar.js

Closes #249790

See merge request gitlab-org/gitlab!44148
parents 79189fbd 309c7cbf
......@@ -5,6 +5,7 @@ import Cookies from 'js-cookie';
import { deprecatedCreateFlash as flash } from './flash';
import axios from './lib/utils/axios_utils';
import { sprintf, s__, __ } from './locale';
import { fixTitle, hide } from '~/tooltips';
function Sidebar() {
this.toggleTodo = this.toggleTodo.bind(this);
......@@ -77,7 +78,7 @@ Sidebar.prototype.toggleTodo = function(e) {
const ajaxType = $this.data('deletePath') ? 'delete' : 'post';
const url = String($this.data('deletePath') || $this.data('createPath'));
$this.tooltip('hide');
hide($this);
$('.js-issuable-todo')
.disable()
......@@ -119,7 +120,7 @@ Sidebar.prototype.todoUpdateDone = function(data) {
.data('deletePath', deletePath);
if ($el.hasClass('has-tooltip')) {
$el.tooltip('_fixTitle');
fixTitle($el);
}
if (typeof $el.data('isCollapsed') !== 'undefined') {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment