Skip to content

Commit

Permalink
0.4.4
Browse files Browse the repository at this point in the history
-modified my_timeline renderer to look for existing elements both in the existing timeline and in the new html we're building
  • Loading branch information
funkatron committed Jun 13, 2009
1 parent 9994cab commit 182bdce
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 11 deletions.
22 changes: 21 additions & 1 deletion app/assistants/my-timeline-assistant.js
Expand Up @@ -422,15 +422,35 @@ MyTimelineAssistant.prototype.renderTweets = function(tweets, render_callback, f

var timeline_html = [];

var added_ids = [];


function already_exists(id) {

if (thisA.getEntryElementByStatusId(rendertweets[i].id)) {
return true;
}
if ( added_ids.indexOf(id) > -1 ) {
return true;
}
return false;

}


for (var i=0; i < rendertweets.length; i++) {

/*
check to see if this item exists
*/
if (this == false) {

dump("Tweet object was FALSE; skipping");
} else if (!thisA.getEntryElementByStatusId(rendertweets[i].id)) {

} else if (!already_exists(rendertweets[i].id)) {

added_ids.push(rendertweets[i].id);

dump('adding '+rendertweets[i].id);

/*
Expand Down
2 changes: 1 addition & 1 deletion appinfo.json
@@ -1,6 +1,6 @@
{
"title": "Spaz",
"version": "0.4.3",
"version": "0.4.4",
"type": "web",
"main": "index.html",
"id": "com.funkatron.app.spaz",
Expand Down
16 changes: 8 additions & 8 deletions stylesheets/Dreadnaught.css
Expand Up @@ -946,21 +946,21 @@ div.error_info {
Filtering for timelines
*/
.filter-timeline-all {}
.filter-timeline-all div.timeline-entry { display:block; }
.filter-timeline-all div.timeline-entry { display:block; }
.filter-timeline-all div.timeline-entry.reply { display:block; }
.filter-timeline-all div.timeline-entry.dm { display:block; }
.filter-timeline-all div.timeline-entry.dm { display:block; }

.filter-timeline-replies-dm {}
.filter-timeline-replies-dm div.timeline-entry { display:none; }
.filter-timeline-replies-dm div.timeline-entry { display:none; }
.filter-timeline-replies-dm div.timeline-entry.reply { display:block; }
.filter-timeline-replies-dm div.timeline-entry.dm { display:block; }
.filter-timeline-replies-dm div.timeline-entry.dm { display:block; }

.filter-timeline-replies {}
.filter-timeline-replies div.timeline-entry { display:none; }
.filter-timeline-replies div.timeline-entry { display:none; }
.filter-timeline-replies div.timeline-entry.reply { display:block; }
.filter-timeline-replies div.timeline-entry.dm { display:none; }
.filter-timeline-replies div.timeline-entry.dm { display:none; }

.filter-timeline-dms {}
.filter-timeline-replies div.timeline-entry { display:none; }
.filter-timeline-replies div.timeline-entry { display:none; }
.filter-timeline-replies div.timeline-entry.reply { display:none; }
.filter-timeline-replies div.timeline-entry.dm { display:block; }
.filter-timeline-replies div.timeline-entry.dm { display:block; }
2 changes: 1 addition & 1 deletion support_info.js
@@ -1,6 +1,6 @@
// Required
_APP_Name = 'Spaz';
_APP_VersionNumber = '0.4.3';
_APP_VersionNumber = '0.4.4';
_APP_PublisherName = 'Funkatron Productions';
_APP_Copyright = '&copy; Copyright 2009 Funkatron Productions.';

Expand Down

0 comments on commit 182bdce

Please sign in to comment.