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 @@
<link type="text/css" rel="stylesheet" href="css/jquery-ui.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/base64.js"></script>
<script type="text/javascript" src="js/tools.js"></script>
<script type="text/javascript" src="unhosted/jio.js"></script>
......
......@@ -32,7 +32,7 @@
<script type="text/javascript">
// initialize
var initPage = function() {
setCurrentPage(new Page(supportedDocuments[getCurrentDocument().getType()].editorPage));
new Page(supportedDocuments[getCurrentDocument().getType()].editorPage);
}
var initUser = function() {
......
......@@ -32,9 +32,9 @@
<script type="text/javascript">
var init = function() {
//delete localStorage.documentList;//delete the list for tests
setCurrentPage(new Page("ung"));//provide methods on the page
getCurrentStorage().getUser().setAsCurrentUser();//initialize the user
//initialize page and storage, then user, and then document List
Page.initialize("ung");//provide methods on the page
Storage.initialize();//initialize storage
if(getCurrentDocumentID()&&getDocumentList().get(getCurrentDocumentID())) {
/* update the list with the modifications of the last edited document
......@@ -43,12 +43,12 @@
delete localStorage.currentDocumentID;
getCurrentStorage().save();
}
waitBeforeSucceed(//display the list of documents
function(){return Line.loadHTML()},function() {
Line.loadHTML(//display the list of documents
function() {
getDocumentList().resetSelectionList();
getDocumentList().updateDisplayInformation();
getDocumentList().display();
resize();}//hack for a bug with firefox
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