+if (!window.console) {
+ window.console = {
+ log: function() {}
+ }
+}
+
// Teraz nieużywane
function highlight(colour) {
var range, sel;
zoom();
});
$('.change-gallery', element).click(function() {
- $('.chosen-gallery').val($('#document-meta .gallery').html() || '/gallery/');
+ $('.chosen-gallery').val($('#document-meta .gallery').html() || STATIC_URL + 'gallery/');
$('.gallery-image').animate({top: 53}, 200);
$('.chosen-gallery').focus();
});
CodeMirror.fromTextArea('id_text', {
parserfile: 'parsexml.js',
- path: "/static/js/lib/codemirror/",
- stylesheet: "/static/css/xmlcolors.css",
+ path: STATIC_URL + "js/lib/codemirror/",
+ stylesheet: STATIC_URL + "css/xmlcolors.css",
parserConfig: {
useHTMLKludges: false
},