I'm using OSClass. when goto http://localhost/osclass/index.php?page=item&id=2
page, that gives following ERROR.
Uncaught ReferenceError: jQuery is not defined
(anonymous function)
Uncaught TypeError: Object [object Object] has no method 'fancybox'
(anonymous function)
o
p.fireWith
e.extend.ready
c.addEventListener.B
Uncaught TypeError: Cannot call method 'create' of undefined
(anonymous function)
in that file my js are,
osc_register_script('fancybox', osc_current_web_theme_js_url('fancybox/jquery.fancybox.js'));
osc_enqueue_script('fancybox');
osc_enqueue_script('jquery-validate');
osc_enqueue_style('fancybox', osc_current_web_theme_js_url('fancybox/jquery.fancybox.css'));
and
<script type="text/javascript">
$(document).ready(function(){
$("a[rel=image_group]").fancybox({
openEffect : 'none',
closeEffect : 'none',
nextEffect : 'fade',
prevEffect : 'fade',
loop : false,
helpers : {
title : {
type : 'inside'
}
}
});
});
</script>
Where is my problem?
I fixed it this morning, here's the commit : https://github.com/osclass/Osclass/commit/cd9f75080f42d681be2e6bce709269073c0bcec2
The problem was that fancybox's dependencies weren't set