<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
<body>
    
<th:block layout:fragment="scripts" th:inline="javascript">
    <script src=""></script>
    <script th:inline="javascript">
        /*
        This is loaded into an iFrame.
        Close the bootstrap modal on the parent page.
         */
        var modal = window.parent.document.querySelector("#remote-connect-wrapper");
        modal.dataset.result = "success";
        modal.querySelector(".close").click();
    </script>
</th:block>
</body>
</html>
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
<body>
    
<th:block layout:fragment="scripts" th:inline="javascript">
    <script src=""></script>
    <script th:inline="javascript">

      /*
      This is loaded into an iFrame.
      */
      window.parent.location.reload();
      /*
      This is loaded into an iFrame.
      Close the bootstrap modal on the parent page.
       */
      // TODO: (Josh | 2017-12-22) Re-enable closing modal after other pages fixed.
        // var modal = window.parent.document.querySelector("#remote-connect-wrapper");
        // modal.dataset.result = "success";
        // modal.querySelector(".close").click();
    </script>
</th:block>
</body>
</html>
Complete reload. Will do ajax when other pages completed.
Complete reload.  Will do ajax when other pages completed.

Signed-off-by: Josh Adam <145deb3b14a050e5d71a52d3f66595ad13b930b2@gmail.com>
