move the hint from (i) into button tooltip
This commit is contained in:
parent
509e054485
commit
6278eaf804
|
@ -24,8 +24,10 @@ function StyleSettings() {
|
|||
helpPopup.show(t('editorSettingLabel'), $create([
|
||||
ui,
|
||||
$create('.buttons', [
|
||||
$create('button', {onclick: helpPopup.close}, t('confirmClose')),
|
||||
createInfo({title: t('autosaveNotice')}),
|
||||
$create('button', {
|
||||
onclick: helpPopup.close,
|
||||
title: t('autosaveNotice'),
|
||||
}, t('confirmClose')),
|
||||
]),
|
||||
]), {
|
||||
className: 'style-settings-popup',
|
||||
|
@ -82,13 +84,6 @@ function StyleSettings() {
|
|||
};
|
||||
}
|
||||
|
||||
function createInfo(props) {
|
||||
const info = $('.svg-icon.info').closest('a').cloneNode(true);
|
||||
info.id = '';
|
||||
info.dataset.cmd = 'note';
|
||||
return Object.assign(info, props);
|
||||
}
|
||||
|
||||
function createInput(selector, getter, setter) {
|
||||
const el = $(selector, ui);
|
||||
el.addEventListener('change', setter);
|
||||
|
|
Loading…
Reference in New Issue
Block a user