Update js init.

This commit is contained in:
Lars Jung 2014-09-14 03:52:50 +02:00
parent c9ca2eeb23
commit bba2eb401d

View file

@ -28,14 +28,15 @@
// @include "inc/**/*.js"
var $ = jQuery;
var module = $('script[data-module]').data('module');
var data = {action: 'get', setup: true, options: true, types: true, theme: true, langs: true};
var url;
if ($('html').hasClass('no-browser')) {
return;
}
var module = $('script[data-module]').data('module');
var data = {action: 'get', setup: true, options: true, types: true, theme: true, langs: true};
var url;
if (module === 'main') {
url = '.';
} else if (module === 'info') {