Skip to content

Commit

Permalink
[en] Remove xajax dependencies, pfc only uses prototype js library. […
Browse files Browse the repository at this point in the history
…6h45]

[fr] Retire les dépendances avec la lib xajax, pfc n'utilise plus que la lib prototype. [6h45]

[en] Bug fix: CSS selectors separated with comma didn't worked on IE6
[fr] Bug fix : les selecteurs CSS séparés par des virgules ne fonctionnaient pas sous IE6


git-svn-id: https://phpfreechat.svn.sourceforge.net/svnroot/phpfreechat/trunk@1028 2772adf2-ac07-0410-9d30-e29d8120292e
  • Loading branch information
kerphi committed May 20, 2007
1 parent 906a950 commit 4398a90
Show file tree
Hide file tree
Showing 26 changed files with 3,511 additions and 5,410 deletions.
16 changes: 10 additions & 6 deletions data/public/js/createstylerule.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,16 @@ pfcCSS.prototype = {

applyRule: function(selector, declaration)
{
if (!this.is_iewin) {
var styleRule = document.createTextNode(selector + " {" + declaration + "}");
this.style.appendChild(styleRule); // bugs in IE/Win
}
if (this.is_iewin && document.styleSheets && document.styleSheets.length > 0) {
this.lastStyle.addRule(selector, declaration);
selector = selector.split(',');
for ( var i = 0; i < selector.length; i++)
{
if (!this.is_iewin) {
var styleRule = document.createTextNode(selector[i] + " {" + declaration + "}");
this.style.appendChild(styleRule); // bugs in IE/Win
}
if (this.is_iewin && document.styleSheets && document.styleSheets.length > 0) {
this.lastStyle.addRule(selector[i], declaration);
}
}
}
}
Loading

0 comments on commit 4398a90

Please sign in to comment.