lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jan...@apache.org
Subject lucene-solr:master: SOLR-8379: UI Cloud->Tree view now shows .txt files correctly. This closes #58
Date Fri, 29 Jul 2016 07:34:19 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/master d12b93e27 -> 96280d15e


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


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/96280d15
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/96280d15
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/96280d15

Branch: refs/heads/master
Commit: 96280d15e3f37cd497ec6de7d9e2f099d151b2d6
Parents: d12b93e
Author: Jan Høydahl <janhoy@apache.org>
Authored: Fri Jul 29 00:44:53 2016 +0200
Committer: Jan Høydahl <janhoy@apache.org>
Committed: Fri Jul 29 09:33:44 2016 +0200

----------------------------------------------------------------------
 solr/CHANGES.txt                  | 2 ++
 solr/webapp/web/js/angular/app.js | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/96280d15/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 58743b1..8e5b74f 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -180,6 +180,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
 ----------------------
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/96280d15/solr/webapp/web/js/angular/app.js
----------------------------------------------------------------------
diff --git a/solr/webapp/web/js/angular/app.js b/solr/webapp/web/js/angular/app.js
index 8a1fe26..e7491fe 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;
   }
 })


Mime
View raw message