Updated button styles
This commit is contained in:
parent
888075d21a
commit
e18b8438ae
@ -151,6 +151,7 @@ async function formWrite(options) {
|
||||
function formSetupEventListeners() {
|
||||
$('#dict-purge-link').click(utilAsync(onDictionaryPurge));
|
||||
$('#dict-file').change(utilAsync(onDictionaryImport));
|
||||
$('#dict-file-button').click(onDictionaryImportButtonClick);
|
||||
|
||||
$('#field-templates-reset').click(utilAsync(onAnkiFieldTemplatesReset));
|
||||
$('input, select, textarea').not('.anki-model').not('.profile-form *').change(utilAsync(onFormOptionsChanged));
|
||||
@ -448,6 +449,11 @@ async function onDictionaryPurge(e) {
|
||||
}
|
||||
}
|
||||
|
||||
function onDictionaryImportButtonClick() {
|
||||
const dictFile = document.querySelector('#dict-file');
|
||||
dictFile.click();
|
||||
}
|
||||
|
||||
async function onDictionaryImport(e) {
|
||||
const dictFile = $('#dict-file');
|
||||
const dictControls = $('#dict-importer').hide();
|
||||
|
@ -368,7 +368,8 @@
|
||||
<a href="https://foosoft.net/projects/yomichan" target="_blank" rel="noopener">download free dictionaries</a>
|
||||
for use with this extension and to learn about importing proprietary EPWING dictionaries.
|
||||
</p>
|
||||
<input type="file" id="dict-file">
|
||||
<button class="btn btn-primary" id="dict-file-button">Import Dictionary</button>
|
||||
<div hidden><input type="file" id="dict-file"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -402,7 +403,7 @@
|
||||
</div></div>
|
||||
|
||||
<div>
|
||||
<input type="button" value="Refresh" id="storage-refresh" />
|
||||
<button class="btn btn-default" id="storage-refresh">Refresh</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user