X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/f9f061cab006c95dec8e972ce3989a0215756a81..529a7fdd7e951756677ea7705dfac67e8171bdfe:/platforma/static/js/main.js?ds=inline diff --git a/platforma/static/js/main.js b/platforma/static/js/main.js index 62ee8ff6..0928bf8d 100644 --- a/platforma/static/js/main.js +++ b/platforma/static/js/main.js @@ -1,5 +1,5 @@ -if (!console) { - console = { +if (!window.console) { + window.console = { log: function() {} } } @@ -94,7 +94,7 @@ function gallery(element, url) { zoom(); }); $('.change-gallery', element).click(function() { - $('.chosen-gallery').val($('#document-meta .gallery').html() || STATIC_URL + 'gallery/'); + $('.chosen-gallery').val($('#document-meta .gallery').html() || '/platforma/gallery/'); $('.gallery-image').animate({top: 53}, 200); $('.chosen-gallery').focus(); });