Minor changes.

This commit is contained in:
Lars Jung 2014-06-21 14:45:25 +02:00
parent 730263ca55
commit 71d2ff10dc
8 changed files with 24 additions and 17 deletions

View file

@ -13,10 +13,15 @@ modulejs.define('view/ensure', ['$', 'core/event'], function ($, event) {
ensure = function () {
if (
$(selr).filter(isVisible).length !== 1 ||
$(selr).text() !== sequence ||
$(sela).filter(isVisible).length !== 1 ||
$(selr).text() !== sequence
$(selr).filter(isVisible).length !== 1 ||
$(selb).filter(isVisible).length !== 1
) {
if ($(selb).filter(isVisible).length !== 1) {
$(selb).remove();
$('<div id="bottombar"/>').attr(styleKey, styleVal).appendTo('body');
}
$(selr).remove();
$('<span><a/></span>')
.addClass('right')

View file

@ -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({