EMBJOPR SVN: r1023 - trunk/core/src/main/java/org/jboss/on/embedded/ui/nav.
by embjopr-commits@lists.jboss.org
Author: ips
Date: 2011-05-19 17:09:38 -0400 (Thu, 19 May 2011)
New Revision: 1023
Modified:
trunk/core/src/main/java/org/jboss/on/embedded/ui/nav/SubCategoryTreeNode.java
Log:
cosmetic
Modified: trunk/core/src/main/java/org/jboss/on/embedded/ui/nav/SubCategoryTreeNode.java
===================================================================
--- trunk/core/src/main/java/org/jboss/on/embedded/ui/nav/SubCategoryTreeNode.java 2011-05-19 21:05:49 UTC (rev 1022)
+++ trunk/core/src/main/java/org/jboss/on/embedded/ui/nav/SubCategoryTreeNode.java 2011-05-19 21:09:38 UTC (rev 1023)
@@ -1,6 +1,6 @@
/*
* Embedded Jopr Project
- * Copyright (C) 2006-2009 Red Hat, Inc.
+ * Copyright (C) 2006-2011 Red Hat, Inc.
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
@@ -17,7 +17,6 @@
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
package org.jboss.on.embedded.ui.nav;
import java.util.Collection;
@@ -122,3 +121,4 @@
return getPath();
}
}
+
13 years, 7 months
EMBJOPR SVN: r1022 - branches/AdminConsole_EAP_5_1/core/src/main/java/org/jboss/on/embedded/ui/nav.
by embjopr-commits@lists.jboss.org
Author: ips
Date: 2011-05-19 17:05:49 -0400 (Thu, 19 May 2011)
New Revision: 1022
Modified:
branches/AdminConsole_EAP_5_1/core/src/main/java/org/jboss/on/embedded/ui/nav/ResourceTypeTreeNode.java
branches/AdminConsole_EAP_5_1/core/src/main/java/org/jboss/on/embedded/ui/nav/SubCategoryTreeNode.java
Log:
[JBPAPP-5969] for consistency, make sure resource type descriptions and subcategory descriptions all start with a capital letter (https://issues.jboss.org/browse/JBPAPP-5969)
Modified: branches/AdminConsole_EAP_5_1/core/src/main/java/org/jboss/on/embedded/ui/nav/ResourceTypeTreeNode.java
===================================================================
--- branches/AdminConsole_EAP_5_1/core/src/main/java/org/jboss/on/embedded/ui/nav/ResourceTypeTreeNode.java 2011-05-19 21:01:48 UTC (rev 1021)
+++ branches/AdminConsole_EAP_5_1/core/src/main/java/org/jboss/on/embedded/ui/nav/ResourceTypeTreeNode.java 2011-05-19 21:05:49 UTC (rev 1022)
@@ -1,6 +1,6 @@
/*
* Embedded Jopr Project
- * Copyright (C) 2006-2009 Red Hat, Inc.
+ * Copyright (C) 2006-2011 Red Hat, Inc.
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
@@ -17,7 +17,6 @@
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
package org.jboss.on.embedded.ui.nav;
import org.rhq.core.domain.resource.Resource;
@@ -65,10 +64,18 @@
}
public String getDescription() {
- return getResourceType().getDescription();
+ String description = getResourceType().getDescription();
+ // For consistency, make sure all descriptions start with a capital letter.
+ if (description.length() >= 1){
+ String returnDescription = Character.toUpperCase(description.charAt(0)) + description.substring(1);
+ return returnDescription;
+ } else {
+ return description;
+ }
}
public Resource getParentResource() {
return parentResource;
}
}
+
Modified: branches/AdminConsole_EAP_5_1/core/src/main/java/org/jboss/on/embedded/ui/nav/SubCategoryTreeNode.java
===================================================================
--- branches/AdminConsole_EAP_5_1/core/src/main/java/org/jboss/on/embedded/ui/nav/SubCategoryTreeNode.java 2011-05-19 21:01:48 UTC (rev 1021)
+++ branches/AdminConsole_EAP_5_1/core/src/main/java/org/jboss/on/embedded/ui/nav/SubCategoryTreeNode.java 2011-05-19 21:05:49 UTC (rev 1022)
@@ -1,6 +1,6 @@
/*
* Embedded Jopr Project
- * Copyright (C) 2006-2009 Red Hat, Inc.
+ * Copyright (C) 2006-2011 Red Hat, Inc.
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
@@ -17,7 +17,6 @@
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
package org.jboss.on.embedded.ui.nav;
import java.util.Collection;
@@ -96,7 +95,14 @@
public String getDescription()
{
- return getSubCategory().getDescription();
+ String description = getSubCategory().getDescription();
+ // For consistency, make sure all descriptions start with a capital letter.
+ if (description.length() >= 1){
+ String returnDescription = Character.toUpperCase(description.charAt(0)) + description.substring(1);
+ return returnDescription;
+ } else {
+ return description;
+ }
}
public ResourceSubCategory getSubCategory()
@@ -115,3 +121,4 @@
return getPath();
}
}
+
13 years, 7 months
EMBJOPR SVN: r1021 - trunk/core/src/main/java/org/jboss/on/embedded/ui/nav.
by embjopr-commits@lists.jboss.org
Author: ips
Date: 2011-05-19 17:01:48 -0400 (Thu, 19 May 2011)
New Revision: 1021
Modified:
trunk/core/src/main/java/org/jboss/on/embedded/ui/nav/ResourceTypeTreeNode.java
trunk/core/src/main/java/org/jboss/on/embedded/ui/nav/SubCategoryTreeNode.java
Log:
[JBPAPP-5969] for consistency, make sure resource type descriptions and subcategory descriptions all start with a capital letter (https://issues.jboss.org/browse/JBPAPP-5969)
Modified: trunk/core/src/main/java/org/jboss/on/embedded/ui/nav/ResourceTypeTreeNode.java
===================================================================
--- trunk/core/src/main/java/org/jboss/on/embedded/ui/nav/ResourceTypeTreeNode.java 2011-05-13 21:03:02 UTC (rev 1020)
+++ trunk/core/src/main/java/org/jboss/on/embedded/ui/nav/ResourceTypeTreeNode.java 2011-05-19 21:01:48 UTC (rev 1021)
@@ -1,6 +1,6 @@
/*
* Embedded Jopr Project
- * Copyright (C) 2006-2009 Red Hat, Inc.
+ * Copyright (C) 2006-2011 Red Hat, Inc.
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
@@ -17,7 +17,6 @@
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-
package org.jboss.on.embedded.ui.nav;
import org.rhq.core.domain.resource.Resource;
@@ -65,10 +64,18 @@
}
public String getDescription() {
- return getResourceType().getDescription();
+ String description = getResourceType().getDescription();
+ // For consistency, make sure all descriptions start with a capital letter.
+ if (description.length() >= 1){
+ String returnDescription = Character.toUpperCase(description.charAt(0)) + description.substring(1);
+ return returnDescription;
+ } else {
+ return description;
+ }
}
public Resource getParentResource() {
return parentResource;
}
}
+
Modified: trunk/core/src/main/java/org/jboss/on/embedded/ui/nav/SubCategoryTreeNode.java
===================================================================
--- trunk/core/src/main/java/org/jboss/on/embedded/ui/nav/SubCategoryTreeNode.java 2011-05-13 21:03:02 UTC (rev 1020)
+++ trunk/core/src/main/java/org/jboss/on/embedded/ui/nav/SubCategoryTreeNode.java 2011-05-19 21:01:48 UTC (rev 1021)
@@ -96,7 +96,14 @@
public String getDescription()
{
- return getSubCategory().getDescription();
+ String description = getSubCategory().getDescription();
+ // For consistency, make sure all descriptions start with a capital letter.
+ if (description.length() >= 1){
+ String returnDescription = Character.toUpperCase(description.charAt(0)) + description.substring(1);
+ return returnDescription;
+ } else {
+ return description;
+ }
}
public ResourceSubCategory getSubCategory()
13 years, 7 months
EMBJOPR SVN: r1020 - branches/AdminConsole_EAP_5_1/core/src/main/webapp/js.
by embjopr-commits@lists.jboss.org
Author: ips
Date: 2011-05-13 17:03:02 -0400 (Fri, 13 May 2011)
New Revision: 1020
Modified:
branches/AdminConsole_EAP_5_1/core/src/main/webapp/js/embedded.js
Log:
apply patch from https://issues.jboss.org/browse/JBPAPP-5285
Modified: branches/AdminConsole_EAP_5_1/core/src/main/webapp/js/embedded.js
===================================================================
--- branches/AdminConsole_EAP_5_1/core/src/main/webapp/js/embedded.js 2011-05-13 20:58:49 UTC (rev 1019)
+++ branches/AdminConsole_EAP_5_1/core/src/main/webapp/js/embedded.js 2011-05-13 21:03:02 UTC (rev 1020)
@@ -222,26 +222,27 @@
*/
function prepareInputsForSubmission(form)
{
- var inputs = Form.getInputs(form);
+ var inputs = Form.getElements(form);
for (var i = 0; i < inputs.length; i++)
- {
- var input = inputs[i];
- if (input.disabled)
+ {
+ if (inputs[i].disabled)
{
// NOTE: It is vital to enable any disabled inputs, since the browser will exclude disabled inputs from the
// POST request.
- setInputDisabled(input, false, false);
+ setInputDisabled(inputs[i], false, false);
// Some browsers (e.g. Firefox) will automatically un-gray-out the input, when the disabled property is
// set to false, so we need to gray it out again, so it still appears to be disabled.
- grayOutInput(input);
- if (input.unset)
+ grayOutInput(inputs[i]);
+ if (inputs[i].unset)
{
// NOTE: Set the input's value to a special string that will allow the server-side to distinguish between a
// null (i.e. unset) value and an empty string value.
- input.value = NULL_INPUT_VALUE;
+ inputs[i].value = NULL_INPUT_VALUE;
}
}
}
+ // Return true in case an onclick handler called us.
+ return true;
}
/**
13 years, 7 months
EMBJOPR SVN: r1019 - trunk/core/src/main/webapp/js.
by embjopr-commits@lists.jboss.org
Author: ips
Date: 2011-05-13 16:58:49 -0400 (Fri, 13 May 2011)
New Revision: 1019
Modified:
trunk/core/src/main/webapp/js/embedded.js
Log:
apply patch from https://issues.jboss.org/browse/JBPAPP-5285
Modified: trunk/core/src/main/webapp/js/embedded.js
===================================================================
--- trunk/core/src/main/webapp/js/embedded.js 2011-02-15 18:10:44 UTC (rev 1018)
+++ trunk/core/src/main/webapp/js/embedded.js 2011-05-13 20:58:49 UTC (rev 1019)
@@ -204,8 +204,8 @@
/**
* @param form a form element
*/
-function prepareInputsForSubmission(form) {
- var inputs = Form.getInputs(form);
+function prepareInputsForSubmission(form) {
+ var inputs = Form.getElements(form);
for ( var i = 0; i < inputs.length; i++) {
if (inputs[i].disabled) {
// NOTE: It is vital to enable any disabled inputs, since the browser will exclude disabled inputs from the
13 years, 7 months