mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-05 09:23:40 -04:00
Refactor url to href, to be more consistent.
This commit is contained in:
parent
0f0d97dab5
commit
675efd6cd3
6 changed files with 40 additions and 40 deletions
|
@ -6,19 +6,19 @@ modulejs.define('boot', ['$'], function ($) {
|
|||
|
||||
var module = $('script[data-module]').data('module');
|
||||
var data = {action: 'get', setup: true, options: true, types: true, theme: true, langs: true};
|
||||
var url;
|
||||
var href;
|
||||
|
||||
if (module === 'index') {
|
||||
url = '.';
|
||||
href = '.';
|
||||
} else if (module === 'info') {
|
||||
data.updatecmds = true;
|
||||
url = 'server/php/index.php';
|
||||
href = 'server/php/index.php';
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: url,
|
||||
url: href,
|
||||
data: data,
|
||||
type: 'post',
|
||||
dataType: 'json'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue