1
0
Fork 0
mirror of https://github.com/Findus23/typo3-keyboard.git synced 2024-08-27 19:52:16 +02:00

single quotes

This commit is contained in:
Lukas Winkler 2018-09-11 11:23:12 +02:00
parent 4448635622
commit 050c07d323

View file

@ -1,7 +1,7 @@
/* global Mousetrap */
function getContentDocument() {
const iframe = document.getElementById("typo3-contentIframe");
const iframe = document.getElementById('typo3-contentIframe');
return iframe ? iframe.contentDocument : document;
}
@ -72,17 +72,17 @@ chrome.storage.sync.get(defaultkeys, function (keys) {
return false;
});
Mousetrap.bind(keys.flushFrontendCaches, function () {
const flushFrontendCachesButton = parentDocument.querySelector('.icon-actions-system-cache-clear-impact-low').closest("a");
const flushFrontendCachesButton = parentDocument.querySelector('.icon-actions-system-cache-clear-impact-low').closest('a');
flushFrontendCachesButton.click();
return false;
});
Mousetrap.bind(keys.flushAllCaches, function () {
const flushAllCachesButton = parentDocument.querySelector('.icon-actions-system-cache-clear-impact-high').closest("a");
const flushAllCachesButton = parentDocument.querySelector('.icon-actions-system-cache-clear-impact-high').closest('a');
flushAllCachesButton.click();
return false;
});
Mousetrap.bind(keys.searchField, function () {
const searchField = parentDocument.getElementById("live-search-box");
const searchField = parentDocument.getElementById('live-search-box');
searchField.focus();
return false;
});