Convert fixTitle to _fixTitle for regenerating tooltip titles
This commit is contained in:
parent
a3bc692e59
commit
1536c69f6a
|
@ -392,7 +392,7 @@ class AwardsHandler {
|
|||
.removeAttr('data-title')
|
||||
.removeAttr('data-original-title')
|
||||
.attr('title', this.toSentence(authors))
|
||||
.tooltip('fixTitle');
|
||||
.tooltip('_fixTitle');
|
||||
}
|
||||
|
||||
addYouToUserList(votesBlock, emoji) {
|
||||
|
@ -405,7 +405,7 @@ class AwardsHandler {
|
|||
users.unshift('You');
|
||||
return awardBlock
|
||||
.attr('title', this.toSentence(users))
|
||||
.tooltip('fixTitle');
|
||||
.tooltip('_fixTitle');
|
||||
}
|
||||
|
||||
createAwardButtonForVotesBlock(votesBlock, emojiName) {
|
||||
|
|
|
@ -8,10 +8,10 @@ function showTooltip(target, title) {
|
|||
if (!$target.data('hideTooltip')) {
|
||||
$target
|
||||
.attr('title', title)
|
||||
.tooltip('fixTitle')
|
||||
.tooltip('_fixTitle')
|
||||
.tooltip('show')
|
||||
.attr('title', originalTitle)
|
||||
.tooltip('fixTitle');
|
||||
.tooltip('_fixTitle');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -116,7 +116,7 @@ export default class BlobViewer {
|
|||
this.copySourceBtn.classList.add('disabled');
|
||||
}
|
||||
|
||||
$(this.copySourceBtn).tooltip('fixTitle');
|
||||
$(this.copySourceBtn).tooltip('_fixTitle');
|
||||
}
|
||||
|
||||
switchToViewer(name) {
|
||||
|
|
|
@ -57,7 +57,7 @@ export default function initCompareAutocomplete() {
|
|||
$dropdownContainer.on('click', '.dropdown-content a', (e) => {
|
||||
$dropdown.prop('title', e.target.text.replace(/_+?/g, '-'));
|
||||
if ($dropdown.hasClass('has-tooltip')) {
|
||||
$dropdown.tooltip('fixTitle');
|
||||
$dropdown.tooltip('_fixTitle');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -79,7 +79,7 @@ const DiffNoteAvatars = Vue.extend({
|
|||
storeState: {
|
||||
handler() {
|
||||
this.$nextTick(() => {
|
||||
$('.has-tooltip', this.$el).tooltip('fixTitle');
|
||||
$('.has-tooltip', this.$el).tooltip('_fixTitle');
|
||||
|
||||
// We need to add/remove a class to an element that is outside the Vue instance
|
||||
this.addNoCommentClass();
|
||||
|
@ -138,7 +138,7 @@ const DiffNoteAvatars = Vue.extend({
|
|||
this.$nextTick(() => {
|
||||
this.setDiscussionVisible();
|
||||
|
||||
$('.has-tooltip', this.$el).tooltip('fixTitle');
|
||||
$('.has-tooltip', this.$el).tooltip('_fixTitle');
|
||||
$('.has-tooltip', this.$el).tooltip('hide');
|
||||
});
|
||||
},
|
||||
|
|
|
@ -61,7 +61,7 @@ const ResolveBtn = Vue.extend({
|
|||
this.$nextTick(() => {
|
||||
$(this.$refs.button)
|
||||
.tooltip('hide')
|
||||
.tooltip('fixTitle');
|
||||
.tooltip('_fixTitle');
|
||||
});
|
||||
},
|
||||
resolve: function () {
|
||||
|
|
|
@ -121,7 +121,7 @@ export default class LabelsSelect {
|
|||
|
||||
$sidebarLabelTooltip
|
||||
.attr('title', labelTooltipTitle)
|
||||
.tooltip('fixTitle');
|
||||
.tooltip('_fixTitle');
|
||||
|
||||
$('.has-tooltip', $value).tooltip({
|
||||
container: 'body'
|
||||
|
|
|
@ -51,7 +51,7 @@ export const rstrip = (val) => {
|
|||
return val;
|
||||
};
|
||||
|
||||
export const updateTooltipTitle = ($tooltipEl, newTitle) => $tooltipEl.attr('title', newTitle).tooltip('fixTitle');
|
||||
export const updateTooltipTitle = ($tooltipEl, newTitle) => $tooltipEl.attr('title', newTitle).tooltip('_fixTitle');
|
||||
|
||||
export const disableButtonIfEmptyField = (fieldSelector, buttonSelector, eventName = 'input') => {
|
||||
const field = $(fieldSelector);
|
||||
|
|
|
@ -42,7 +42,7 @@ export default class ProjectLabelSubscription {
|
|||
const $button = $(button);
|
||||
|
||||
if ($button.attr('data-original-title')) {
|
||||
$button.tooltip('hide').attr('data-original-title', newAction).tooltip('fixTitle');
|
||||
$button.tooltip('hide').attr('data-original-title', newAction).tooltip('_fixTitle');
|
||||
}
|
||||
|
||||
return button;
|
||||
|
|
|
@ -102,7 +102,7 @@ Sidebar.prototype.todoUpdateDone = function(data) {
|
|||
.attr('title', $el.data(`${attrPrefix}Text`));
|
||||
|
||||
if ($el.hasClass('has-tooltip')) {
|
||||
$el.tooltip('fixTitle');
|
||||
$el.tooltip('_fixTitle');
|
||||
}
|
||||
|
||||
if ($el.data(`${attrPrefix}Icon`)) {
|
||||
|
|
|
@ -199,7 +199,7 @@ function UsersSelect(currentUser, els, options = {}) {
|
|||
};
|
||||
}
|
||||
$value.html(assigneeTemplate(user));
|
||||
$collapsedSidebar.attr('title', _.escape(user.name)).tooltip('fixTitle');
|
||||
$collapsedSidebar.attr('title', _.escape(user.name)).tooltip('_fixTitle');
|
||||
return $collapsedSidebar.html(collapsedAssigneeTemplate(user));
|
||||
});
|
||||
};
|
||||
|
|
|
@ -6,7 +6,7 @@ export default {
|
|||
},
|
||||
|
||||
componentUpdated(el) {
|
||||
$(el).tooltip('fixTitle');
|
||||
$(el).tooltip('_fixTitle');
|
||||
},
|
||||
|
||||
unbind(el) {
|
||||
|
|
|
@ -628,7 +628,7 @@ Useful links:
|
|||
// good
|
||||
<span title="tooltip text">Foo</span>
|
||||
|
||||
$('span').tooltip('fixTitle');
|
||||
$('span').tooltip('_fixTitle');
|
||||
```
|
||||
|
||||
### The Javascript/Vue Accord
|
||||
|
|
Loading…
Reference in New Issue