Skip to content
Snippets Groups Projects

browse: Fix a couple of spotted issues in the UI

Merged Antoine Lambert requested to merge anlambert/swh-web:browse-ui-fixes into master
11 files
+ 144
46
Compare changes
  • Side-by-side
  • Inline
Files
11
@@ -58,7 +58,7 @@ See top-level LICENSE file for more information
let codeContainer = $('code');
let content = codeContainer.text();
swh.webapp.highlightCode(true, 'code', !{{ iframe_mode|jsonify }});
swh.webapp.highlightCode(true, '.swh-content code', !{{ iframe_mode|jsonify }});
function updateLanguage(language) {
codeContainer.text(content);
@@ -71,7 +71,7 @@ See top-level LICENSE file for more information
const newUrl = window.location.pathname + '?' + urlParams.toString() + window.location.hash;
window.history.replaceState('', document.title, newUrl);
swh.webapp.highlightCode(true, 'code', !{{ iframe_mode|jsonify }});
swh.webapp.highlightCode(true, '.swh-content code', !{{ iframe_mode|jsonify }});
}
{% endif %}
Loading