mirror of
https://github.com/nextcloud/server.git
synced 2026-04-26 00:27:49 -04:00
Merge pull request #28816 from nextcloud/fix/deprecated-toolip-methods
Migrate deprecated tooltip methods
This commit is contained in:
commit
eea3d7d47d
11 changed files with 16 additions and 16 deletions
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
2
core/js/dist/login.js
vendored
2
core/js/dist/login.js
vendored
File diff suppressed because one or more lines are too long
2
core/js/dist/login.js.map
vendored
2
core/js/dist/login.js.map
vendored
File diff suppressed because one or more lines are too long
2
core/js/dist/main.js
vendored
2
core/js/dist/main.js
vendored
File diff suppressed because one or more lines are too long
2
core/js/dist/main.js.map
vendored
2
core/js/dist/main.js.map
vendored
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…
Reference in a new issue