diff options
author | Chris Porter <slug@qwebirc.org> | 2011-04-03 22:58:29 (GMT) |
---|---|---|
committer | Chris Porter <slug@qwebirc.org> | 2011-04-03 22:58:29 (GMT) |
commit | 5c420a8146e1f9f3149cc5eb17c8b04ac232e795 (patch) | |
tree | 0c302cd870481c7f5b487f36655479f5e9e1dbe0 | |
parent | 631bc06f38c779d46dcb8fd64c698c147e125055 (diff) |
Attempt to get working in IE9.
-rwxr-xr-x | bin/pagegen.py | 1 | ||||
-rw-r--r-- | css/qui.mcss | 4 | ||||
-rw-r--r-- | js/jslib.js | 26 |
3 files changed, 19 insertions, 12 deletions
diff --git a/bin/pagegen.py b/bin/pagegen.py index ae156e7..c89102c 100755 --- a/bin/pagegen.py +++ b/bin/pagegen.py @@ -65,7 +65,6 @@ def producehtml(name, debug): <base /> <title>%s (qwebirc)</title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> - <meta http-equiv="X-UA-Compatible" content="IE=8" /> <link rel="shortcut icon" type="image/png" href="%simages/favicon.png"/> %s%s %s diff --git a/css/qui.mcss b/css/qui.mcss index a0eabc4..1aafc41 100644 --- a/css/qui.mcss +++ b/css/qui.mcss @@ -144,6 +144,7 @@ html { cursor: default; -moz-border-radius: 4px; -webkit-border-radius: 4px; + border-radius: 4px; margin-right: -2px; white-space: nowrap; text-decoration: none; @@ -155,6 +156,7 @@ html { border: 1px solid #c8d2dc; -moz-border-radius: 4px; -webkit-border-radius: 4px; + border-radius: 4px; } .qwebirc-qui .tab-selected { @@ -162,6 +164,7 @@ html { border: 1px solid $(tab_selected_border); -moz-border-radius: 4px; -webkit-border-radius: 4px; + border-radius: 4px; color: $(tab_selected_text); } @@ -179,6 +182,7 @@ html { padding-left: 3px; -moz-border-radius: 2px; -webkit-border-radius: 2px; + border-radius: 2px; } .qwebirc-qui a.tab-hilight-activity { diff --git a/js/jslib.js b/js/jslib.js index 994bf41..589baa9 100644 --- a/js/jslib.js +++ b/js/jslib.js @@ -244,18 +244,22 @@ qwebirc.util.createInput = function(type, parent, name, selected, id) { } else { id = ""; } - r = $(document.createElement("<input type=\"" + type + "\"" + name + id + " " + (selected?" checked":"") + "/>")); - } else { - r = new Element("input"); - r.type = type; - if(name) - r.name = name; - if(id) - r.id = id; - - if(selected) - r.checked = true; + try { + return $(document.createElement("<input type=\"" + type + "\"" + name + id + " " + (selected?" checked":"") + "/>")); + } catch(e) { + /* fallthough, trying it the proper way... */ + } } + + r = new Element("input"); + r.type = type; + if(name) + r.name = name; + if(id) + r.id = id; + + if(selected) + r.checked = true; parent.appendChild(r); return r; |