mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-01 07:48:20 -04:00
Minor changes.
This commit is contained in:
parent
730263ca55
commit
71d2ff10dc
8 changed files with 24 additions and 17 deletions
|
@ -32,17 +32,19 @@ if (window.attachEvent && !window.addEventListener) { throw 'no-browser'; }
|
|||
// @include "inc/**/*.js"
|
||||
|
||||
var $ = jQuery,
|
||||
mode = $('script[src$="scripts.js"]').data('mode'),
|
||||
url = '.',
|
||||
module = 'main';
|
||||
module = $('script[data-module]').data('module'),
|
||||
url;
|
||||
|
||||
if ($('html').hasClass('no-browser')) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (mode === 'info') {
|
||||
if (module === 'main') {
|
||||
url = '.';
|
||||
} else if (module === 'info') {
|
||||
url = 'server/php/index.php';
|
||||
module = 'info';
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue