Refactor url to href, to be more consistent.

This commit is contained in:
Lars Jung 2015-05-03 19:36:17 +02:00
parent 0f0d97dab5
commit 675efd6cd3
6 changed files with 40 additions and 40 deletions

View file

@ -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'