Commit Graph

255 Commits

Author SHA1 Message Date
Sarven Capadisli
d73746641b Reusing fixed selector name for 'processing' in util.js 2010-02-01 15:13:54 +01:00
Sarven Capadisli
91b99863fa Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing 2010-01-31 22:42:50 +00: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
4d0ee6a41f Globalized form notice data geo values 2010-01-30 15:28:31 +01:00
Sarven Capadisli
aa3170cf34 Using jQuery chaining in FormNoticeXHR 2010-01-30 15:19:13 +01:00
Sarven Capadisli
bb0bf635d8 Using form object instead of form_id and find(). Slightly faster and
easier to read.
2010-01-30 15:03:01 +01:00
Sarven Capadisli
817f01c3b1 Setting the geo location cookie expire date far into the future: 2029 ;) 2010-01-26 01:59:47 +01:00
Sarven Capadisli
d17b7fa19b Setting the geo location cookie expire date far into the future: 2029 ;) 2010-01-26 01:58:10 +01:00
Sarven Capadisli
591c5037a7 An update to geolocation cookie to use a single file and set the
expiry date to 30 days from now.
2010-01-26 01:12:06 +01:00
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