Skip to content

Commit

Permalink
Some minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Dec 11, 2009
1 parent efe122c commit 37c119f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 37 deletions.
6 changes: 0 additions & 6 deletions Resources/css/twitter.css
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,6 @@ html, body {
-webkit-border-bottom-right-radius: 4px;
}

#timeline ul li.favorite {
background-image: url(fav.png);
background-repeat: no-repeat;
background-position: 5px 5px;
}

.hide-proimage #timeline ul li img,
.hide-proimage #timeline ul li.mine img {
display: none;
Expand Down
2 changes: 1 addition & 1 deletion Resources/js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ checkCreds = function() {

if (creds.login == login && creds.passwd == passwd) {
} else {
TT.showLoading('Verifing Credentials', true);
TT.showLoading('Verifing Credentials');
TT.log('Fetching URL: ' + url);
xhr.onload = function() {
TT.log('Verify Creds');
Expand Down
18 changes: 6 additions & 12 deletions Resources/js/titweeter.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var TT = {
db = Titanium.Database.open('titweeter');

//db.execute('drop table tweets');
db.execute('create table if not exists tweets (id integer, screen_name text, type text, json text)');
db.execute('create table if not exists tweets (id integer primary key, screen_name text, type text, json text)');

//db.execute('delete from tweets');
},
Expand Down Expand Up @@ -237,7 +237,7 @@ var TT = {
while (rows.isValidRow()) {
//TT.log('Loading Cache: ' + rows.fieldByName('id') + ' :: ' + rows.fieldByName('screen_name'));
v = TT.formatTimelineRow(Y.JSON.parse(rows.fieldByName('json')));
var li = this.formatLI(v);
var li = TT.formatLI(v);
ul.append(li);

if (!TT.lastID) {
Expand Down Expand Up @@ -633,14 +633,8 @@ var TT = {
cache = 'status';
}
TT.openDB();
var rows = db.execute('select * from tweets where (id = ' + info.id + ')');
if (rows.isValidRow()) {
rows.next();
} else {
var sql = 'insert into tweets (id, screen_name, type, json) values (?, ?, ?, ?)';
db.execute(sql, info.id, info.user.screen_name, cache, Y.JSON.stringify(row));
}
rows.close();
var sql = 'insert or replace into tweets (id, screen_name, type, json) values (?, ?, ?, ?)';
db.execute(sql, info.id, info.user.screen_name, cache, Y.JSON.stringify(row));
TT.closeDB();

return info;
Expand Down Expand Up @@ -674,7 +668,7 @@ var TT = {
}
TT.firstID = row.id;
info = TT.formatTimelineRow(row, 'home_timeline');
var li = this.formatLI(info);
var li = TT.formatLI(info);
ul.insertBefore(li, f);
}

Expand Down Expand Up @@ -709,7 +703,7 @@ var TT = {
},
showSettings: function() {
TT.log('TT.showSettings');
var win = Titanium.UI.createWindow({ url: 'settings.html', fullscreen: true });
var win = Titanium.UI.createWindow({ url: 'settings.html' });
win.open();
},
formatProfileHeader: function(user) {
Expand Down
35 changes: 17 additions & 18 deletions tiapp.xml
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?><ti:app xmlns:ti="http://ti.appcelerator.org">
<id>com.titweeter</id>
<name>titweeter</name>
<id>com.davglass.titweeter</id>
<name>Titweeter</name>
<version>1.0.0a</version>
<icon>default_app_logo.png</icon>
<persistent-wifi>false</persistent-wifi>
<prerendered-icon>false</prerendered-icon>
<statusbar-style>opaque</statusbar-style>
<hideTabBar>true</hideTabBar>
<windows>
<window>
<id>initial</id>
<title>Titweeter: Timeline</title>
<url>index.html</url>
<backgroundColor>#000</backgroundColor>
<icon>ti://featured</icon>
<barColor>#000</barColor>
<fullscreen>false</fullscreen>
</window>
</windows>
<persistent-wifi>false</persistent-wifi>
<prerendered-icon>false</prerendered-icon>
<statusbar-style>opaque</statusbar-style>
<hideTabBar>true</hideTabBar>
<windows>
<window>
<id>initial</id>
<title>Titweeter: Timeline</title>
<url>index.html</url>
<backgroundColor>#000</backgroundColor>
<icon>ti://featured</icon>
<barColor>#000</barColor>
<fullscreen>false</fullscreen>
</window>
</windows>
<guid>3dc10d911135405aabc394e00325f5d9</guid>
<name>titweeter</name>
</ti:app>

0 comments on commit 37c119f

Please sign in to comment.