use browser geolocation when desired

This commit is contained in:
Mike Macgirvin 2010-10-19 20:52:05 -07:00
commit a8e4ec7801
14 changed files with 89 additions and 21 deletions

View file

@ -4,7 +4,8 @@
xmlns:at="http://purl.org/atompub/tombstones/1.0"
xmlns:media="http://purl.org/syndication/atommedia"
xmlns:dfrn="http://purl.org/macgirvin/dfrn/1.0"
xmlns:as="http://activitystrea.ms/spec/1.0/" >
xmlns:as="http://activitystrea.ms/spec/1.0/"
xmlns:georss="http://www.georss.org/georss" >
<id>$feed_id</id>
<title>$feed_title</title>

View file

@ -19,6 +19,7 @@
<content type="$type" >$content</content>
<link rel="alternate" href="$alt" />
<dfrn:location>$location</dfrn:location>
<georss:point>$coord</georss:point>
<dfrn:comment-allow>$comment_allow</dfrn:comment-allow>
<as:verb>$verb</as:verb>
$actobj

View file

@ -118,6 +118,7 @@ tinyMCE.init({
}
}
$geotag
</script>

View file

@ -11,6 +11,7 @@
<input type="hidden" name="profile_uid" value="$profile_uid" />
<input type="hidden" name="return" value="$return_path" />
<input type="hidden" name="location" id="jot-location" value="$defloc" />
<input type="hidden" name="coord" id="jot-coord" value="" />
<textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" ></textarea>

View file

@ -34,6 +34,14 @@ $zoneselect
</div>
<div id="settings-defloc-end" ></div>
<div id="settings-allowloc-wrapper" >
<label id="settings-allowloc-label" for="settings-allowloc" >Use Browser Location: </label>
<input type="checkbox" name="allow_location" id="settings-allowloc" value="1" $loc_checked />
</div>
<div id="settings-allowloc-end" ></div>
<div id="settings-theme-select">
<label id="settings-theme-label" for="theme-select" >Display Theme: </label>

View file

@ -105,7 +105,9 @@ blockquote:before {
text-decoration: none;
cursor: pointer;
}
.smalltext {
font-size: 0.7em;
}
#sysmsg {
width: 600px;
margin-bottom: 10px;
@ -439,6 +441,7 @@ input#dfrn-url {
#settings-email-end,
#settings-nick-end,
#settings-defloc-end,
#settings-allowloc-end,
#settings-timezone-end,
#settings-theme-end,
#settings-password-end,
@ -456,6 +459,7 @@ input#dfrn-url {
#settings-email-label,
#settings-nick-label,
#settings-defloc-label,
#settings-allowloc-label,
#settings-timezone-label,
#settings-theme-label,
#settings-password-label,
@ -473,6 +477,7 @@ input#dfrn-url {
#settings-email,
#settings-nick,
#settings-defloc,
#settings-allowloc,
#timezone-select,
#theme-select,
#settings-password,