From 336af6fd746ba46db980ba119f45cec47c1b9e28 Mon Sep 17 00:00:00 2001 From: Thomas NOEL Date: Fri, 22 Nov 2013 10:16:20 +0100 Subject: [PATCH] with IE, with love, AGAAAINNNN --- js/local.js | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/js/local.js b/js/local.js index ad3e924..0973071 100644 --- a/js/local.js +++ b/js/local.js @@ -1,3 +1,11 @@ +/* IE8 */ +if(!document.getElementsByClassName) { + document.getElementsByClassName = function(className) { + return this.querySelectorAll("." + className); + }; + Element.prototype.getElementsByClassName = document.getElementsByClassName; +} + /* dirty hack pour éviter le double-clic sur un submit */ var submit_buttons = document.getElementsByClassName('submit-button')[0]; @@ -14,7 +22,20 @@ if (submit_buttons) { var wcs_passwords = document.getElementsByClassName('wcs-password'); if (wcs_passwords) { for(var i=0; i on remplace le input complet */ + var inp = document.createElement('input'); + inp.type='password'; + var attributes = ['id', 'name', 'size']; + for(i=0;i