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

Migrate deprecated tooltip methods
pull/29027/head
Carl Schwan 3 years ago committed by GitHub
commit eea3d7d47d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);
});

@ -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');
}

@ -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) {

@ -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');
}

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

@ -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

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

Loading…
Cancel
Save