mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-31 15:28:19 -04:00
Add cmd check caching.
This commit is contained in:
parent
dfd0e65651
commit
48b4b25317
3 changed files with 30 additions and 10 deletions
|
@ -30,6 +30,7 @@
|
|||
|
||||
var $ = jQuery,
|
||||
module = $('script[data-module]').data('module'),
|
||||
data = {action: 'get', setup: true, options: true, types: true, theme: true, langs: true},
|
||||
url;
|
||||
|
||||
if ($('html').hasClass('no-browser')) {
|
||||
|
@ -39,6 +40,7 @@
|
|||
if (module === 'main') {
|
||||
url = '.';
|
||||
} else if (module === 'info') {
|
||||
data.updatecmds = true;
|
||||
url = 'server/php/index.php';
|
||||
} else {
|
||||
return;
|
||||
|
@ -46,7 +48,7 @@
|
|||
|
||||
$.ajax({
|
||||
url: url,
|
||||
data: {action: 'get', setup: true, options: true, types: true, theme: true, langs: true},
|
||||
data: data,
|
||||
type: 'POST',
|
||||
dataType: 'json'
|
||||
}).done(function (config) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue