Sarven Capadisli
f92a9dad8c
Moved farbtastic's stylesheet to use relative paths for its own images
2010-01-24 00:21:01 +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
Sarven Capadisli
ab53a8704b
Some JSlint-ing
2010-01-24 00:18:05 +01:00
Sarven Capadisli
414c80a18d
Removed extra comma in object
2010-01-24 00:17:37 +01:00
Craig Andrews
fa218ec65d
Revert "Drop the Google Client API-based AJAX geolocation lookup shim -- it fails to ask for user permission, causing us quite a bit of difficulty."
...
This reverts commit 749b8b5b8c
.
2010-01-24 00:17:19 +01:00
Sarven Capadisli
8bf2a9046b
Fixed innerHTML problem in IE7 and 8 for badge script
2010-01-22 21:08:51 +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
835a3f1e53
Added minified version of json2.js to parse and stringify JSON objects
2010-01-08 13:21:55 +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
2cfa90c752
Revert "Revert "Drop the Google Client API-based AJAX geolocation lookup shim -- it fails to ask for user permission, causing us quite a bit of difficulty.""
...
This reverts commit 552de999bf
.
Playing a bit of back-and-forth with this one :-)
2009-12-29 17:12:52 -05:00
Craig Andrews
552de999bf
Revert "Drop the Google Client API-based AJAX geolocation lookup shim -- it fails to ask for user permission, causing us quite a bit of difficulty."
...
This reverts commit 749b8b5b8c
.
2009-12-29 16:19:33 -05: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
Evan Prodromou
98a579fedf
Merge branch 'master' into 0.9.x
2009-12-28 15:49:14 -08:00
Brion Vibber
749b8b5b8c
Drop the Google Client API-based AJAX geolocation lookup shim -- it fails to ask for user permission, causing us quite a bit of difficulty.
2009-12-28 12:29:01 -08: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
45919a356f
Support SSL for the Google Client Location API
2009-11-20 15:18:39 -05:00
Craig Andrews
a3285faac1
Make the Google Client Location API's output compliant with the w3c geolocation specification
2009-11-20 15:18:39 -05:00
Craig Andrews
b688c572c9
Fix javascript errors emitted in browsers that do not support w3c geolocation
2009-11-20 15:18:39 -05:00
Craig Andrews
aadb4f2093
Upgrade to joverlay 0.8 (needed the html option)
2009-11-19 19:13:55 -05: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
Craig Andrews
8628db5208
Add geometa library, and include it.
...
Geometa provides a fallback for W3C geolocation so that Google Gears or Google's Client Location service can also be used
2009-11-19 15:17:57 -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
4f461bc5c3
Updated identica badge - contributed by Will Daniels
...
http://identi.ca/wdaniels
2009-11-04 19:03:05 +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