Cleainging up, bug hunting and optimizing
This commit is contained in:
+1
-4
@@ -24,7 +24,7 @@ function checkforold() {
|
||||
|
||||
function init() {
|
||||
db = settings_db_open();
|
||||
checkforold()
|
||||
//checkforold()
|
||||
try {
|
||||
db.transaction(
|
||||
function(tx) {
|
||||
@@ -227,10 +227,7 @@ function getStationFavorite(id) { // Get info about number of clicks and if stat
|
||||
db.transaction(function(tx) {
|
||||
var rs = tx.executeSql('SELECT * FROM stations WHERE id = "'+id+'" AND favorite = 1');
|
||||
res = rs.rows.length
|
||||
// console.log("FAVO RESULT: "+res+" ID: "+id )
|
||||
if (res>0) return true; else return false;
|
||||
|
||||
|
||||
})
|
||||
} catch (err) {
|
||||
res = 0
|
||||
|
||||
Reference in New Issue
Block a user