Kill is_IE.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 24 Jan 2011 20:38:43 +0000 (21:38 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 24 Jan 2011 20:38:43 +0000 (21:38 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
htdocs/javascript/xorg.js
templates/events/form.tpl
templates/lists/index.tpl

index b48e166..a315ccf 100644 (file)
@@ -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',
index b5e9bcb..6f7aa84 100644 (file)
       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;
   }
index 36bce05..6320468 100644 (file)
@@ -25,7 +25,7 @@
   {literal}
   function updateHtml(id, url)
   {
-      if (is_IE) {
+      if ($.browser.msie) {
           return true;
       } else {
           $('#' + id).updateHtml(url);