|
|
@ -31,8 +31,6 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function () {
|
|
|
|
$(document).ready(function () {
|
|
|
|
setupKeybindings();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
|
|
|
|
if (!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
|
|
|
|
require(['admin/modules/search'], function (search) {
|
|
|
|
require(['admin/modules/search'], function (search) {
|
|
|
|
search.init();
|
|
|
|
search.init();
|
|
|
@ -63,24 +61,6 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function setupKeybindings() {
|
|
|
|
|
|
|
|
require(['mousetrap', 'admin/modules/instance'], function (mousetrap, instance) {
|
|
|
|
|
|
|
|
mousetrap.bind('ctrl+shift+a r', function () {
|
|
|
|
|
|
|
|
instance.reload();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mousetrap.bind('ctrl+shift+a R', function () {
|
|
|
|
|
|
|
|
socket.emit('admin.restart');
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mousetrap.bind('/', function () {
|
|
|
|
|
|
|
|
$('#acp-search input').focus();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function selectMenuItem(url) {
|
|
|
|
function selectMenuItem(url) {
|
|
|
|
require(['translator'], function (translator) {
|
|
|
|
require(['translator'], function (translator) {
|
|
|
|
url = url
|
|
|
|
url = url
|
|
|
|