Open GoogleCodeExporter opened 9 years ago
According to
https://developer.mozilla.org/en-US/docs/XUL/Tutorial/Styling_a_Tree, this is
because the "properties" argument of getCellProperties is obsolete as of Gecko
22. getCellProperties should now return a space separated string of property
names. There link has suggestions for handling old and new versions of Gecko.
The quick and dirty hack I did to get this working with Firefox 22 is:
getCellProperties: function(row, col) {
var properties = "";
switch(this.aTypes[row][col.id]) {
case SQLiteTypes.INTEGER:
properties = "integervalue";
break;
case SQLiteTypes.REAL:
properties= "floatvalue";
break;
case SQLiteTypes.BLOB:
properties = "blobvalue";
break;
case SQLiteTypes.NULL:
properties = "nullvalue";
break;
case SQLiteTypes.TEXT:
default:
properties = "textvalue";
break;
}
if (typeof this.getCellText(row,col) == "number") {
properties += " numbervalue";
}
properties += " tabledata";
return properties;
},
Making that change to treeDataTable.js and repacking the XPI works for me.
Original comment by thisis...@gmail.com
on 18 Jul 2013 at 6:47
There is also a getCellProperties in treeDbStructure.js. The change I have for
this is:
getCellProperties: function(row, col) {
var properties = "";
if (this.getSmType(row) == "table") {
properties = "dbObjTable";
}
if (this.getSmType(row) == "index") {
properties += " dbObjIndex";
}
if (this.getSmType(row) == "view") {
properties += " dbObjView";
}
if (this.getSmType(row) == "trigger") {
properties += " dbObjTrigger";
}
return properties;
},
Original comment by thisis...@gmail.com
on 18 Jul 2013 at 6:58
Thanks a lot for posting this fix! I hadn't modified an FF extension before,
but eventually figured it out. It's great to have color back! So, what does
it take to get this fix incorporated into the official extension? Seems like
people newly-installing this extension will not be that into it without color,
which really adds a lot.
Original comment by jdqui...@gmail.com
on 19 Jul 2013 at 2:00
Perfect! Works like a charm! I hope the official release of SQLite Manager gets
updated as well.
Thanks
Original comment by danie...@gmail.com
on 19 Jul 2013 at 3:13
Original issue reported on code.google.com by
danie...@gmail.com
on 15 Jul 2013 at 9:21Attachments: