minor updates for ie6 testing

This commit is contained in:
spez
2008-10-13 10:20:21 -07:00
parent 2a39057a18
commit 02f6f8e3a0
4 changed files with 14 additions and 5 deletions

View File

@@ -367,7 +367,7 @@ class FrontController(RedditController):
num, t, spane = self._search(q, num = num, after = after, reverse = reverse,
count = count)
if not isinstance(c.site,FakeSubreddit):
if not isinstance(c.site,FakeSubreddit) and not c.cname:
all_reddits_link = "%s/search%s" % (subreddit.All.path,
query_string({'q': query}))
d = {'reddit_name': c.site.name,

View File

@@ -53,7 +53,15 @@ function hover_open_menu(menu) {
var global_cookies_allowed = true;
function init() {
if(cur_domain != ajax_domain) {
/* temp strip off port for the ajax domain (which will need it to
* make a request) */
var i = ajax_domain.indexOf(':');
var a = (i < 0) ? ajax_domain : ajax_domain.slice(0, i);
/* permanently strip it off for the cur_domain which only sets cookies */
i = cur_domain.indexOf(':');
cur_domain = (i < 0) ? cur_domain : cur_domain.slice(0, i);
if(cur_domain != a) {
global_cookies_allowed = false;
}
else if(cnameframe && !logged) {

View File

@@ -46,10 +46,11 @@
var logged = ${c.user_is_loggedin and ("'%s'" % c.user.name) or "false"};
var post_site = "${c.site.name if not c.default_sr else ''}";
var cnameframe = ${'true' if c.cname else 'false'};
var cnameframe = ${"true" if (c.cname and not c.authorized_cname) else "false"};
var modhash = ${"'%s'" % c.modhash or "false"};
var cur_domain = "${get_domain(cname = True, subreddit = False) if c.frameless_cname else g.domain}";
var ajax_domain = "${get_domain(cname = True, subreddit = False) if c.authorized_cname else g.domain}";
</script>

View File

@@ -116,8 +116,8 @@
%endif
%if thing.content:
<div class="fixedwidth"><!--IE6sux--></div>
<div class="clearleft"><!--IE6sux--></div>
##<div class="fixedwidth"><!--IE6sux--></div>
##<div class="clearleft"><!--IE6sux--></div>
<div class="content">
${thing.content().render()}
</div>