Commit eea85d6f authored by Siddhant Sanyam's avatar Siddhant Sanyam

Fixed getCurrentDocument is not a function

parent 9d773a3f
......@@ -52,7 +52,7 @@ getCurrentDocument = function() {
doc.load(JSON.parse(localStorage.getItem("currentDocument")));
return doc;
}
(new JSONTextDocument()).setAsCurrentDocument();//load the document (it's just for testing)
saveCurrentDocument = function() {
......
......@@ -146,6 +146,7 @@ User.prototype = {
setIdentityProvider: function(IDProv) {this.identityProvider = IDProv;},
setAsCurrentUser: function() {
getCurrentPage().displayUserName(this);
getCurrentPage().displayLanguages(this);
setCurrentUser(this);
......
......@@ -28,7 +28,7 @@
<script type="text/javascript" src="js/base64.js"></script>
<script type="text/javascript" src="js/tools.js"></script>
<script type="text/javascript" src="js/theme.js"></script>
<script type="text/javascript" src="js/editor.js"></script>
<script type="text/javascript">
// initialize
......
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