From 0df3d5ad45e18d01c209ad039f53ad27d3adb7e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20H=C3=B8ydahl?= Date: Fri, 29 Jul 2016 00:44:53 +0200 Subject: [PATCH] SOLR-8379: UI Cloud->Tree view now shows .txt files correctly. This closes #58 (cherry picked from commit 96280d1) --- solr/CHANGES.txt | 2 ++ solr/webapp/web/js/angular/app.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index 306acb13f88..ece9d065413 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -146,6 +146,8 @@ Bug Fixes * 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 ---------------------- diff --git a/solr/webapp/web/js/angular/app.js b/solr/webapp/web/js/angular/app.js index 8a1fe26c593..e7491fe63d4 100644 --- a/solr/webapp/web/js/angular/app.js +++ b/solr/webapp/web/js/angular/app.js @@ -148,7 +148,7 @@ solrAdminApp.config([ }) .filter('highlight', function($sce) { 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; } })