if (!xml2htmlStylesheet) {
$.blockUI({message: 'Ładowanie arkuszy stylów...'});
$.ajax({
- url: STATIC_URL + 'xsl/wl2html_client.xsl?20171106',
- dataType: 'xml',
- timeout: 10000,
- success: function(data) {
+ url: STATIC_URL + 'xsl/wl2html_client.xsl?210129',
+ dataType: 'xml',
+ timeout: 10000,
+ success: function(data) {
xml2htmlStylesheet = createXSLT(data);
$.unblockUI();
- code_block();
-
+ code_block();
},
- error: onError
+ error: onError
})
}
- else {
- code_block();
- }
+ else {
+ code_block();
+ }
}
source.text('');
options.error(error.text(), source_text);
} else {
+ let galleryUrl = new URL(
+ options.base,
+ window.location.href
+ );
+ $("img", $(doc.childNodes)).each(function() {
+ $(this).attr(
+ 'src',
+ new URL(
+ $(this).attr('src'),
+ galleryUrl
+ )
+ );
+ })
+
options.success(doc.childNodes);
$.themes.withCanon(function(canonThemes) {
}
HTMLSerializer.prototype._nodeIgnored = function(node) {
- return node.getAttribute('x-node') == 'wers';
+ return node.getAttribute('x-auto-node') == 'true';
}
HTMLSerializer.prototype._ignoredWithWhitespace = function(node) {
};
self.result += ' ' + self._join(nsData.prefix, node.getAttribute('x-attr-name-'+this));
- self.result += '="'+node.getAttribute('x-attr-value-'+this) +'"';
+ self.result += '="' + node.getAttribute('x-attr-value-'+this).replace(/&/g, '&').replace(/"/g, '"') + '"';
});
/* print new namespace declarations */