Hey guys,
First off, great theme!
I have run into an issue with posting an ad, if a category does not have a subcategory it errors in Safari (works in Chrome).
http://class.mobiletrader.ca/item/newI'm assuming it's because the PHP renders the following Javascript:
twitter_theme.categories = {} ;
twitter_theme.categories.id_96 = {
0: { id: 105, slug: "audiovox", name: "Audiovox"} ,
1: { id: 104, slug: "alcatel", name: "ALCATEL"} ,
2: { id: 103, slug: "acer", name: "Acer"} ,
3: { id: 101, slug: "apple", name: "Apple "} ,
4: { id: 102, slug: "blackberry", name: "BlackBerry"} ,
5: { id: 107, slug: "casio", name: "Casio"} ,
6: { id: 106, slug: "benq", name: "BenQ"} ,
7: { id: 108, slug: "dell", name: "Dell"} ,
8: { id: 109, slug: "htc", name: "HTC"} ,
9: { id: 110, slug: "i-mate", name: "i-mate"} ,
10: { id: 111, slug: "lg", name: "LG"} ,
11: { id: 112, slug: "mitsubishi", name: "Mitsubishi"} ,
12: { id: 113, slug: "motorola", name: "Motorola"} ,
13: { id: 114, slug: "nec", name: "NEC"} ,
14: { id: 115, slug: "nokia", name: "Nokia"} ,
15: { id: 116, slug: "palm", name: "Palm"} ,
16: { id: 117, slug: "panasonic", name: "Panasonic"} ,
17: { id: 120, slug: "philips", name: "Philips"} ,
18: { id: 119, slug: "pantech", name: "Pantech"} ,
19: { id: 118, slug: "samsung", name: "Samsung"} ,
20: { id: 121, slug: "sanyo", name: "SANYO"} ,
21: { id: 122, slug: "sharp", name: "Sharp"} ,
22: { id: 123, slug: "siemens", name: "Siemens"} ,
23: { id: 124, slug: "sierra-wireless", name: "Sierra Wireless "} ,
24: { id: 125, slug: "sonim", name: "Sonim"} ,
25: { id: 126, slug: "sony-ericsson", name: "Sony Ericsson "} ,
26: { id: 127, slug: "toshiba", name: "Toshiba"} ,
27: { id: 128, slug: "utstarcom", name: "UTStarcom"} ,
28: { id: 129, slug: "zte", name: "ZTE"} ,
29: { id: 130, slug: "not-specified", name: "Not Specified "}
} ;twitter_theme.categories.phone-accessories = { } ;
twitter_theme.categories.wholesale-lots = { } ;
twitter_theme.categories.replace-parts-tools = { } ;
Notice the last three parent categories are being set to "{ }" so Safari is throwing an error.
Also, it's only going down one subcategory, if anyone can help out with extending this to 3 I would REALLY appreciate it
Also Safari is throwing an "undefined" error.
I see that in the check for subcategories the twitter_theme.categories function it is checking if that is returning "undefined", Safari is throwing the following error:
[Error] TypeError: 'undefined' is not an object (evaluating 'twitter_theme.categories["id_" + id]')