don't save the style in toggleStyle; use data-hotkey-tooltip
This commit is contained in:
parent
9affcd13bc
commit
fb1ef71f25
|
@ -19,10 +19,6 @@
|
||||||
"message": "Изнасяне на стилове",
|
"message": "Изнасяне на стилове",
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"styleEnabledToggleHint": {
|
|
||||||
"message": "Натиснете 'Alt-Enter', за да превключите състоянието и запазите стила",
|
|
||||||
"description": "Help text for the '[x] enable' checkbox in the editor"
|
|
||||||
},
|
|
||||||
"exportLabel": {
|
"exportLabel": {
|
||||||
"message": "Изнасяне",
|
"message": "Изнасяне",
|
||||||
"description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)"
|
"description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)"
|
||||||
|
|
|
@ -27,10 +27,6 @@
|
||||||
"message": "Interval automatické aktualizace stylů v hodinách (0 = vypnuto)",
|
"message": "Interval automatické aktualizace stylů v hodinách (0 = vypnuto)",
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"styleEnabledToggleHint": {
|
|
||||||
"message": "Stiskem Alt + Enter můžete zapnout/vypnout a uložit styl",
|
|
||||||
"description": "Help text for the '[x] enable' checkbox in the editor"
|
|
||||||
},
|
|
||||||
"exportLabel": {
|
"exportLabel": {
|
||||||
"message": "Exportovat",
|
"message": "Exportovat",
|
||||||
"description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)"
|
"description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)"
|
||||||
|
|
|
@ -43,10 +43,6 @@
|
||||||
"message": "älteste zuerst",
|
"message": "älteste zuerst",
|
||||||
"description": "Text added to indicate that sorting a date would add the oldest entries at the top"
|
"description": "Text added to indicate that sorting a date would add the oldest entries at the top"
|
||||||
},
|
},
|
||||||
"styleEnabledToggleHint": {
|
|
||||||
"message": "Drücke Alt-Enter, um den Style zu aktivieren / deaktivieren und gleichzeitig zu speichern.",
|
|
||||||
"description": "Help text for the '[x] enable' checkbox in the editor"
|
|
||||||
},
|
|
||||||
"exportLabel": {
|
"exportLabel": {
|
||||||
"message": "Exportieren",
|
"message": "Exportieren",
|
||||||
"description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)"
|
"description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)"
|
||||||
|
|
|
@ -934,10 +934,6 @@
|
||||||
"message": "Enabled",
|
"message": "Enabled",
|
||||||
"description": "Label for the enabled state of styles"
|
"description": "Label for the enabled state of styles"
|
||||||
},
|
},
|
||||||
"styleEnabledToggleHint": {
|
|
||||||
"message": "Press Alt-Enter to toggle the enabled/disabled state",
|
|
||||||
"description": "Help text for the '[x] enable' checkbox in the editor"
|
|
||||||
},
|
|
||||||
"styleInstall": {
|
"styleInstall": {
|
||||||
"message": "Install '$stylename$' into Stylus?",
|
"message": "Install '$stylename$' into Stylus?",
|
||||||
"description": "Confirmation when installing a style",
|
"description": "Confirmation when installing a style",
|
||||||
|
|
|
@ -43,10 +43,6 @@
|
||||||
"message": "el más antiguo primero",
|
"message": "el más antiguo primero",
|
||||||
"description": "Text added to indicate that sorting a date would add the oldest entries at the top"
|
"description": "Text added to indicate that sorting a date would add the oldest entries at the top"
|
||||||
},
|
},
|
||||||
"styleEnabledToggleHint": {
|
|
||||||
"message": "Pulse Alt-Intro para accionar el estado habilitado/deshabilitado y guardar el estilo",
|
|
||||||
"description": "Help text for the '[x] enable' checkbox in the editor"
|
|
||||||
},
|
|
||||||
"exportLabel": {
|
"exportLabel": {
|
||||||
"message": "Exportar",
|
"message": "Exportar",
|
||||||
"description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)"
|
"description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)"
|
||||||
|
|
|
@ -39,10 +39,6 @@
|
||||||
"message": "vanemad eespool",
|
"message": "vanemad eespool",
|
||||||
"description": "Text added to indicate that sorting a date would add the oldest entries at the top"
|
"description": "Text added to indicate that sorting a date would add the oldest entries at the top"
|
||||||
},
|
},
|
||||||
"styleEnabledToggleHint": {
|
|
||||||
"message": "Vajuta Alt-Enter, et lülitada ümber lubatud/keelatud olek ja salvestada stiil",
|
|
||||||
"description": "Help text for the '[x] enable' checkbox in the editor"
|
|
||||||
},
|
|
||||||
"exportLabel": {
|
"exportLabel": {
|
||||||
"message": "Ekspordi",
|
"message": "Ekspordi",
|
||||||
"description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)"
|
"description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)"
|
||||||
|
|
|
@ -27,10 +27,6 @@
|
||||||
"message": "Stílus automatikus frissítési intervalluma órában megadva (álltsd 0-ra a kikapcsoláshoz)",
|
"message": "Stílus automatikus frissítési intervalluma órában megadva (álltsd 0-ra a kikapcsoláshoz)",
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
"styleEnabledToggleHint": {
|
|
||||||
"message": "Nyomj Alt-Entert az állapot engedélyezéséhez/letiltásához és a stílus mentéséhez",
|
|
||||||
"description": "Help text for the '[x] enable' checkbox in the editor"
|
|
||||||
},
|
|
||||||
"exportLabel": {
|
"exportLabel": {
|
||||||
"message": "Exportálás",
|
"message": "Exportálás",
|
||||||
"description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)"
|
"description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)"
|
||||||
|
|
|
@ -43,10 +43,6 @@
|
||||||
"message": "古い順",
|
"message": "古い順",
|
||||||
"description": "Text added to indicate that sorting a date would add the oldest entries at the top"
|
"description": "Text added to indicate that sorting a date would add the oldest entries at the top"
|
||||||
},
|
},
|
||||||
"styleEnabledToggleHint": {
|
|
||||||
"message": "Alt-Enterを押すと、有効/無効の状態を切り替え、スタイルを保存します",
|
|
||||||
"description": "Help text for the '[x] enable' checkbox in the editor"
|
|
||||||
},
|
|
||||||
"exportLabel": {
|
"exportLabel": {
|
||||||
"message": "エクスポート",
|
"message": "エクスポート",
|
||||||
"description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)"
|
"description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)"
|
||||||
|
|
|
@ -43,10 +43,6 @@
|
||||||
"message": "najpierw najstarsze",
|
"message": "najpierw najstarsze",
|
||||||
"description": "Text added to indicate that sorting a date would add the oldest entries at the top"
|
"description": "Text added to indicate that sorting a date would add the oldest entries at the top"
|
||||||
},
|
},
|
||||||
"styleEnabledToggleHint": {
|
|
||||||
"message": "Naciśnij Alt-Enter, aby przełączyć stan włączenia lub wyłączenia i zapisać styl",
|
|
||||||
"description": "Help text for the '[x] enable' checkbox in the editor"
|
|
||||||
},
|
|
||||||
"exportLabel": {
|
"exportLabel": {
|
||||||
"message": "Eksportuj",
|
"message": "Eksportuj",
|
||||||
"description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)"
|
"description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)"
|
||||||
|
|
|
@ -39,10 +39,6 @@
|
||||||
"message": "cel mai vechi la început",
|
"message": "cel mai vechi la început",
|
||||||
"description": "Text added to indicate that sorting a date would add the oldest entries at the top"
|
"description": "Text added to indicate that sorting a date would add the oldest entries at the top"
|
||||||
},
|
},
|
||||||
"styleEnabledToggleHint": {
|
|
||||||
"message": "Apăsți Alt-Enter pentru a activa/dezactiva tema și pentru a o salva",
|
|
||||||
"description": "Help text for the '[x] enable' checkbox in the editor"
|
|
||||||
},
|
|
||||||
"installButton": {
|
"installButton": {
|
||||||
"message": "Instalați tema",
|
"message": "Instalați tema",
|
||||||
"description": "Label for install button"
|
"description": "Label for install button"
|
||||||
|
|
|
@ -43,10 +43,6 @@
|
||||||
"message": "старые сверху",
|
"message": "старые сверху",
|
||||||
"description": "Text added to indicate that sorting a date would add the oldest entries at the top"
|
"description": "Text added to indicate that sorting a date would add the oldest entries at the top"
|
||||||
},
|
},
|
||||||
"styleEnabledToggleHint": {
|
|
||||||
"message": "Нажмите Alt-Enter чтобы включить/выключить стиль и сохранить его.",
|
|
||||||
"description": "Help text for the '[x] enable' checkbox in the editor"
|
|
||||||
},
|
|
||||||
"exportLabel": {
|
"exportLabel": {
|
||||||
"message": "Экспорт",
|
"message": "Экспорт",
|
||||||
"description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)"
|
"description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)"
|
||||||
|
|
|
@ -43,10 +43,6 @@
|
||||||
"message": "最旧的优先",
|
"message": "最旧的优先",
|
||||||
"description": "Text added to indicate that sorting a date would add the oldest entries at the top"
|
"description": "Text added to indicate that sorting a date would add the oldest entries at the top"
|
||||||
},
|
},
|
||||||
"styleEnabledToggleHint": {
|
|
||||||
"message": "按 Alt + Enter 切换启用/禁用状态并保存样式",
|
|
||||||
"description": "Help text for the '[x] enable' checkbox in the editor"
|
|
||||||
},
|
|
||||||
"exportLabel": {
|
"exportLabel": {
|
||||||
"message": "导出",
|
"message": "导出",
|
||||||
"description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)"
|
"description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)"
|
||||||
|
|
|
@ -43,10 +43,6 @@
|
||||||
"message": "最舊的優先",
|
"message": "最舊的優先",
|
||||||
"description": "Text added to indicate that sorting a date would add the oldest entries at the top"
|
"description": "Text added to indicate that sorting a date would add the oldest entries at the top"
|
||||||
},
|
},
|
||||||
"styleEnabledToggleHint": {
|
|
||||||
"message": "按下 Alt + Enter 以切換啟用/停用狀態並儲存樣式",
|
|
||||||
"description": "Help text for the '[x] enable' checkbox in the editor"
|
|
||||||
},
|
|
||||||
"exportLabel": {
|
"exportLabel": {
|
||||||
"message": "導出",
|
"message": "導出",
|
||||||
"description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)"
|
"description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)"
|
||||||
|
|
|
@ -249,7 +249,10 @@
|
||||||
<a id="url" target="_blank"><svg class="svg-icon"><use xlink:href="#svg-icon-external-link"/></svg></a>
|
<a id="url" target="_blank"><svg class="svg-icon"><use xlink:href="#svg-icon-external-link"/></svg></a>
|
||||||
</div>
|
</div>
|
||||||
<div id="basic-info-enabled">
|
<div id="basic-info-enabled">
|
||||||
<label id="enabled-label" i18n-text="styleEnabledLabel" i18n-title="styleEnabledToggleHint">
|
<label id="enabled-label"
|
||||||
|
i18n-text="styleEnabledLabel"
|
||||||
|
i18n-title="toggleStyle"
|
||||||
|
data-hotkey-tooltip="toggleStyle">
|
||||||
<input type="checkbox" id="enabled" class="style-contributor">
|
<input type="checkbox" id="enabled" class="style-contributor">
|
||||||
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
<svg class="svg-icon checked"><use xlink:href="#svg-icon-checked"/></svg>
|
||||||
</label>
|
</label>
|
||||||
|
|
|
@ -342,7 +342,6 @@ function setCleanSection(section) {
|
||||||
|
|
||||||
function toggleStyle() {
|
function toggleStyle() {
|
||||||
$('#enabled').checked = !$('#enabled').checked;
|
$('#enabled').checked = !$('#enabled').checked;
|
||||||
save();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function save() {
|
function save() {
|
||||||
|
@ -530,11 +529,6 @@ function showToMozillaHelp(event) {
|
||||||
showHelp(t('styleMozillaFormatHeading'), t('styleToMozillaFormatHelp'));
|
showHelp(t('styleMozillaFormatHeading'), t('styleToMozillaFormatHelp'));
|
||||||
}
|
}
|
||||||
|
|
||||||
function showToggleStyleHelp(event) {
|
|
||||||
event.preventDefault();
|
|
||||||
showHelp(t('helpAlt'), t('styleEnabledToggleHint'));
|
|
||||||
}
|
|
||||||
|
|
||||||
function showHelp(title = '', body) {
|
function showHelp(title = '', body) {
|
||||||
const div = $('#help-popup');
|
const div = $('#help-popup');
|
||||||
div.className = '';
|
div.className = '';
|
||||||
|
|
|
@ -189,7 +189,6 @@ function createSourceEditor(style) {
|
||||||
dirty.modify('enabled', style.enabled, value);
|
dirty.modify('enabled', style.enabled, value);
|
||||||
style.enabled = value;
|
style.enabled = value;
|
||||||
updateMeta();
|
updateMeta();
|
||||||
save();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function save() {
|
function save() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user