diff options
author | Szymon Brandys <Szymon.Brandys@pl.ibm.com> | 2014-04-11 13:38:12 +0200 |
---|---|---|
committer | skaegi <simon_kaegi@ca.ibm.com> | 2014-04-14 00:32:31 -0400 |
commit | 5255f376c478f0a33a298527aae8ef2eda5ce924 (patch) | |
tree | 03e8e03a1259bdfdba66cbd5804c669dedc22f7c | |
parent | ece3f14c155db8e06cf106ae4ae7609b59799992 (diff) | |
download | org.eclipse.orion.client-origin/stable_20140409.zip org.eclipse.orion.client-origin/stable_20140409.tar.gz org.eclipse.orion.client-origin/stable_20140409.tar.bz2 |
Bug 432612 - Do not pass null values to app push methodorigin/stable_20140409
-rw-r--r-- | bundles/org.eclipse.orion.client.cf/web/orion/cfui/cFClient.js | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/bundles/org.eclipse.orion.client.cf/web/orion/cfui/cFClient.js b/bundles/org.eclipse.orion.client.cf/web/orion/cfui/cFClient.js index c737672..eef959c 100644 --- a/bundles/org.eclipse.orion.client.cf/web/orion/cfui/cFClient.js +++ b/bundles/org.eclipse.orion.client.cf/web/orion/cfui/cFClient.js @@ -150,11 +150,14 @@ define(['require', 'orion/xhr', 'orion/Deferred', 'orion/operation'], function(r // Apps CF v2 operations
- pushApp: function(target, appName, contentLocation) {
- var pushReq = {
- Name: appName,
- ContentLocation: contentLocation
- };
+ pushApp: function(target, name, contentLocation) {
+ var pushReq = {};
+
+ if (name)
+ pushReq.Name = name;
+
+ if (contentLocation)
+ pushReq.ContentLocation = contentLocation;
if (target)
pushReq.Target = target;
@@ -167,7 +170,7 @@ define(['require', 'orion/xhr', 'orion/Deferred', 'orion/operation'], function(r if (name) {
url += "?Name=" + name;
- } else if (location) {
+ } else if (contentLocation) {
url += "?ContentLocation=" + contentLocation;
}
|