Commits

mpagnon committed 27e5e05

[Issue 1126] IEO :no refresh of parent at end of execution for IE8

Comments (0)

Files changed (1)

tm/org.squashtest.csp.tm.web/src/main/webapp/WEB-INF/jsp/page/executions/ieo-execute-execution.jsp

 			}).done( setStatusFailure );					
 		});
 		
-		$(parent.frameleft).unload( refreshParent );
+		/* $(parent.frameleft).unload( refreshParent ); */// see "comment[1]"
+
 	});
 	
 	function refreshParent(){
 	}
 	
 	function showStepAt(url) {
-		parent.frameleft.document.location.href = url
-		$(parent.frameleft).unload( refreshParent );
-		/* refreshParent(); */
+		parent.frameleft.document.location.href = url;
+		/* $(parent.frameleft).unload( refreshParent ); */
+		refreshParent();// see "comment[1]"
 	}
 
 	function testComplete(){
 		if (!isSuite) {
 			$.squash.openMessage("<f:message key='popup.title.info' />",  "${ completedMessage }" ).done(function() {
+				refreshParent();// see "comment[1]"
 				window.close();
 			});
 		} else if (hasNextTestCase) {
 			$('#execute-next-test-case').click();
+			refreshParent(); // see "comment[1]"
 		} else { // suite without next
 			$.squash.openMessage("<f:message key='popup.title.info' />","${ endTestSuiteMessage }").done(function() {
+				refreshParent();// see "comment[1]"
 				window.close();
-			});
+ 			});
 		}					
 	}
 	
 
 	<comp:decorate-buttons />
 </body>
-</html>
+</html>
+
+<!-- comment[1] [Issue 1126] Had to use directly "refreshParent" instead of "iframe.unload(refreshParent)" beacause the latest do not work with IE 8  -->