Commit Graph

85 Commits

Author SHA1 Message Date
Brion Vibber 057a831026 Fixes for race conditions between Realtime plugin and the AJAX display of inline replies.
* keep the notice-reply-placeholder around, but hidden
* insert things before the placeholder, rather than appending to the end of the list.
* append the active form after the hidden placeholder, so things inserted before the placeholder never come after it
* Realtime: check pre-existing notice visibility a second time after loading the HTML for a notice. Fixes bug where sometimes your own post would be shown twice because the Realtime notification arrived before the AJAX posting returned, but Realtime's AJAX fetch of the notice returned after.
2011-03-17 15:54:40 -07:00
Brion Vibber 90d35885ae Realtime plugin: fix i18n, thumbnails, location display, OStatus server display, micro-apps display.
Switch from manual local formatting of notices (which lacks all the server-side goodness) to calling into the server-side with an AJAX variant of shownotice.
2011-03-14 13:29:35 -07:00
Brion Vibber 1e36593a23 Realtime work in progress: switch makeNoticeData to async -- next we'll load fresh copies from server, maintaining proper language and plugin enhancements. 2011-03-14 12:32:39 -07:00
Brion Vibber 764d069ccd Clean up threaded notices vs replies classes, and fixed realtime's threaded behavior to only run on threaded lists 2011-03-01 16:08:37 -08:00
Brion Vibber 9fd2ee86f3 Inline reply work for threaded lists in realtime 2011-03-01 16:04:11 -08:00
Brion Vibber 5d6b9936c2 Partial update of Realtime for threaded view; can now place replies into the proper subtimeline if it's already present, but not if it wasn't shown yet. 2011-03-01 15:45:44 -08:00
Brion Vibber 18cbdfb49b Ticket #2913: Realtime background update marker no longer triggers false positives when clearing the marker on switching away from the tab in Firefox 4
We were clearing the counter on the window title in the blur event, which gets fired *after* we switch away, thus triggering Firefox to mark the tab as updated again.
Clearing the counter on *focus* instead avoids this, and keeps the counter out of the way as well.
2010-12-01 01:09:14 +00:00
Brion Vibber c6f5975554 Fix ticket #2914: Realtime no longer tells you it's got a message queued up when it's really the one you just sent out and is already visible. 2010-11-30 16:46:11 -08:00
Brion Vibber f222e2132d Went through realtimeupdate.js and added documentation comments -- does not alter the minified version. :)
Identified several bugs and fixmes, and added more thorough labeling of the issues with replicating the entire HTML structure of notices (no i18n, missing new features, maintenance problems, possible other issues)
2010-11-30 16:39:09 -08:00
Brion Vibber 86201761ea Use SN.msg() and onEndScriptMessages() to export localized UI messages from Realtime plugin and its descendents. 2010-11-02 13:12:58 -07:00
Brion Vibber 151eebcc28 Starting on making Realtime plugin's UI messages localizable: pause/play, popup button text and tooltip text are now loaded from PHP code where we can get at gettext. 2010-11-02 11:46:29 -07:00
Brion Vibber e36df29212 Patch from g0: fix for conversation links in Realtime updates
Previously was using the reply-to URL, which didn't match with other displays.
Now sends to the right conversation page.
2010-05-17 19:37:47 +00:00
Brion Vibber bf468e2a8d Remove debug line that crept into a commit a while back, breaking realtime when Firebug wasn't present 2010-03-28 14:41:31 -07:00
Sarven Capadisli f3c2dfacf4 Fix to Realtime's repeat notice form legend and notice id 2010-02-10 10:48:55 +00:00
Sarven Capadisli 7ebd13fa69 Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x 2010-02-04 16:56:34 +00:00
Sarven Capadisli 0c838f82b0 Added missing concat of </li> in Realtime response 2010-01-31 23:57:35 +01:00
Sarven Capadisli 9f36c10001 Updated XHR binded events to work better in jQuery 1.4.1. Using
.live() for event delegation instead of jQuery.data() and checking to
see if an element was previously binded.
2010-01-31 22:37:22 +00:00
Sarven Capadisli edf99dc45b Adds notice author's name to @title in Realtime response 2010-01-29 15:44:59 +00:00
Sarven Capadisli b68a21d4f7 Adds notice author's name to @title in Realtime response 2010-01-29 15:43:37 +00:00
Sarven Capadisli 4c91f6bbfd Moving &amp; replacing to the end of html and source data 2009-12-21 23:19:34 +00:00
Evan Prodromou f3d27cc3ae can't repeat your own notice posted through realtime 2009-12-15 16:19:11 -05:00
Evan Prodromou 608d1b206a Don't show repeater avatar in notice lists 2009-12-15 16:08:44 -05:00
Evan Prodromou d6873beb9b make realtime plugin grok repeats 2009-12-15 15:47:37 -05:00
Sarven Capadisli 80b5a7fe60 Added .form_repeat notice option to received notices in Realtime plugin 2009-12-15 19:44:20 +00:00
Sarven Capadisli 11dab47e2d If localStorage is not supported, showPause as usual 2009-12-07 12:12:32 +00:00
Sarven Capadisli 189296c5a0 Using localStorage to keep the play/pause state of RealtimeUpdate 2009-12-07 11:44:43 +00:00
Sarven Capadisli 49005881bd Minor fix for play/pause mouseleave 2009-12-06 22:07:49 +00:00
Sarven Capadisli a555963f97 Preliminary UI for Play/Pause behaviour on hover state for notices 2009-12-05 23:12:56 +00:00
Zach Copley 9dc888894b Merge branch 'master' into 0.9.x
* master: (67 commits)
  Ticket 2038: fix bad bug tracker link
  Fix regression in group posting: bug introduced in commit 1319002e15. Need to use actual profile object rather than an id on a variable that doesn't exist when checking blocks :D
  Log database errors when saving notice_inbox entries
  Drop the username from the log id for now; seems to trigger an error loop in some circumstances
  request id on logs... pid + random id per web request + username + method + url
  Add OpenID ini info back into statusnet.ini as a stopgap until we can
  Some changes to the OpenID DataObjects to make them emit the exact same
  OpenID plugin should set 'user_openid.display' as unique key
  Remove relationship: user_openid.user_id -> user.id. I don't think this
  Have OpenID plugin DataObjects emit their own .ini info
  Revert "Allow plugin DB_DataObject classes to not have to use the .ini file by overriding keys(), table(), and sequenceKey() for them"
  Catch and report exceptions from notice_to_omb_notice() instead of letting the OMB queue handler die.
  Fix regression in remote subscription; added hasRole() shadow method on Remote_profile.
  Fix fatal error on OMB subscription for first-timers
  Remove annoying log msg
  Drop error message on setlocale() failure; this is harmless, since we actually have a working locale set up.
  Catch uncaught exception
  Fixed bug where reply-sync bit wasn't getting saved
  Forgot to render the nav menu when on FB Connect login tab
  Facebook plugin no longer takes over Login and Connect settings nav menus
  ...

Conflicts:
	db/08to09_pg.sql
	db/statusnet_pg.sql
	locale/pt_BR/LC_MESSAGES/statusnet.mo
	plugins/Mapstraction/MapstractionPlugin.php
2009-11-30 10:28:58 -08:00
Sarven Capadisli a1bea8bb38 Allow Realtime notices to use the attachments interface 2009-11-29 19:27:33 +00:00
Sarven Capadisli 237f2c2d78 Calling NoticeReplyTo instead of NoticeReply in Realtime 2009-11-28 15:46:24 +00:00
Sarven Capadisli c413a4d80b Explictly unbinding is unnecessary as jQuery's remove() takes care of it 2009-11-28 14:58:57 +00:00
Sarven Capadisli 2ac1179a05 SN.U.NoticeFavor should be SN.U.NoticeReply 2009-11-28 14:51:22 +00:00
Sarven Capadisli 36e38b4b60 Only bind submit to the notice created by Realtime 2009-11-28 14:29:25 +00:00
Sarven Capadisli 1ea5ccc5c1 I can't hide the location and status bars in Firefox, IE or Chromium.
It only works in Safari and Opera.
https://developer.mozilla.org/En/DOM/Window.open confirms that by
default, Firefox and IE forces their presence.
2009-11-25 21:32:51 +00:00
Sarven Capadisli 84ed094f40 Moved initPopupWindow CSS out of JS in Realtime plugin 2009-11-24 13:10:34 +00:00
Sarven Capadisli 5973192593 Enable border-top when Realtime pop up window is initialized 2009-11-24 12:55:08 +00:00
Sarven Capadisli b51df36189 Reduced entity_profile width in pop up 2009-11-20 04:09:40 +00:00
Sarven Capadisli 63d3e07ce4 Check for dupe from insertNoticeItem() 2009-11-18 19:15:55 +00:00
Sarven Capadisli c1efb8aa7f Took out CSS from JS and placed it in its own file. 2009-11-18 17:59:44 +00:00
Sarven Capadisli ef542afbe5 Added counter beside the play button. When paused, it will update the
counter on new received notices. Counter is removed when play is clicked
2009-11-18 17:23:04 +00:00
Sarven Capadisli 4823463e3f Relatively positioning notice_primary 2009-11-18 16:00:40 +00:00
Sarven Capadisli 6d3d78c793 Styled realtime_actions 2009-11-18 15:57:45 +00:00
Sarven Capadisli 5014b748e4 Added play/pause button for realtime notices. While on pause, it will
store the notices and on play it will add them to the notice list
2009-11-18 15:41:07 +00:00
Sarven Capadisli 43b6da8afc Created separate objects for receive actions 2009-11-18 13:34:06 +00:00
Sarven Capadisli 007418fdab Setting windowhasfocus to true by default 2009-11-18 12:46:36 +00:00
Sarven Capadisli 51e4a45161 Changed from click to bind 2009-11-18 10:56:25 +00:00
Sarven Capadisli 23367ecdcf Setting max notice count in order not to freak out the browser with
memory issues. It removes the node and unbinds the previously assigned
events.
2009-11-18 10:54:57 +00:00
Sarven Capadisli 0c81f39bee Added check to see whether window has focus 2009-11-18 10:53:48 +00:00
Sarven Capadisli 5e0fb1ddfc Added a call to NoticeFavor() 2009-11-18 10:49:41 +00:00