added location tagging

This commit is contained in:
Mike Macgirvin
2010-08-20 14:33:15 -07:00
parent 82174bbfa8
commit 709c86b2da
10 changed files with 36 additions and 7 deletions

View File

@@ -2,7 +2,8 @@
<feed xmlns="http://www.w3.org/2005/Atom"
xmlns:thr="http://purl.org/syndication/thread/1.0"
xmlns:at="http://purl.org/atompub/tombstones/1.0"
xmlns:dfrn="http://purl.org/macgirvin/dfrn/1.0" >
xmlns:dfrn="http://purl.org/macgirvin/dfrn/1.0"
xmlns:as="http://activitystrea.ms/spec/1.0/" >
<id>$feed_id</id>
<title>$feed_title</title>

View File

@@ -15,5 +15,6 @@
<published>$published</published>
<updated>$updated</updated>
<content>$content</content>
<as:place>$location</as:place>
<dfrn:comment-allow>$comment_allow</dfrn:comment-allow>
</entry>

View File

@@ -80,6 +80,14 @@ tinyMCE.init({
}
}
function jotGetLocation() {
reply = prompt("Where are you right now?");
if(reply && reply.length) {
$('#jot-location').val(reply);
}
}
function linkdropper(event) {
var linkFound = event.dataTransfer.types.contains("text/uri-list");
if(linkFound)

View File

@@ -9,6 +9,7 @@
<input type="hidden" name="type" value="wall" />
<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="" />
<textarea rows="5" cols="64" class="profile-jot-text" id="profile-jot-text" name="body" ></textarea>
@@ -24,6 +25,9 @@
<div id="profile-youtube-wrapper" style="display: $visitor;" >
<img id="profile-video" src="images/youtube_icon.gif" alt="Insert YouTube video" title="Insert YouTube video" onclick="jotGetVideo();" />
</div>
<div id="profile-location-wrapper" style="display: $visitor;" >
<img id="profile-location" src="images/globe.gif" alt="Set your location" title="Set your lcoation" onclick="jotGetLocation();" />
</div>
<div id="profile-rotator-wrapper" style="display: $visitor;" >
<img id="profile-rotator" src="images/rotator.gif" alt="Please wait" title="Please wait" style="display: none;" />
</div>

View File

@@ -720,10 +720,14 @@ input#dfrn-url {
float: left;
margin-left: 20px;
}
#profile-location-wrapper {
float: left;
margin-left: 20px;
}
#profile-jot-perms {
float: left;
margin-left: 250px;
margin-left: 200px;
}
#profile-jot-perms-end {