SOLR-8379: UI Cloud->Tree view now shows .txt files correctly. This closes #58

(cherry picked from commit 96280d1)
This commit is contained in:
Jan Høydahl 2016-07-29 00:44:53 +02:00
parent c434eff828
commit 0df3d5ad45
2 changed files with 3 additions and 1 deletions

View File

@ -146,6 +146,8 @@ Bug Fixes
* SOLR-8645: managed-schema is now syntax highlighted in cloud->Tree view (Alexandre Rafalovitch via janhoy) * SOLR-8645: managed-schema is now syntax highlighted in cloud->Tree view (Alexandre Rafalovitch via janhoy)
* SOLR-8379: UI Cloud->Tree view now shows .txt files correctly (Alexandre Rafalovitch via janhoy)
Optimizations Optimizations
---------------------- ----------------------

View File

@ -148,7 +148,7 @@ solrAdminApp.config([
}) })
.filter('highlight', function($sce) { .filter('highlight', function($sce) {
return function(input, lang) { return function(input, lang) {
if (lang && input && lang!="text") return hljs.highlight(lang, input).value; if (lang && input && lang!="txt") return hljs.highlight(lang, input).value;
return input; return input;
} }
}) })