fixed libraries mis-path bug from theme refactoring
This commit is contained in:
parent
2686166df2
commit
e4b76f4756
@ -73,10 +73,11 @@
|
||||
var v1, v2, v3, v4, v5; // generic variable used in many cases to avoid to create new memory block with new vars
|
||||
|
||||
function init(){
|
||||
// trace('init MaterioBaseTheme');
|
||||
trace('init MaterioBaseTheme');
|
||||
|
||||
checkIE();
|
||||
initHistoryNav();
|
||||
|
||||
if(_isFrontNotLogged)
|
||||
initHome();
|
||||
|
||||
@ -118,6 +119,7 @@
|
||||
* history navigation
|
||||
*/
|
||||
function initHistoryNav(){
|
||||
trace("initHistoryNav _History", _History);
|
||||
var state = _History.getState();
|
||||
// _History.log('initial:', state.data, state.title, state.url);
|
||||
_History.Adapter.bind(window,'statechange',onHistoryStateChange);
|
||||
@ -125,7 +127,7 @@
|
||||
};
|
||||
|
||||
function onNewHistoryPage(event){
|
||||
//trace('theme :: onNewHistoryPage', event);
|
||||
trace('theme :: onNewHistoryPage', event);
|
||||
|
||||
var title = event.title.replace(/<(?:.|\n)*?>/gm, '') + ' | ' + _strings.site_name;
|
||||
// trace('MaterioBaseTheme :: onNewHistoryPage : title', title);
|
||||
@ -136,9 +138,9 @@
|
||||
};
|
||||
|
||||
function onHistoryStateChange(event){
|
||||
// trace('theme :: onHistoryStateChange', event);
|
||||
trace('theme :: onHistoryStateChange', event);
|
||||
var state = _History.getState();
|
||||
// _History.log('statechange:', state.data, state.title, state.url);
|
||||
_History.log('statechange:', state.data, state.title, state.url);
|
||||
|
||||
// google analytics
|
||||
$.event.trigger({
|
||||
|
@ -21,11 +21,11 @@ stylesheets[all][] = "css/nonsemantic.css"
|
||||
|
||||
|
||||
;----------// Scripts
|
||||
scripts[] = "bower_components/history.js/compressed/history.js"
|
||||
scripts[] = "bower_components/history.js/scripts/bundled/html4+html5/jquery.history.js"
|
||||
scripts[] = "bower_components/jquery.hotkeys/jquery.hotkeys.js"
|
||||
scripts[] = "bower_components/jquery.columnizer/src/jquery.columnizer.min.js"
|
||||
scripts[] = "bower_components/jquery.lazyload/jquery.lazyload.min.js"
|
||||
scripts[] = "js/script.min.js"
|
||||
scripts[] = "bower_components/jquery.lazyload/jquery.lazyload.js"
|
||||
scripts[] = "js/script.js"
|
||||
|
||||
|
||||
|
||||
|
@ -69,7 +69,7 @@
|
||||
<!-- All JavaScript at the bottom, except for Modernizr / Respond.
|
||||
Modernizr enables HTML5 elements & feature detects; Respond is a polyfill for min/max-width CSS3 Media Queries
|
||||
For optimal performance, use a custom Modernizr build: www.modernizr.com/download/ -->
|
||||
<script src="<?php print $theme_path ?>/js/libs/modernizr-2.6.1.min.js" type="text/javascript"></script>
|
||||
<script src="<?php print $theme_path ?>bower_components/modernizr/modernizr.js" type="text/javascript"></script>
|
||||
|
||||
|
||||
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
|
Loading…
x
Reference in New Issue
Block a user