Browse Source

YARN-2950. Change message to mandate, not suggest JS requirement on UI. Contributed by Dustin Cote.

(cherry picked from commit 0e37bbc8e3f8e96acd96522face2f4bb01584cb4)
Harsh J 10 năm trước cách đây
mục cha
commit
da36252077

+ 3 - 0
hadoop-yarn-project/CHANGES.txt

@@ -35,6 +35,9 @@ Release 2.7.0 - UNRELEASED
 
   IMPROVEMENTS
 
+    YARN-2950. Change message to mandate, not suggest JS requirement on UI.
+    (Dustin Cote via harsh)
+
     YARN-2891. Failed Container Executor does not provide a clear error
     message. (Dustin Cote via harsh)
 

+ 2 - 1
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/webapp/view/JQueryUI.java

@@ -91,7 +91,8 @@ public class JQueryUI extends HtmlBlock {
   public static void jsnotice(HTML html) {
     html.
       div("#jsnotice.ui-state-error").
-          _("This page works best with javascript enabled.")._();
+          _("This page will not function without javascript enabled."
+            + " Please enable javascript on your browser.")._();
     html.
       script().$type("text/javascript").
         _("$('#jsnotice').hide();")._();