Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate

Commit efde6abc64fd639e8997645c8f331778f84dc34c

  • avatar
  • Sebastian Silva <sebastian @somos…car.org>
  • Mon Apr 22 06:13:46 EDT 2013
Disabled SSE to prevent Sugar shell crash
  
399399
400400 $(document).ready( function() {
401401 sse = new EventSource('/my_event_source');
402
402 /*
403403 sse.onmessage = function(message) {
404404 data = $.parseJSON(message.data);
405405 if (data.event=="inline" && data.state=="offline") {
414414 // location.reload();
415415 // TODO: proper ajaxy reload
416416 }
417 /* TODO: Handle these
417 // TODO: Handle these
418418 if (data.event=="push") {
419419 toastr.info('Sugar Network is synchronized.');
420420 }
421421 if (data.event=="create") {
422422 toastr.warning('New ' + data.props.type[0]);
423423 }
424 console.log('A message has arrived!');*/
424 console.log('A message has arrived!');
425425 }
426 */
426427
427428 $( "#sn-button" ).tooltip({position:"bottom right", offset:[-3,-60], predelay:500});
428429 $( "#browser-button" ).tooltip({position:"bottom right", offset:[-3,-60], predelay:500});