Added socket event logging for the backend
Added the mongodb dump
Opening and the graph based on the topic done variable
Added a way to store topic_ids in cookies so that we can check if the topic has already been voted for (but when re-opening a graph its empty)
Changed the log level for socket.io from 3 (debug) to 2 (info)
Changed the logic so that we now have to send a wishForGraphUpdate event to the backend to get graph datac (this means that whenever someone wishes for graph data EVERYBODY will get an update, this needs to be fixed)
Changed form the newOpionionSendt event listener to $scope.$watch
Added a wishForGraphUpdate in the votingChart code to
Now the graph events contain the topic ids
Now we make the graphs on user click event
I had set up the eventController both in the routeprovider and in the view
Now getting the event object BEFORE loading the event view.
Moved the stuff from graphController into the directive's link function.
not editing the DOM in the controller: it's not just a good idea, IT'S THE LAW!!
Now that the dom manipulation is out of the controller and in the linking function,
is's much easies to create the graphs. I have now removed unnecessary code,
including the template because we are now creating the divs on a as needed basis.