From: Florent Bruneau Date: Mon, 24 Jan 2011 20:38:43 +0000 (+0100) Subject: Kill is_IE. X-Git-Tag: xorg/1.1.0~169 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=f28684feb06bef0d1d00f52db84d160ec557c458;hp=460098c82ed428034260a9ebf9f4ff6e7456d5f7;p=platal.git Kill is_IE. Signed-off-by: Florent Bruneau --- diff --git a/htdocs/javascript/xorg.js b/htdocs/javascript/xorg.js index b48e166..a315ccf 100644 --- a/htdocs/javascript/xorg.js +++ b/htdocs/javascript/xorg.js @@ -18,8 +18,6 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************/ -var is_IE = $.browser.msie; - // {{{ function getNow() var days = ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi']; var months = ['janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', diff --git a/templates/events/form.tpl b/templates/events/form.tpl index b5e9bcb..6f7aa84 100644 --- a/templates/events/form.tpl +++ b/templates/events/form.tpl @@ -57,11 +57,6 @@ document.getElementById('info').style.display = 'none'; } var page = 'events/preview?titre=' + encodeURIComponent(titre) + '&texte=' + encodeURIComponent(texte); - if (is_IE) { - {/literal} - page = "{$globals->baseurl}/" + page; - {literal} - } $('#preview').updateHtml(page); return false; } diff --git a/templates/lists/index.tpl b/templates/lists/index.tpl index 36bce05..6320468 100644 --- a/templates/lists/index.tpl +++ b/templates/lists/index.tpl @@ -25,7 +25,7 @@ {literal} function updateHtml(id, url) { - if (is_IE) { + if ($.browser.msie) { return true; } else { $('#' + id).updateHtml(url);