airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hes...@apache.org
Subject svn commit: r1404840 - /airavata/sandbox/client-api-demo/src/main/webapp/x_app_descriptor_save_jason.html
Date Fri, 02 Nov 2012 00:21:01 GMT
Author: heshan
Date: Fri Nov  2 00:21:01 2012
New Revision: 1404840

URL: http://svn.apache.org/viewvc?rev=1404840&view=rev
Log:
UI improvement on dynamic rendering.

Modified:
    airavata/sandbox/client-api-demo/src/main/webapp/x_app_descriptor_save_jason.html

Modified: airavata/sandbox/client-api-demo/src/main/webapp/x_app_descriptor_save_jason.html
URL: http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/src/main/webapp/x_app_descriptor_save_jason.html?rev=1404840&r1=1404839&r2=1404840&view=diff
==============================================================================
--- airavata/sandbox/client-api-demo/src/main/webapp/x_app_descriptor_save_jason.html (original)
+++ airavata/sandbox/client-api-demo/src/main/webapp/x_app_descriptor_save_jason.html Fri
Nov  2 00:21:01 2012
@@ -56,21 +56,17 @@ Output Type         *: <input type="text
 
         $("p1").live("click", function(){
             inputCount++;
-            $(this).after("<br/>");
-            $(this).after("Input Name         *:" +
-                    "<input type=&quot;text&quot; id=&quot;inputName" + inputCount
+ "&quot; name=&quot;inputName" + inputCount + "&quot; size=&quot;50&quot;><br/>");
-
-            $(this).after("Input Type         *:" +
+            $(this).after("<br/>Input Name         *:" +
+                    "<input type=&quot;text&quot; id=&quot;inputName" + inputCount
+ "&quot; name=&quot;inputName" + inputCount + "&quot; size=&quot;50&quot;><br/>"
+
+                    "Input Type         *:" +
                     "<input type=&quot;text&quot; id=&quot;inputType" + inputCount
+ "&quot; name=&quot;inputType" + inputCount + "&quot; size=&quot;50&quot;><br/>");
         });
 
         $("p2").live("click", function(){
             outputCount++;
-            $(this).after("Output Name         *:" +
-                    "<input type=&quot;text&quot; id=&quot;outputName" + outputCount
+ "&quot; name=&quot;outputName" + outputCount + "&quot; size=&quot;50&quot;><br/>");
-            $(this).after();
-
-            $(this).after("Output Type         *:" +
+            $(this).after("<br/>Output Name         *:" +
+                    "<input type=&quot;text&quot; id=&quot;outputName" + outputCount
+ "&quot; name=&quot;outputName" + outputCount + "&quot; size=&quot;50&quot;><br/>"
+
+                    "Output Type         *:" +
                     "<input type=&quot;text&quot; id=&quot;outputType" + outputCount
+ "&quot; name=&quot;outputType" + outputCount + "&quot; size=&quot;50&quot;><br/>");
         });
 
@@ -138,7 +134,6 @@ Output Type         *: <input type="text
             jsonRequest["serviceDesc"] = serviceDesc;
             console.log(JSON.stringify(jsonRequest));
 
-
             $.ajax({
                 beforeSend: function(x) {
                     if (x && x.overrideMimeType) {
@@ -150,8 +145,6 @@ Output Type         *: <input type="text
                 contentType: "application/json;charset=utf-8",
                 url: "http://localhost:7080/airavata-registry-rest-services/registry/api/applicationdescriptor/build/save",
                 data: JSON.stringify(jsonRequest)
-//                data: JSON.stringify({"name":"abc3", "hostdescName":"LocalHost", "executablePath":"cccc",
"workingDir":"dddd" })
-
             }).done(function( msg ) {
                         alert( "Data Saved: " + msg );
                     });



Mime
View raw message