Commit 275cb9a4 authored by François Billioud's avatar François Billioud

adapt the html to the previous changes in html code

parent 77ddcfa2
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
<link type="text/css" rel="stylesheet" href="css/jquery-ui.css" /> <link type="text/css" rel="stylesheet" href="css/jquery-ui.css" />
<link type="text/css" rel="stylesheet" href="css/ung.css" /> <link type="text/css" rel="stylesheet" href="css/ung.css" />
<script type="text/javascript" src="js/jquery/jquery.js"></script> <script type="text/javascript" src="js/jquery/jquery.js"></script>
<script type="text/javascript" src="js/base64.js"></script>
<script type="text/javascript" src="js/tools.js"></script> <script type="text/javascript" src="js/tools.js"></script>
<script type="text/javascript" src="unhosted/jio.js"></script> <script type="text/javascript" src="unhosted/jio.js"></script>
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<script type="text/javascript"> <script type="text/javascript">
// initialize // initialize
var initPage = function() { var initPage = function() {
setCurrentPage(new Page(supportedDocuments[getCurrentDocument().getType()].editorPage)); new Page(supportedDocuments[getCurrentDocument().getType()].editorPage);
} }
var initUser = function() { var initUser = function() {
......
...@@ -32,9 +32,9 @@ ...@@ -32,9 +32,9 @@
<script type="text/javascript"> <script type="text/javascript">
var init = function() { var init = function() {
//delete localStorage.documentList;//delete the list for tests //initialize page and storage, then user, and then document List
setCurrentPage(new Page("ung"));//provide methods on the page Page.initialize("ung");//provide methods on the page
getCurrentStorage().getUser().setAsCurrentUser();//initialize the user Storage.initialize();//initialize storage
if(getCurrentDocumentID()&&getDocumentList().get(getCurrentDocumentID())) { if(getCurrentDocumentID()&&getDocumentList().get(getCurrentDocumentID())) {
/* update the list with the modifications of the last edited document /* update the list with the modifications of the last edited document
...@@ -43,12 +43,12 @@ ...@@ -43,12 +43,12 @@
delete localStorage.currentDocumentID; delete localStorage.currentDocumentID;
getCurrentStorage().save(); getCurrentStorage().save();
} }
waitBeforeSucceed(//display the list of documents Line.loadHTML(//display the list of documents
function(){return Line.loadHTML()},function() { function() {
getDocumentList().resetSelectionList(); getDocumentList().resetSelectionList();
getDocumentList().updateDisplayInformation();
getDocumentList().display(); getDocumentList().display();
resize();}//hack for a bug with firefox resize();
}
); );
} }
$(window).resize(resize); $(window).resize(resize);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment