diff --git a/themes/bootstrap3/js/vudl/record.js b/themes/bootstrap3/js/vudl/record.js index 925d89828205196a9132be158d1a38c6693b71ba..a1084277f873bf429076ceb65f08aa741ec2091d 100644 --- a/themes/bootstrap3/js/vudl/record.js +++ b/themes/bootstrap3/js/vudl/record.js @@ -117,9 +117,11 @@ function nextPage() { scrollToSelected(); } function scrollToSelected() { - $('#collapse1').animate({ - scrollTop: $('#collapse1 .selected').offset().top-$('#collapse1').offset().top+$('#collapse1').scrollTop()-12 - }); + if($('#collapse1').length > 0 && $('#collapse1 .selected').length > 0) { + $('#collapse1').animate({ + scrollTop: $('#collapse1 .selected').offset().top-$('#collapse1').offset().top+$('#collapse1').scrollTop()-12 + }); + } } // Toggle side menu function toggleSideNav() { diff --git a/themes/bootstrap3/js/zoomy/canvas-zoomy.js b/themes/bootstrap3/js/zoomy/canvas-zoomy.js index 7ad05f73b6ee8bb337a735ec9dbad624cf453970..64f4c28506c6fc1a41462aa215847f4c8bcf20a8 100644 --- a/themes/bootstrap3/js/zoomy/canvas-zoomy.js +++ b/themes/bootstrap3/js/zoomy/canvas-zoomy.js @@ -114,11 +114,7 @@ var Zoomy = { load: function(src, callback) { if(typeof this.canvas === "undefined") return; var img = new Image(); - img.onloadstart = function () { console.log('Loading...'); }; - img.onprogress = function (e) { console.log(e.loaded / e.total * 100); }; img.onload = function() { Zoomy.finishLoad(img); if(typeof callback !== "undefined") callback(); } - img.onerror = function () { /* Load failed. Show a custom error message. */ } - img.onloadend = function () { /* Load either either succeeded or failed. Either way, hide the progress bar. */ }; img.src = src; }, finishLoad: function(img) { @@ -150,7 +146,6 @@ var Zoomy = { this.context.restore(); // Minimap - console.log(this.showMinimap); if(!this.showMinimap) return; if(this.minimap == null) { this.minimap = this.initMinimap();