Changeset 730
- Timestamp:
- 09/29/10 09:38:44 (14 years ago)
- Location:
- MDService2/trunk/MDService2/WebContent
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
MDService2/trunk/MDService2/WebContent/index.jsp
r728 r730 43 43 <h1>MDService2</h1> 44 44 <div id="top-menu"> 45 User: <b><%= request.getRemoteUser() %></b><a href="workspace.jsp" > login</a><br> 45 <% if ( request.getRemoteUser() == null) { %> 46 User: ------ <a href="workspace.jsp" > login</a><br> 47 <% } else { %> 48 User: <b><%= request.getRemoteUser() %></b><a href="logout.jsp" > logout</a><br> 49 <% }%> 50 46 51 <a href="static/profiles_stats.html" >Info from CompReg and DCR about Elements vs. DatCats</a> 47 52 </div> -
MDService2/trunk/MDService2/WebContent/scripts/mdservice2_ui.js
r720 r730 984 984 985 985 function saveWorkspace(){ 986 987 var tmp = JSON.stringify(jsonw["WorkspaceProfile"]); 988 /* 989 if (String(jsonw["WorkspaceProfile"]["Querysets"]) != "null") { 990 $.each(jsonw["WorkspaceProfile"]["Querysets"], function(i,item) { 991 if (this.Queries != "null"){ 992 if (this.Queries[1] == undefined){ 993 var jj = this["Queries"][0]; 994 delete this["Queries"][0]; 995 this.Queries = {}; 996 this.Queries["Query"] = jj; 997 } 998 /* 999 $.each(this.Queries,function(i,item){ 1000 if (this.collections != "null"){ 1001 if (this.collections[1] == undefined){ 1002 var jj = this["collections"][0]; 1003 delete this["collections"][0]; 1004 this.collections = {}; 1005 this.collections["item"] = jj; 1006 } 1007 } 1008 }); 1009 // / 1010 } 1011 }); 1012 if (jsonw["WorkspaceProfile"].Querysets[1] == undefined){ 1013 1014 var jj = jsonw["WorkspaceProfile"]["Querysets"][0]; 1015 delete jsonw["WorkspaceProfile"]["Querysets"][0]; 1016 jsonw["WorkspaceProfile"]["Querysets"] = {}; 1017 jsonw["WorkspaceProfile"]["Querysets"]["Queryset"] = jj; 1018 1019 1020 } 1021 1022 } 1023 */ 986 1024 987 var JSONText = JSON.stringify(jsonw["WorkspaceProfile"]); 1025 /*1026 if (jsonw["WorkspaceProfile"].Querysets[0] == undefined){1027 var jj = jsonw["WorkspaceProfile"]["Querysets"]["Queryset"];1028 delete jsonw["WorkspaceProfile"]["Querysets"]["Queryset"];1029 jsonw["WorkspaceProfile"]["Querysets"] = [{}];1030 jsonw["WorkspaceProfile"]["Querysets"][0] = jj;1031 }1032 if (String(jsonw["WorkspaceProfile"]["Querysets"]) != "null") {1033 1034 $.each(jsonw["WorkspaceProfile"]["Querysets"], function(i,item) {1035 if (this.Queries[0] == undefined){1036 var jj = this["Queries"]["Query"];1037 delete this["Queries"]["Query"];1038 this.Queries = [{}];1039 this.Queries[0] = jj;1040 }1041 });1042 }1043 */1044 //$.post("/MDService2/workspaceprofilesave/1/" + JSONText, "");1045 //var JSONText1 = "{WorkspaceProfile:{Querysets:{[{Query:}]}}}";1046 988 $.post("/MDService2/workspaceprofilesave/1/" + JSONText, ""); 1047 989 }
Note: See TracChangeset
for help on using the changeset viewer.