Commit Graph

396 Commits

Author SHA1 Message Date
Brion Vibber
a7a0041a11 Quick hack to avoid breaking with geonames off when there's some old cookie state. This code's a little rough and tumble; any breakage halts JS execution and leaves the spinner going and no message submitted. 2010-01-26 00:25:20 +01:00
Sarven Capadisli
a35c52b6be Some JS cleaning up for NoticeLocationAttach (which fixes also fixes a
few bugs in WebKit)
2010-01-26 00:25:13 +01:00
Sarven Capadisli
2e643071ff Took out focus out of textare when location share is enabled/disabled.
Also avoids the conflict with the URL fragment on the conversation page.
2010-01-26 00:25:06 +01:00
Sarven Capadisli
f9cc3e6d94 Added missing position paramater 2010-01-26 00:24:57 +01:00
Sarven Capadisli
cae2429d12 JSLinting on JSON 2010-01-26 00:24:44 +01:00
Sarven Capadisli
73f6250b9d An update to geolocation cookie to use a single file and set the
expiry date to 30 days from now.
2010-01-25 14:55:04 +00:00
Sarven Capadisli
c367e09d11 Some JS cleaning up for NoticeLocationAttach (which fixes also fixes a
few bugs in WebKit)
2010-01-24 00:21:42 +01:00
Sarven Capadisli
940fc463c8 Took out focus out of textare when location share is enabled/disabled.
Also avoids the conflict with the URL fragment on the conversation page.
2010-01-24 00:20:48 +01:00
Sarven Capadisli
f043bc62a5 Added missing position paramater 2010-01-24 00:18:52 +01:00
Sarven Capadisli
68c864c95a JSLinting on JSON 2010-01-24 00:18:39 +01:00
Brion Vibber
4b0f953ccf Quick hack to avoid breaking with geonames off when there's some old cookie state. This code's a little rough and tumble; any breakage halts JS execution and leaves the spinner going and no message submitted. 2010-01-21 16:30:03 -08:00
Sarven Capadisli
acc48289e5 Update geo location UI for notice form where the geo data info is only
visible on @title of the enable/disable button.
2010-01-14 01:48:57 +00:00
Sarven Capadisli
d84c33c328 Unchecks location sharing for geo location if it timesout 2010-01-13 15:51:32 +00:00
Sarven Capadisli
af97a14f7c Timeout should be 10000, not 10
Revert "Unchecks location sharing for geo location if it timesout"

This reverts commit 8887d7a314.
2010-01-13 15:50:45 +00:00
Sarven Capadisli
8887d7a314 Unchecks location sharing for geo location if it timesout 2010-01-13 15:48:26 +00:00
Sarven Capadisli
2000d2d36b Added timeout error handling for geo location 2010-01-13 15:36:42 +00:00
Sarven Capadisli
9b2fdefe39 Using a JSON object for NoticeDataGeo text instead 2010-01-13 15:21:43 +00:00
Sarven Capadisli
70bdaeeb09 Explicitly reseting notice_in-reply-to value 2010-01-11 12:19:53 +00:00
Sarven Capadisli
8901e01692 Added i18n text for @title values in geo sharing actions 2010-01-08 18:07:02 +00:00
Sarven Capadisli
febe64625e Focus on the notice textarea after share, minimize, close button actions 2010-01-08 16:51:18 +00:00
Sarven Capadisli
17913d4427 Makes sure that if geo location sharing is disabled, it doesn't use
the HTML output. If cookie is set, use those values for XHR notice post
2010-01-08 16:43:03 +00:00
Sarven Capadisli
064f13f3ab Stores geo view's minimized state in a cookie 2010-01-08 14:23:37 +00:00
Sarven Capadisli
54c18e68da Some code cleaning for geo UI 2010-01-08 13:58:23 +00:00
Sarven Capadisli
69f567c7be Using cookies to minimize lookups to Geonames 2010-01-08 13:36:52 +00:00
Sarven Capadisli
a08e683ac3 Reuse cookie location_enabled before .change() 2010-01-05 01:31:34 +00:00
Sarven Capadisli
eb9514120a Retain the geo data when FormNoticeXHR is complete because form gets
reset
2010-01-05 01:15:08 +00:00
Sarven Capadisli
db1a7d6f88 Remove input geo data as well 2010-01-05 00:37:53 +00:00
Sarven Capadisli
9fadfd850e If user checked shared location but didn't enter their location, don't
show the checkbox
2010-01-05 00:15:26 +00:00
Sarven Capadisli
d59ffeaab5 Refactored NoticeLocationAttach(). It works better in UAs that don't
support Geolocation API.
2010-01-04 23:36:22 +00:00
Sarven Capadisli
a0f7896f22 Ran NoticeLocationAttach() through jslint 2010-01-04 13:44:32 +00:00
Sarven Capadisli
dcd3292f57 Relocated @title removal 2010-01-04 12:44:48 +00:00
Sarven Capadisli
ad323575e6 Refactored geo location removal to removeNoticeDataGeo() 2010-01-04 10:07:32 +00:00
Sarven Capadisli
fe8927a42c Added errorCallback() to geoCurrentPosition() i.e., if user doesn't
grant permission, removes the Geo processing and (if any) existing geo
location data from notice form.
2010-01-04 09:52:35 +00:00
Sarven Capadisli
d1998adb13 Trim whitespace from label's textContent 2010-01-04 09:29:41 +00:00
Sarven Capadisli
9f9dcd2bf5 Using object value instead of inline string 2010-01-04 09:14:14 +00:00
Sarven Capadisli
50af9c5c40 Open geoname URL in a new window 2010-01-04 09:10:21 +00:00
Sarven Capadisli
94af0d1279 Fix end tag 2010-01-03 02:07:55 +00:00
Sarven Capadisli
467ae9d9e7 Button should return false 2010-01-03 02:00:12 +00:00
Sarven Capadisli
aef31280f3 Moved location container's buttons inside enabled state 2010-01-03 01:48:41 +00:00
Sarven Capadisli
4983564949 Reset location icon when container button.close is clicked 2010-01-03 01:17:51 +00:00
Sarven Capadisli
503d0acd49 Added minimize functionality to selected location container 2010-01-03 01:02:32 +00:00
Sarven Capadisli
ec5850d26a Changed location share representation to be more like the file
attachment. Init UI. Probably a little buggy.
2010-01-03 00:33:41 +00:00
Sarven Capadisli
01dbee2ba5 Initial UI for geo location share option in notice form 2009-12-31 18:41:10 +00:00
Sarven Capadisli
9496f2735e Moving notice_data-location_wrap after notice form fieldset 2009-12-31 18:27:05 +00:00
Sarven Capadisli
dde6415a6a Moved JavaScript dependant stuff out of noticeform. 2009-12-31 18:08:21 +00:00
Sarven Capadisli
e84bf0aa98 jQuery select SN.C.S.NoticeLocationName once. 2009-12-31 17:02:02 +00:00
Sarven Capadisli
5a66d27637 Using semicolon to seperate lat and long; RFC2426 2009-12-31 16:37:46 +00:00
Sarven Capadisli
ccf78976a5 NoticeLocationAttach() slightly more readable 2009-12-31 16:34:07 +00:00
Sarven Capadisli
58465d74ba Compare by type 2009-12-31 16:25:51 +00:00
Sarven Capadisli
e06292c2a2 If UA doens't support navigation.geolocation or have JavaScript
enabled, the user should still be able to enable/disable their share
location setting per notice.
2009-12-31 16:19:49 +00:00
Sarven Capadisli
5103cb670a length is faster than size() 2009-12-31 16:15:24 +00:00
Craig Andrews
98ce7daf56 Implement user interface for user to preview what location they are sharing with a notice 2009-12-29 16:18:52 -05:00
Sarven Capadisli
05c1ad8b32 Updated Repeat notice option submit button style 2009-12-23 15:59:31 -05:00
Sarven Capadisli
bc4f1824ea Init UI for Repeat notice option confirmation dialog. 2009-12-23 15:42:37 -05:00
Evan Prodromou
1204178660 rename forward form to repeat form in JS 2009-12-11 10:12:34 -05:00
Evan Prodromou
f5bfa11db2 Revert "remove NoticeForward from util.js"
This reverts commit 038fbddd02.
2009-12-11 10:10:53 -05:00
Evan Prodromou
038fbddd02 remove NoticeForward from util.js 2009-12-10 14:41:18 -05:00
Sarven Capadisli
c0aad854f7 If ElementData is set on the notice form, use the existing MaxLength 2009-12-10 14:52:05 +01:00
Sarven Capadisli
c855907f59 Calling NewDirectMessage 2009-12-10 14:29:27 +01:00
Sarven Capadisli
1e166e1bc4 Updated FormNoticeEnhancements and Counter to use the max text value
from HTML. It also allows each .form_notice to have its own counter.
2009-12-10 14:16:07 +01:00
Evan Prodromou
41cbb90fae add (ugly) form to forward notices 2009-12-08 17:31:23 -05:00
Sarven Capadisli
c4f329ed54 Added form_response class to XHR notice posts 2009-12-07 10:26:29 +00:00
Sarven Capadisli
5a55b5a3ce Fixed missing " for element attribute 2009-12-07 10:10:17 +00:00
Sarven Capadisli
c9b6a90c99 Use .resetForm() instead of manually setting notice form's control values to null 2009-12-07 10:08:07 +00:00
Sarven Capadisli
af0f905e24 If the XHR error suggests that the xhr.status is 0 (i.e., it didn't
receive an XHR object as expected), threat it as a success like HTTP
20x or 30x because the notice most likely went through. jquery.form.js
(for file uploads) and meteor.js both use an iframe and they (somehow)
appear to be in conflict. Notice always goes through, however,
xhr.status is 0. Further investigation is needed.
2009-12-07 09:55:12 +00:00
Sarven Capadisli
ad8d6c8fbf If an XHR notice is sent form a page that has no timeline, show a
message like 'Notice sent'
2009-12-02 23:41:58 +01:00
Sarven Capadisli
62d5f05669 Revert "If the page doesn't have .notices, silently skip the notice XHR response"
This reverts commit 7b550f386a.
2009-12-02 23:25:38 +01:00
Sarven Capadisli
5963c140d6 Revert "Clear/reset the XHR notice form on pages where there is no timeline"
This reverts commit d318976342.
2009-12-02 23:25:17 +01:00
Sarven Capadisli
d318976342 Clear/reset the XHR notice form on pages where there is no timeline 2009-12-02 23:16:27 +01:00
Sarven Capadisli
7b550f386a If the page doesn't have .notices, silently skip the notice XHR response 2009-12-02 23:13:15 +01:00
Sarven Capadisli
a2e4ac2fe8 Initial replacement for alert() messages coming from FormNoticeXHR().
Appends a success/error container to notice form.
2009-11-30 15:25:06 +00:00
Sarven Capadisli
97be6e9c3c Disabled call to NewDirectMessage() until IE issue is sorted out 2009-11-29 20:03:36 +00:00
Sarven Capadisli
c239ffb6e0 Call NoticeWithAttachment instead of NoticeAttachments after XHR
notice post
2009-11-29 19:22:54 +00:00
Sarven Capadisli
0d6a1b6c92 Last check to see if the notice item contains an attachment 2009-11-29 19:18:17 +00:00
Sarven Capadisli
aa1bb43588 Created NoticeWithAttachment to handle jOverlay for single notice
items as opposed to running NoticeAttachments for all notices
2009-11-29 19:05:39 +00:00
Sarven Capadisli
e20a54fb8c Ditched some whitespace 2009-11-28 15:57:32 +00:00
Sarven Capadisli
27265be245 Refactored NoticeReply() so that a notice item can use NoticeReplyTo
instead of rebinding all of the notice replies again.
2009-11-28 15:44:16 +00:00
Sarven Capadisli
bbeea08127 Call FormXHR (single) instead of NoticeForm (all) 2009-11-28 14:57:07 +00:00
Sarven Capadisli
d5a9276791 Bind submit to a form by SN.U.FormXHR() only once. 2009-11-28 14:27:04 +00:00
Sarven Capadisli
58a75b0968 Better UI for showing 'processing' for NewDirectMessage. Displays it
only while it GETs the form.
2009-11-27 20:52:35 +00:00
Sarven Capadisli
8f7c7b55ba A simpler way to focus and set the cursor position for NoticeReply().
Works in IE7+, Safari4, Firefox 3.
2009-11-27 17:35:58 +00:00
Sarven Capadisli
8df2985eee NoticeReply will now set the focus() position to textare for IE 2009-11-27 17:11:49 +00:00
Sarven Capadisli
35f2239ce4 Added processing icon for entity_actions anchors 2009-11-27 15:00:39 +01:00
Sarven Capadisli
e96bba0542 Changed to bind instead of click 2009-11-27 14:42:30 +01:00
Sarven Capadisli
fc2ce0991f Increased z-index for jOverlay 2009-11-26 16:02:19 +00:00
Craig Andrews
62b66d12d6 Use the browser's geolocation API to set the location on the notice form 2009-11-19 15:17:58 -05:00
Sarven Capadisli
dedacbe66b Separated NoticeFavor and calling it from FormNoticeXHR success 2009-11-13 20:56:55 +00:00
Sarven Capadisli
095cf8ebf1 Separated Init functions to NoticeForm, Notices, EvenActions. 2009-11-11 18:47:14 +00:00
Sarven Capadisli
b8b4d3d2f2 Separated actions that's particular to the notice stream pages into
its own function. It can be reused whenever the common behaviours
needs to be initialized.
2009-11-11 18:20:58 +00:00
Sarven Capadisli
1b00cdf124 Binding keyup/keydown only once for .form_notice 2009-11-02 17:56:55 +00:00
Sarven Capadisli
4aa6deb8ab Make sure to call FormNoticeEnhancements with a new copy of the form
object
2009-11-02 17:19:08 +00:00
Sarven Capadisli
b579a306c7 Ran through JSLint 2009-11-02 17:06:52 +00:00
Sarven Capadisli
c3cac436e2 Fixed object string name and order for submitonreturn actions 2009-11-02 16:55:47 +00:00
Sarven Capadisli
8d35831b54 Fixed object string name 2009-11-02 16:42:50 +00:00
Sarven Capadisli
ebd604cf6b Minor 2009-11-02 13:28:14 +00:00
Sarven Capadisli
b1367ae8da Updated button.close styles 2009-11-01 20:53:25 +01:00
Sarven Capadisli
cd4c1267ff Use FormNoticeEnhancements instead of Counter 2009-10-31 20:14:57 +01:00
Sarven Capadisli
8a333805df Updated counter, submitonreturn to be reused by any form. Created
FormNoticeEnhancements to call those at one go for any form.
2009-10-31 18:55:13 +01:00
Sarven Capadisli
dd50368cb2 Updated FormNoticeXHR to allow any form_notice as input (e.g., reused
in XHR direct message)
2009-10-31 18:01:19 +01:00
Sarven Capadisli
f9bb95174b Added XHR for direct messages. 2009-10-31 16:14:38 +01:00
Sarven Capadisli
900a0e2838 Running through importNode before checking for id 2009-10-30 21:11:56 +00:00
Sarven Capadisli
87781b85c4 Fixed Nudge XHR 2009-10-30 16:06:11 +00:00
Sarven Capadisli
93506faaa6 Minor 2009-10-30 16:02:22 +00:00
Sarven Capadisli
e134f7ceb1 Using document importNode otherwise IE pukes 2009-10-30 15:59:24 +00:00
Sarven Capadisli
73e8c44240 IE doesn't like last comma. I understand. 2009-10-30 15:47:32 +00:00
Sarven Capadisli
873ecb81e8 Remove attachment view after XHR notice submit 2009-10-30 15:41:52 +00:00
Sarven Capadisli
cb8160dd8c Added missing dataType line for ajaxForm 2009-10-30 16:21:03 +01:00
Sarven Capadisli
4c94eda3c8 Added Init comment 2009-10-30 15:59:17 +01:00
Sarven Capadisli
728ead7992 Resetting counter after a notice submit 2009-10-30 15:51:52 +01:00
Sarven Capadisli
d16a989f49 Updated author documentation 2009-10-30 15:49:47 +01:00
Sarven Capadisli
02240a890f Only run the scripts if the user is logged in 2009-10-30 15:48:35 +01:00
Sarven Capadisli
4024a5ee65 Updated notice form counter 2009-10-30 15:43:41 +01:00
Sarven Capadisli
1ddf69f30e Updated SubmitOnReturn 2009-10-30 14:31:57 +01:00
Sarven Capadisli
53e91f22d2 Updated NoticeDataAttach 2009-10-30 14:16:38 +01:00
Sarven Capadisli
b55b2fa7d0 Updated NoticeAttachments 2009-10-30 14:02:51 +01:00
Sarven Capadisli
0e5cf9b3b4 Missing : 2009-10-30 13:56:53 +01:00
Sarven Capadisli
ad759b2bc8 Updated NoticeReply and NoticeReplySet 2009-10-30 13:56:01 +01:00
Sarven Capadisli
5a48a387fc Updated form_notice 2009-10-30 13:15:11 +01:00
Sarven Capadisli
a12133258a Refactored XHR forms:
.form_user_subscribe
.form_user_unsubscribe
.form_favor
.form_disfavor
.form_group_join
.form_group_leave
.form_user_nudge

Using FormXHR()
2009-10-30 12:40:08 +01:00
Sarven Capadisli
f0abc0fe15 Updated bookmarklet. Created its own action 2009-10-29 13:18:51 +01:00
Evan Prodromou
5d09b6b3f0 Merge branch '0.8.x' into 0.9.x
Conflicts:
	EVENTS.txt
	actions/finishremotesubscribe.php
	actions/postnotice.php
	actions/public.php
	actions/remotesubscribe.php
	actions/showstream.php
	actions/updateprofile.php
	actions/userauthorization.php
	classes/laconica.ini
	lib/common.php
	lib/oauthstore.php
	lib/omb.php
2009-08-27 11:16:45 -07:00
Evan Prodromou
1ee7d0ab55 update Laconica to StatusNet in js code 2009-08-25 18:40:12 -04:00
Evan Prodromou
b2664e1ae2 Merge branch '0.8.x' into 0.9.x
Conflicts:
	actions/updateprofile.php
	actions/userauthorization.php
	classes/User_group.php
	index.php
	install.php
	lib/accountsettingsaction.php
	lib/logingroupnav.php
2009-08-21 15:42:11 -04:00
Evan Prodromou
6dcded4129 counter in notice/message form uses global variable for max length 2009-08-21 07:22:53 -04:00
brion
84227dd4e1 Use spinner icon while performing AJAX submissions of favorite/unfavorite button so there's some visual feedback that something's happening. 2009-08-16 20:01:56 -04:00
brion
a1a97930f3 Workaround for bug 1317 '"What's up" textarea on iPhone missing proper submit button'
http://laconi.ca/trac/ticket/1317

Mobile Safari shows a 'return' button for making newlines in a <textarea> where it would show a submit button for plain <input> text fields...
However there's a keydown event handler which is supposed to detect hitting enter and submit the form for us. This didn't work on Mobile Safari because it was checking of 13 ("\r") but the iPhone sends us char 10 ("\n") here. Changed to accept both, so we now submit on hitting 'return' on iPhone.

Note: I also added a blur() to move focus out of the textarea, which closes the on-screen keyboard. It will also take focus out of the textarea on other platforms, but this is probably the right thing -- the same thing happens when you push the "send" button after all.

Also note: unfortunately the layout right now looks pretty awful generally while editing on the iPhone; you can't see the send button or character counter while typing at the default zoom, and it doesn't zoom out after you submit so you can't really see where your message is going. This should be dealt with in general by fixing up the mobile skin variant...
2009-08-10 11:58:55 -04:00
brion
c6d2e54a71 Throttles updating of the character counter to reduce the performance impact on typing, especially on slower devices (mobiles, netbooks).
http://laconi.ca/trac/ticket/1462
2009-08-08 21:50:31 -04:00
Sarven Capadisli
534d0d804c Fix for removing the first occurance of the duplicate nickname in
textarea when NoticeReply() is used.
2009-08-08 10:44:28 +00:00
Tom Adams
b2e9d23b84 Set counter text only when it differs from the new remaining count.
This speeds up keyboard navigation around the textarea field.
2009-08-06 23:17:23 +01:00
Sarven Capadisli
3a6e7d68fc Ticket 1758 Multiple replies in web interface on "profile" page
appends own username
2009-08-04 15:54:02 +00:00
Tom Adams
ffa1d662a7 Didn't test that JS in IE. Revert a little. 2009-08-04 16:15:36 +01:00
Tom Adams
39c420b51f Set focus to end of field. 2009-08-04 09:22:37 +01:00
Tom Adams
2b00990d27 Prepend replyto string to message, don't destroy user input! 2009-08-04 01:58:45 +01:00
Tom Adams
20b2540779 Only warn when chars remaining < 0, not <= 0. 2009-08-04 01:24:50 +01:00
Sarven Capadisli
0b44b252a0 Updated attachment view position. It is now closer to top. 2009-07-15 19:53:24 +00:00
Sarven Capadisli
be0b149517 Updated max-width values for attachment view 2009-07-09 17:01:45 +00:00
Robin Millette
be8d77c923 Trac #1689: inreplyto hidden value doesn't get cleared after a successful submit (javascript fix) 2009-07-07 23:27:34 -04:00
Sarven Capadisli
bb404c9be2 Disabled textarea focus for conversation page since most entrances to
this page is with 'in context' link (which includes a fragment
identifier)
2009-07-02 21:29:03 +00:00
Sarven Capadisli
e39b2378be Removed extra slash 2009-07-01 23:18:35 +00:00
Sarven Capadisli
c832888234 Centres the overlay container as best as it can (given that we can't
calculate the height of the XHR response container without actually
loading it into the DOM).
2009-07-01 20:57:21 +00:00
Evan Prodromou
67e3bf0f05 remove extra / in attachment code 2009-07-01 13:43:36 -04:00
Sarven Capadisli
ccfe0e018d Updated jOverlay version and set max-width for images 2009-06-30 03:05:45 +00:00
Sarven Capadisli
6a0571d51b Added functionality to remove the notice data attachment 2009-06-25 21:01:07 +00:00
Sarven Capadisli
1e17f1256a Shows the selected file attachment under the form_notice textarea 2009-06-25 16:55:19 +00:00
Sarven Capadisli
0c5c834827 Slightly more specific selector. Looks only in the notices in the
content area
2009-06-25 03:46:52 +00:00
Sarven Capadisli
eb40fbc17a On XHR notice post, calls NoticeAttachment to trigger thumbnail and
attachment views
2009-06-23 17:05:55 +00:00
Sarven Capadisli
77185dd4c6 A little more specific selector for notice reply 2009-06-18 01:10:48 +00:00
Sarven Capadisli
5854fe194a Placed a check to make sure there is a reply button in a notice before
applying the dynamic action
2009-06-18 01:04:12 +00:00
Sarven Capadisli
0e4d8c416d Removed NoticeHover from JavaScript for speed gain. Using CSS instead
to handle the notice hover state. The difference is only seen in the
conversation page.
2009-06-17 07:49:41 +00:00
Sarven Capadisli
dbbb3a4fb5 Dynamic notice item insertion for conversation page. 2009-06-13 00:53:23 -04:00
Evan Prodromou
c0853e3040 Merge branch '0.7.x' into 0.8.x 2009-06-10 09:09:57 -07:00
Sarven Capadisli
d9e5cda35d Removed 404 test 2009-06-09 00:09:44 +00:00
Sarven Capadisli
67cb99c442 Clearing notice_data-test and resetting notice_text-count if the
notice XHR. Removed hanging text URL from previous commit.
2009-06-08 20:52:27 +00:00
Sarven Capadisli
c5378beb83 Revert "Clearing notice_data-test and resetting notice_text-count if the notice XHR"
This reverts commit b20ac7a1fe.
2009-06-08 20:50:13 +00:00
Sarven Capadisli
b20ac7a1fe Clearing notice_data-test and resetting notice_text-count if the notice XHR
response is empty and have a 20x,30x HTTP status
2009-06-08 20:45:44 +00:00
Sarven Capadisli
a2ca9d96d2 Temporary workaround for silenting mysterious 200 OK error for XHR
notice posts.

The bug is sometimes reproduceable by sending a notice that includes
"@someusernamethatdoesntexist".

This patch doesn't throw alerts to user if server doesn't return with
an XHR response but HTTP is one of 20x, 30x.
2009-06-08 18:55:23 +00:00
Sarven Capadisli
b708b81065 Init notice_data-attach UI for form_notice 2009-06-05 00:00:04 -04:00
Robin Millette
fe38827a76 Remove js that crept back in, added another error string. 2009-06-01 17:40:53 -04:00
Robin Millette
0cbd72e092 Re-added some javascript to toggle upload field. 2009-06-01 15:52:52 -04:00
Sarven Capadisli
a39fa0ce2b Unnecessary JavaScript for notice form attachment 2009-06-01 15:20:12 -04:00
Robin Millette
ebeb5f744c Merge branch '0.8.x' of git@gitorious.org:+laconica-developers/laconica/dev into upload
Conflicts:

	js/util.js
	lib/attachmentlist.php
2009-05-31 17:12:04 -04:00
Sarven Capadisli
f56f2f52e7 Some cross-browser updates for conversation UI 2009-05-30 19:42:15 +00:00
Sarven Capadisli
6612993c1d Prevents regular hovers over attachment anchors from making a GET
request for the thumbnail. There is 500 ms delay while on mouseover
state before going ahead with the request. Fun.
2009-05-28 23:16:25 +00:00
Sarven Capadisli
f0dc97e4da Smarter call for hover events. It now makes a new GET for attachment
thumbnails on mouseover only if it hasn't been requested before on
that notice attachment.
2009-05-28 22:59:22 +00:00
Sarven Capadisli
60ac9bc6fd Bunch of UI fixes/improvements for attachments (hover, overlay, notice view,
clip)
2009-05-27 19:43:43 +00:00
Robin Millette
af700ea277 Let's you upload a file with a notice and have it shown with other attachments. 2009-05-26 21:20:04 -04:00
Sarven Capadisli
3877324fd8 Updated JS to show/hide attachment thumbnails with timers. Minor
markup changes.
2009-05-25 17:30:57 -04:00
Sarven Capadisli
01dad57298 Markup cleanup for attachments 2009-05-25 15:53:19 -04:00
Sarven Capadisli
7923e84fba Fixed URL for attachment thumbnail and XHR 2009-05-25 18:54:45 +00:00
Robin Millette
84edf12791 Display thumbnail on hover over links in notices when appropriate. 2009-05-25 11:13:13 -04:00
Robin Millette
5f3acc2527 Removed big clip and replaced with smaller inline one next to each URL (in a notice) that's actually an attachment. Overlay (popup) on click. 2009-05-24 21:13:42 -04:00
Robin Millette
b0a891e92b Made ajax link to show attachment popups relative in util.js 2009-05-24 18:40:11 -04:00
Robin Millette
8c2473a227 Merge branch '0.8.x' of git@gitorious.org:+laconica-developers/laconica/dev into 0.8.x 2009-05-24 04:44:52 -04:00
Robin Millette
b5ac6e31f2 Rearranged attachment info to only appear on each applicable notice page and thru an ajax popup. 2009-05-24 04:43:34 -04:00
Sarven Capadisli
7e0a314768 Using event bubbling instead of event handling thanks to Ara
Pehlivanian http://arapehlivanian.com
2009-05-24 01:38:11 +00:00
Sarven Capadisli
ef2a5c794e Fixed in reply to JS link for Conversation page. Handles nested
notices better.
2009-05-22 16:19:14 +00:00
Robin Millette
fecb8c706d Attachments and their list now provide "ajax" view. Also added a few sidebars relating tags and attachments. 2009-05-15 15:04:58 -04:00
Sarven Capadisli
deb07487bd 60 seconds hard timeout for XHR notice posting. JavaScript throws an
alert message to the client if the server doesn't respond back in any
way.
2009-05-01 17:00:36 +00:00
Evan Prodromou
7405d9dfa6 Don't add a node if it's already there
Try not to double-add a node on Ajax submit. Normally not a big deal,
but may happen if the CometPlugin (or in the future Strophe or other
auto-update plugins) is enabled.
2009-04-26 21:16:09 -04:00
Sarven Capadisli
12867d114d UI for server errors. 2009-04-24 17:22:43 +00:00
Sarven Capadisli
83ba1b0b5e The real 7 seconds (7000) timeout for XHR posting. 2009-04-23 21:51:49 +00:00
Sarven Capadisli
2bdf192dab XHR alerts for server-side errors: 404, 502, 503, 504. There is also a
7 second timeout if the server doesn't get back with a response.
2009-04-23 21:35:21 +00:00
Sarven Capadisli
63c52784c7 Allowing XHR for Inbox/Outbox pages. 2009-04-23 02:22:00 +00:00
Sarven Capadisli
81714c6c31 counter() after val() reset to avoid (weird) bug. 2009-04-17 20:14:06 +00:00
Sarven Capadisli
b22f446df2 Clear notice char counter for direct messages as well. 2009-04-17 19:51:20 +00:00
Sarven Capadisli
c3a44d2ab9 form_notice textarea is cleared on successful direct message post.
Disabled notice posting with XHR on Inbox and Outbox pages. This will
be revisited in 0.8.x.
2009-04-16 21:57:42 +00:00
Sarven Capadisli
90e5f01f8a Processing indicator (aka spinner thingy) for form_notice submits 2009-03-25 22:53:21 +00:00
Sarven Capadisli
e2d445abbb Uses regular HTTP GET to new notice replyto page instead of JS when
notice_data-text is available.
2009-01-28 15:25:50 +00:00
sarven
658eebd977 Calling NoticeReply() after a new notice is posted. 2009-01-23 02:49:48 +00:00
sarven
0daf242100 Using util.js to set onclick reply anchor 2009-01-23 02:43:18 +00:00
sarven
785ffd5b9b Populat notices and some css cleanup 2009-01-22 21:03:59 +00:00
sarven
a330bdac62 Moved nudge response from util.php to nudge.php
Adjusted some CSS
2009-01-22 06:33:38 +00:00
Evan Prodromou
0824bb2e1d Merge branch 'master' into groups 2009-01-21 11:52:06 -05:00
Evan Prodromou
4491e82762 Add actions for joining or leaving a group, and fixup JS to match 2009-01-21 11:47:23 -05:00
sarven
db4993970e (Un)subscribe AJAX forms 2009-01-21 04:08:05 +00:00
sarven
4b1cc73a58 Favor/Disfavor form @class
Created icon, and add style
JS selector change
Fixed return actions
2009-01-18 03:12:39 +00:00
sarven
102028fb48 In reply to @id 2009-01-17 03:03:53 +00:00
sarven
e34efca7f3 Update to notice form character count warning 2009-01-16 18:14:20 +00:00
sarven
877327a18e Update to XHR post notice 2009-01-16 17:02:46 +00:00
Sarven Capadisli
946eee4256 Direct message XHR response fix for IE and minor tweaks
darcs-hash:20081216071818-efd22-d2e59bb60a236538452be356f38d0974f35f0107.gz
2008-12-16 02:18:18 -05:00