update from webodf
This commit is contained in:
parent
c1c01c364c
commit
6561341e05
@ -150,7 +150,10 @@ define("webodf/editor/Editor", [
|
|||||||
odfCanvas.addListener("statereadychange", function () {
|
odfCanvas.addListener("statereadychange", function () {
|
||||||
if (!editorReadyCallback) {
|
if (!editorReadyCallback) {
|
||||||
// already called once, restart session and return
|
// already called once, restart session and return
|
||||||
editorSession.sessionController.setUndoManager(new gui.TrivialUndoManager());
|
// undo manager is not yet integrated with collaboration
|
||||||
|
if (! server) {
|
||||||
|
editorSession.sessionController.setUndoManager(new gui.TrivialUndoManager());
|
||||||
|
}
|
||||||
editorSession.startEditing();
|
editorSession.startEditing();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -161,7 +164,10 @@ define("webodf/editor/Editor", [
|
|||||||
editorSession = new EditorSession(session, memberid, {
|
editorSession = new EditorSession(session, memberid, {
|
||||||
viewOptions: viewOptions
|
viewOptions: viewOptions
|
||||||
});
|
});
|
||||||
editorSession.sessionController.setUndoManager(new gui.TrivialUndoManager());
|
// undo manager is not yet integrated with collaboration
|
||||||
|
if (! server) {
|
||||||
|
editorSession.sessionController.setUndoManager(new gui.TrivialUndoManager());
|
||||||
|
}
|
||||||
|
|
||||||
if (memberListDiv) {
|
if (memberListDiv) {
|
||||||
memberList = new MemberList(editorSession, memberListDiv);
|
memberList = new MemberList(editorSession, memberListDiv);
|
||||||
|
@ -32,10 +32,13 @@
|
|||||||
* @source: http://www.webodf.org/
|
* @source: http://www.webodf.org/
|
||||||
* @source: http://gitorious.org/webodf/webodf/
|
* @source: http://gitorious.org/webodf/webodf/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*global Node, define, runtime */
|
/*global Node, define, runtime */
|
||||||
|
|
||||||
function SessionListView(sessionList, sessionListDiv, cb) {
|
define("webodf/editor/SessionListView", [], function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
return function SessionListView(sessionList, sessionListDiv, cb) {
|
||||||
var self = this,
|
var self = this,
|
||||||
memberDataChangedHandler;
|
memberDataChangedHandler;
|
||||||
|
|
||||||
@ -108,4 +111,5 @@ function SessionListView(sessionList, sessionListDiv, cb) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
init();
|
init();
|
||||||
}
|
};
|
||||||
|
});
|
||||||
|
@ -305,15 +305,19 @@ var webodfEditor = (function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function showSessions() {
|
function showSessions() {
|
||||||
var sessionListDiv = document.getElementById("sessionList"),
|
require({ }, ["webodf/editor/SessionListView"],
|
||||||
sessionList = new serverFactory.createSessionList(server),
|
function (SessionListView) {
|
||||||
sessionListView = new SessionListView(sessionList, sessionListDiv, enterSession);
|
var sessionListDiv = document.getElementById("sessionList"),
|
||||||
|
sessionList = new serverFactory.createSessionList(server),
|
||||||
|
sessionListView = new SessionListView(sessionList, sessionListDiv, enterSession);
|
||||||
|
|
||||||
// hide login view
|
// hide login view
|
||||||
document.getElementById("loginContainer").style.display = "none";
|
document.getElementById("loginContainer").style.display = "none";
|
||||||
|
|
||||||
// show session list
|
// show session list
|
||||||
document.getElementById("sessionListContainer").style.display = "";
|
document.getElementById("sessionListContainer").style.display = "";
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function loginSuccess(userData) {
|
function loginSuccess(userData) {
|
||||||
|
1111
js/webodf-debug.js
1111
js/webodf-debug.js
File diff suppressed because one or more lines are too long
1241
js/webodf.js
1241
js/webodf.js
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user