First user is me

This commit is contained in:
Victor Dubiniuk 2014-03-22 01:37:13 +03:00
parent de7c80112d
commit 8153b08362
2 changed files with 9 additions and 1 deletions

View File

@ -349,6 +349,10 @@ define("webodf/editor/EditorSession", [
} }
}; };
this.getLocalMemberId = function(){
return localMemberId;
};
this.insertTable = function (initialRows, initialColumns, tableStyleName, tableColumnStyleName, tableCellStyleMatrix) { this.insertTable = function (initialRows, initialColumns, tableStyleName, tableColumnStyleName, tableCellStyleMatrix) {
var op = new ops.OpInsertTable(); var op = new ops.OpInsertTable();
op.init({ op.init({

View File

@ -122,8 +122,12 @@ define("webodf/editor/MemberListView",
//caret.toggleHandleVisibility(); //caret.toggleHandleVisibility();
} }
}; };
if (memberId === editorSession.getLocalMemberId()){
memberListDiv.insertBefore(avatarDiv, memberListDiv.firstChild);
} else {
memberListDiv.appendChild(avatarDiv); memberListDiv.appendChild(avatarDiv);
} }
}
/** /**
* @param {!string} memberId * @param {!string} memberId