Merge pull request #28816 from nextcloud/fix/deprecated-toolip-methods

Migrate deprecated tooltip methods
This commit is contained in:
Carl Schwan 2021-09-30 17:31:21 +02:00 committed by GitHub
commit eea3d7d47d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 16 additions and 16 deletions

View file

@ -31,13 +31,13 @@ window.addEventListener('DOMContentLoaded', function() {
var $input = $(e.trigger);
$input.tooltip('hide')
.attr('data-original-title', t('core', 'Copied!'))
.tooltip('fixTitle')
.tooltip('_fixTitle')
.tooltip({placement: 'bottom', trigger: 'manual'})
.tooltip('show');
_.delay(function() {
$input.tooltip('hide')
.attr('data-original-title', t('core', 'Copy'))
.tooltip('fixTitle');
.tooltip('_fixTitle');
}, 3000);
});
clipboard.on('error', function (e) {
@ -53,13 +53,13 @@ window.addEventListener('DOMContentLoaded', function() {
$input.tooltip('hide')
.attr('data-original-title', actionMsg)
.tooltip('fixTitle')
.tooltip('_fixTitle')
.tooltip({placement: 'bottom', trigger: 'manual'})
.tooltip('show');
_.delay(function () {
$input.tooltip('hide')
.attr('data-original-title', t('core', 'Copy'))
.tooltip('fixTitle');
.tooltip('_fixTitle');
}, 3000);
});

View file

@ -2945,7 +2945,7 @@
} catch (error) {
input.attr('title', error);
input.tooltip({placement: 'right', trigger: 'manual'});
input.tooltip('fixTitle');
input.tooltip('_fixTitle');
input.tooltip('show');
input.addClass('error');
}
@ -2960,7 +2960,7 @@
} catch (error) {
input.attr('title', error);
input.tooltip({placement: 'right', trigger: 'manual'});
input.tooltip('fixTitle');
input.tooltip('_fixTitle');
input.tooltip('show');
input.addClass('error');
}

View file

@ -72,13 +72,13 @@
var $el = $(e.trigger);
$el.tooltip('hide')
.attr('data-original-title', t('core', 'Copied!'))
.tooltip('fixTitle')
.tooltip('_fixTitle')
.tooltip({placement: 'bottom', trigger: 'manual'})
.tooltip('show');
_.delay(function() {
$el.tooltip('hide');
$el.attr('data-original-title', t('files', 'Copy direct link (only works for users who have access to this file/folder)'))
.tooltip('fixTitle');
.tooltip('_fixTitle');
}, 3000);
});
clipboard.on('error', function(e) {

View file

@ -138,7 +138,7 @@
} catch (error) {
$input.attr('title', error);
$input.tooltip({placement: 'right', trigger: 'manual', 'container': '.newFileMenu'});
$input.tooltip('fixTitle');
$input.tooltip('_fixTitle');
$input.tooltip('show');
$input.addClass('error');
}

View file

@ -1235,7 +1235,7 @@ MountConfigListView.prototype = _.extend({
$statusSpan.attr('title', message);
$statusSpan.tooltip();
} else {
$statusSpan.tooltip('destroy');
$statusSpan.tooltip('dispose');
}
},

View file

@ -163,7 +163,7 @@ window.addEventListener('DOMContentLoaded', function () {
} catch (error) {
$('#theming-name').attr('title', error);
$('#theming-name').tooltip({placement: 'top', trigger: 'manual'});
$('#theming-name').tooltip('fixTitle');
$('#theming-name').tooltip('_fixTitle');
$('#theming-name').tooltip('show');
$('#theming-name').addClass('error');
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -406,7 +406,7 @@ const Dialogs = {
trigger: 'manual',
'container': '.newFolderMenu'
})
$input.tooltip('fixTitle')
$input.tooltip('_fixTitle')
$input.tooltip('show')
$input.addClass('error')
}