diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/js/rhq.js b/modules/enterprise/gui/portal-war/src/main/webapp/js/rhq.js index 138a5e5daac..1888f5f6bcf 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/js/rhq.js +++ b/modules/enterprise/gui/portal-war/src/main/webapp/js/rhq.js @@ -654,6 +654,33 @@ function hideInitialDivs() { hidediv('recur'); hidediv('end'); } +/** +* set attribute to given value for element specified by ID +* @param elementId element ID +* @param attribute name +* @param value - attribute value to set +*/ +var setAttribute = function(elementId, attribute, value) { + var el = document.getElementById(elementId); + if (el && el != null) { + el.setAttribute(attribute, value); + } else { + console.log('Failed to set ['+attribute+'='+value+'] : node id=[' + elementId + '] not found'); + } +} +/** +* set 'action' attributes to elements based on given actionMap. If actionMap is for example +* {elementID:'foo'}, then attribute 'action' is going to be set to 'foo' for element with id 'elementID' +* +* @param actionMap map +*/ +var setFormActions = function(actionMap) { + for (key in actionMap) { + if (actionMap.hasOwnProperty(key)) { + setAttribute(key,'action',actionMap[key]); + } + } +} /** * WindowResizeTracker can be used by scripts that need to keep track diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/contentProvider-add-map-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/contentProvider-add-map-plain.xhtml index 7ac6b7ec05e..1f4a257aaa9 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/contentProvider-add-map-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/contentProvider-add-map-plain.xhtml @@ -49,7 +49,7 @@ THIS TEXT WILL BE REMOVED. diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/contentProvider-edit-map-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/contentProvider-edit-map-plain.xhtml index 8a9fcfda8e7..2d9d0095291 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/contentProvider-edit-map-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/contentProvider-edit-map-plain.xhtml @@ -50,7 +50,7 @@ THIS TEXT WILL BE REMOVED. diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/contentProvider-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/contentProvider-plain.xhtml index 0048be0c99d..6f58f7e1186 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/contentProvider-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/contentProvider-plain.xhtml @@ -505,10 +505,11 @@ diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/contentProvider-view-map-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/contentProvider-view-map-plain.xhtml index 3e8140f4fc4..87f861f9504 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/contentProvider-view-map-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/contentProvider-view-map-plain.xhtml @@ -49,7 +49,7 @@ THIS TEXT WILL BE REMOVED. diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/createContentProvider-add-map-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/createContentProvider-add-map-plain.xhtml index 3e0c78ff483..ee3f4f1af02 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/createContentProvider-add-map-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/createContentProvider-add-map-plain.xhtml @@ -48,7 +48,7 @@ THIS TEXT WILL BE REMOVED. diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/createContentProvider-edit-map-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/createContentProvider-edit-map-plain.xhtml index bb8a7e27ac7..85e576f3925 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/createContentProvider-edit-map-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/createContentProvider-edit-map-plain.xhtml @@ -49,7 +49,7 @@ THIS TEXT WILL BE REMOVED. diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/createContentProvider-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/createContentProvider-plain.xhtml index 0aa780f7e63..3ef7ae666f1 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/createContentProvider-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/createContentProvider-plain.xhtml @@ -148,7 +148,7 @@ diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/createRepo-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/createRepo-plain.xhtml index 55cb24be7fa..885c05939cc 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/createRepo-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/createRepo-plain.xhtml @@ -85,7 +85,7 @@ diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/importRepos-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/importRepos-plain.xhtml index 430219bffb7..8cd063cae23 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/importRepos-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/importRepos-plain.xhtml @@ -114,7 +114,7 @@ diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/listContentProviders-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/listContentProviders-plain.xhtml index 146de0071f0..736fce72ea1 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/listContentProviders-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/listContentProviders-plain.xhtml @@ -160,7 +160,7 @@ diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/listRepos-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/listRepos-plain.xhtml index 6f24c7e74a9..fc5935b1d3e 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/listRepos-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/listRepos-plain.xhtml @@ -144,7 +144,7 @@ diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/packageVersion-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/packageVersion-plain.xhtml index 8a1a58d3042..7993cadd786 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/packageVersion-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/packageVersion-plain.xhtml @@ -186,7 +186,7 @@ diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/repo-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/repo-plain.xhtml index 070575d562d..e96c9ee6864 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/repo-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/repo-plain.xhtml @@ -894,13 +894,14 @@ diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/repoAssociations-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/repoAssociations-plain.xhtml index 8e26c27df76..ff5d34a6b25 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/repoAssociations-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/repoAssociations-plain.xhtml @@ -282,8 +282,7 @@ diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/repoSubscriptions-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/repoSubscriptions-plain.xhtml index 7e3e272a6df..fe14073908e 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/repoSubscriptions-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/content/repoSubscriptions-plain.xhtml @@ -276,8 +276,7 @@ diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/audit-trail-item-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/audit-trail-item-plain.xhtml index 92badcab422..475365bab8b 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/audit-trail-item-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/audit-trail-item-plain.xhtml @@ -69,7 +69,7 @@ diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/confirm-create-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/confirm-create-plain.xhtml index 91bef8f3f23..4f2c751abac 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/confirm-create-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/confirm-create-plain.xhtml @@ -176,7 +176,7 @@ diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/confirm-delete-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/confirm-delete-plain.xhtml index ea8791ba2cb..cbfe4a5b26a 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/confirm-delete-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/confirm-delete-plain.xhtml @@ -64,7 +64,7 @@ diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/create-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/create-plain.xhtml index 5669f2946d9..f518471975e 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/create-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/create-plain.xhtml @@ -141,7 +141,7 @@ diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/deploy-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/deploy-plain.xhtml index b35e78d2ce0..d163bd968cf 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/deploy-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/deploy-plain.xhtml @@ -139,7 +139,7 @@ diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/history-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/history-plain.xhtml index ce89fb55702..f86ac4f0350 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/history-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/history-plain.xhtml @@ -354,7 +354,7 @@ diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/history-request-item-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/history-request-item-plain.xhtml index 9649654e0c9..af9282e1726 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/history-request-item-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/history-request-item-plain.xhtml @@ -124,7 +124,7 @@ diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/history-request-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/history-request-plain.xhtml index ec4e63a353f..50b281de989 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/history-request-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/history-request-plain.xhtml @@ -183,7 +183,7 @@ diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/history-request-step-details-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/history-request-step-details-plain.xhtml index 4b0c922f071..37e321e22fa 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/history-request-step-details-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/history-request-step-details-plain.xhtml @@ -50,7 +50,7 @@ diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/subscription-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/subscription-plain.xhtml index 1927196e62b..f8e891e88ca 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/subscription-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/subscription-plain.xhtml @@ -250,7 +250,7 @@ diff --git a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/view-plain.xhtml b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/view-plain.xhtml index 65d34f9e57a..37080a13c5e 100644 --- a/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/view-plain.xhtml +++ b/modules/enterprise/gui/portal-war/src/main/webapp/rhq/resource/content/view-plain.xhtml @@ -152,7 +152,7 @@