[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13729075#comment-13729075
 ] 

Andun Sameera Liyanagunawardana commented on OPENMEETINGS-733:
--------------------------------------------------------------

I have implemented the Undo feature and the particular UI button. Every logic 
works fine up to this point,

When a use click the undo button, server decide what ae elements which shoul be 
deleted, replace etc. Then server send the data to client via web socket. And 
clients uses these methods to add the change to there local whiteboards,

        function addElement(m) {
            elementCollection.acceptJsonStr(JSON.stringify(m.json));
        }

        function parseWB(m) {
            elementCollection.parseJson(JSON.stringify(m.json));
        }

But this code which is added to send the changes of Whteboard to the server,

"whiteboard = bay.whiteboard.Create();\n" +
"elementCollection=whiteboard.getMainCollection();"+
"whiteboard.getMainCollection().onChange = function(element){\n"+
"changedElement=this.getJson(element);\n"+
"Wicket.Ajax.get({u:'"+callbackUrl+"',ep:{editedElement:changedElement}});\n};\n"+
"whiteboard.render(document.getElementById('"+whiteboardId+"'));";

send the undo change back to the server. That should not be happen. What is the 
way to overcome that? I can compare the newly arrived element with the existing 
element in the server's element collection to overcome adding undo changes to 
serve again?
                
> Wicket based Whiteboard should provide Undo feature
> ---------------------------------------------------
>
>                 Key: OPENMEETINGS-733
>                 URL: https://issues.apache.org/jira/browse/OPENMEETINGS-733
>             Project: Openmeetings
>          Issue Type: Sub-task
>          Components: HTML5, UI
>    Affects Versions: 3.0.0 Apache Release
>            Reporter: Andun Sameera Liyanagunawardana
>            Assignee: SebastianWagner
>             Fix For: 3.0.0 Apache Release
>
>
> Wicket based Whiteboard should provide Undo feature

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to