Javascript Double Load

Permalink Browser Info Environment
Hi,
im doing to local trials and having trouble with the javascript loading two times on the page. The problem i found is the script in the element/footer.php

<?php if ($u -> isLoggedIn ()): ?>

$(document).ready(function() {
$('nav#mobile-menu').mmenu();
configuration: {
selectedClass: "active"
}
});

<?php else: ?>
var tpj=jQuery;

tpj(document).ready(function() {
tpj('nav#mobile-menu').mmenu();
configuration: {
selectedClass: "active"
}

<?php endif; ?>

Have you had any similar experience or problem with that?

Type: Discussion
Status: In Progress
webchris
View Replies:
PSDAddict replied on at Permalink Reply
PSDAddict
Bit late, but we're you able to resolve this one?

Best Regards,
David

concrete5 Environment Information

# concrete5 Version
5.6.3.1

# concrete5 Packages
Flat Fortuna (1.0.1), Pro Blog (12.4.0), Revolution Slider (2.3.8).

# concrete5 Overrides
blocks/external_form, blocks/startnav, js/ccm.app.js, css/ccm.base.css, languages/sv_SE

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off

# Server Software
Apache

# Server API
apache2handler

# PHP Version
5.4.19

# PHP Extensions
apache2handler, bcmath, calendar, com_dotnet, Core, ctype, curl, date, dom, ereg, exif, filter, ftp, gd, hash, iconv, intl, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, odbc, openssl, pcre, PDO, pdo_mysql, Phar, Reflection, session, SimpleXML, sockets, SPL, standard, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 32M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 10M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.