IE compatibility...

This commit is contained in:
Antoine Nguyen
2010-06-16 08:50:03 +02:00
parent 131e78655c
commit 8622c0bd18
7 changed files with 33 additions and 15 deletions
+2 -2
View File
@@ -145,8 +145,8 @@ div#footer {
margin: 0;
padding: 0;
list-style: none;
width: 100%;
color: #2a4069;
float: left;
}
.menubar li {
@@ -365,4 +365,4 @@ div.row label {
float: left;
display: inline;
color: red;
}
}
+11 -6
View File
@@ -77,9 +77,13 @@ function HashWrapper(deflocation) {
this.reset();
}
this.base = (splits[0] == "") ? this.deflocation : splits[0];
if (this.base[this.base.length - 1] != '/') {
/*if (this.base[this.base.length - 1] != '/') {
this.base += '/';
}
}*/
var re = new RegExp("/$");
if (!this.base.match(re)) {
this.base += '/';
}
if (splits.length > 1) {
params = splits[1].split('&');
for (var i = 0; i < params.length; i++) {
@@ -106,7 +110,7 @@ function HashWrapper(deflocation) {
};
this.update = function(force) {
location.hash = this.serialize();
window.location.hash = this.serialize();
if ($defined(force)) {
this.force = force;
}
@@ -147,9 +151,10 @@ function HashWrapper(deflocation) {
this.baseurl = function(value) {
this.reset();
this.base = value;
if (this.base[this.base.length - 1] != '/') {
this.base += '/';
}
var re = new RegExp("/$");
if (!this.base.match(re)) {
this.base += '/';
}
return this;
};