Changes in src/main/webapp/newsession.xhtml [2:1]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/webapp/newsession.xhtml
r2 r1 31 31 onchange="connectDomain()"> </input> 32 32 <br /> Domain: 33 <select id="domainselection" onc hange="selectDomain()">33 <select id="domainselection" onclick="selectDomain()"> 34 34 <!-- <option>Waiting for profiles server</option> --> 35 35 </select> … … 80 80 81 81 82 83 82 // FIXME quick and dirty code. No clean MVC 84 83 85 84 86 85 <![CDATA[ 87 //"use strict";86 "use strict"; 88 87 89 88 var domainwebsocket = null; … … 103 102 var partyprofiles=[]; 104 103 105 /** from http://fitzgeraldnick.com/2010/08/10/settimeout-patterns.html */ 106 107 function async (fn) { 108 setTimeout(fn, 1000); 109 } 110 111 function sometimeWhen (test, then) { 112 async(function () { 113 if ( test() ) { 114 then(); 115 } else { 116 async(arguments.callee); 117 } 118 }); 119 } 120 121 122 104 123 105 /** 124 106 Refresh known domains using given profilesserver URL. … … 285 267 } 286 268 287 var x=1;288 269 /** 289 270 start the session as currently set on this page. … … 311 292 if (this.status == 200) { 312 293 document.getElementById("startbutton").disabled=true; 294 document.getElementById("started").setAttribute("style",""); 313 295 document.getElementById("logref").href="log/"+this.responseText+".json"; 314 296 document.getElementById("plotref").href="plotlog.xhtml?id="+this.responseText; 315 297 316 sometimeWhen(function() { x=x+1; return x==3 },317 function() { document.getElementById("started").setAttribute("style",""); });318 319 298 } 320 299 else … … 352 331 */ 353 332 function init() { 354 document.getElementById("partiesserverurl").value =window.location.hostname+":8080/partiesserver-1.0.0"355 document.getElementById("profilesserverurl").value =window.location.hostname+":8080/profilesserver-1.0.0"356 333 connectDomain(); 357 334 connectParties();
Note:
See TracChangeset
for help on using the changeset viewer.