Color box not working with newer version of jquery.
$vidCode = $match[1];
}
$thumb = ($vidCode)
- ? '<a href="http://www.youtube.com/embed/'.$vidCode.'?rel=0" class="colorbox"><img src="http://img.youtube.com/vi/'.$vidCode.'/default.jpg"></a>'
+ ? '<a href="http://www.youtube.com/embed/'.$vidCode.'?rel=0" class="various fancybox.iframe vidimg"><img src="http://img.youtube.com/vi/'.$vidCode.'/default.jpg"></a>'
: '';
return $thumb;
}
$GLOBALS['styleSheets'][]
= MEDIA_BASE_URL . 'Toolkit/Videos/styles.css';
$GLOBALS['styleSheets'][]
- = MEDIA_APP_BASE_URL . 'gallery/colorbox/colorbox.css';
- $GLOBALS['bottomScripts'][]
- = MEDIA_APP_BASE_URL . 'libjs/plugins/colorbox/1.3.15/jquery.colorbox-min.js';
+ = MEDIA_BASE_URL . 'fancybox/jquery.fancybox.css';
+ $GLOBALS['topScripts'][]
+ = MEDIA_BASE_URL . 'fancybox/jquery.fancybox.js';
$GLOBALS['bottomScripts'][]
= MEDIA_BASE_URL . 'Toolkit/Videos/libjs/videos.js';
return parent::toHTML();
PDO $dbh,
$gateway = null
) {
- $GLOBALS['styleSheets'][]
- = MEDIA_APP_BASE_URL . 'gallery/colorbox/colorbox.css';
$GLOBALS['bottomScripts'][]
- = MEDIA_APP_BASE_URL . 'libjs/plugins/colorbox/1.3.15/jquery.colorbox-min.js';
+ = MEDIA_BASE_URL . 'fancybox/jquery.fancybox.js';
$GLOBALS['bottomScripts'][]
= MEDIA_BASE_URL . 'Toolkit/Videos/libjs/videos.js';
$dbh = Toolkit_Database::getInstance();
var GLMColorBox = {
init: function() {
- var width = $(window).width() * .85;
+ var width = $(window).width() * .85;
var height = $(window).height() * .8;
- //$('a.colorbox').colorbox({iframe: true, innerWidth:425, innerHeight:344});
- $('select.posSelect').each(function () {
- $(this).change(function(){
+ $('select.posSelect').each(function() {
+ $(this).change(function() {
var id = $(this).attr('rel');
- var newpos = $(this).attr('value');
+ var newpos = $(this).prop('value');
window.location.href = '../video-move/' + id + '/' + newpos + '/';
});
});
$(document).ready(GLMColorBox.init);
$(document).ready(function() {
- $(".various").fancybox({
- maxWidth : 1200,
- maxHeight : 800,
- fitToView : false,
- width : '100%',
- height : '100%',
- autoSize : false,
- closeClick : false,
- openEffect : 'none',
- closeEffect : 'none'
- });
+ $(".various").fancybox({
+ maxWidth: 1200,
+ maxHeight: 800,
+ fitToView: false,
+ width: '100%',
+ height: '100%',
+ autoSize: false,
+ closeClick: false,
+ openEffect: 'none',
+ closeEffect: 'none'
+ });
});