From a57c97e460e7add71e1c4b21caa428f11145ee71 Mon Sep 17 00:00:00 2001 From: SpencerA Date: Mon, 10 Mar 2014 23:04:58 -0700 Subject: [PATCH] Don't call toUpperCase() on column names in Inspect1 (leave them be) Don't have hover-over effect on ToFactor/ToInt custom css --- lib/resources/h2o/css/main.css | 2 +- src/main/java/water/api/RequestStatics.java | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/resources/h2o/css/main.css b/lib/resources/h2o/css/main.css index cb6b0319ed..6ac27c5ccd 100644 --- a/lib/resources/h2o/css/main.css +++ b/lib/resources/h2o/css/main.css @@ -34,7 +34,7 @@ body { .btn-custom { border-radius: 5px; padding: 0px 12px; - background-color: hsl(193, 25%, 82%) !important; + background-color: #D9EDF7 !important; background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#D9EDF7", endColorstr="#D9EDF7"); background-image: -khtml-gradient(linear, left top, left bottom, from(#D9EDF7), to(#D9EDF7)); diff --git a/src/main/java/water/api/RequestStatics.java b/src/main/java/water/api/RequestStatics.java index f7c0d3f626..76b9f07ef1 100644 --- a/src/main/java/water/api/RequestStatics.java +++ b/src/main/java/water/api/RequestStatics.java @@ -89,7 +89,10 @@ public String requestName(String requestUrl) { */ public static String JSON2HTML(String name) { if( name.length() < 1 ) return name; - return name.substring(0,1).toUpperCase()+name.replace("_"," ").substring(1); + if(name == "row") { + return name.substring(0,1).toUpperCase()+ name.replace("_"," ").substring(1); + } + return name.substring(0,1)+name.replace("_"," ").substring(1); } public static String Str2JSON( String x ) {