themes/oxygen/header.tpl
changeset 80 cb7dde69c301
parent 74 68469a95658d
child 81 d7fc25acd3f3
equal deleted inserted replaced
79:5faff33a6580 80:cb7dde69c301
    65         }
    65         }
    66       }
    66       }
    67       
    67       
    68       function ajaxRenameInline()
    68       function ajaxRenameInline()
    69       {
    69       {
    70         if ( KILL_SWITCH )
    70         if ( KILL_SWITCH || IE )
    71           return false;
    71           return false;
    72         // This trick is _so_ vBulletin...
    72         // This trick is _so_ vBulletin...
    73         elem = document.getElementById('h2PageName');
    73         elem = document.getElementById('h2PageName');
    74         if(!elem) return;
    74         if(!elem) return;
    75         elem.style.display = 'none';
    75         elem.style.display = 'none';
    99           }
    99           }
   100         });
   100         });
   101       }
   101       }
   102       function ajaxRenameInlineCancel(e)
   102       function ajaxRenameInlineCancel(e)
   103       {
   103       {
       
   104         if ( typeof(e) != 'object' && IE )
       
   105           e = window.event;
   104         elem1 = document.getElementById('h2PageName');
   106         elem1 = document.getElementById('h2PageName');
   105         elem2 = document.getElementById('pageheading');
   107         elem2 = document.getElementById('pageheading');
   106         if(!elem1 || !elem2) return;
   108         if(!elem1 || !elem2) return;
   107         if ( e.target )
   109         if ( typeof(e) == 'object' && e.target )
   108         {
   110         {
   109           if(e.target == elem2)
   111           if(e.target == elem2)
   110             return;
   112             return;
   111         }
   113         }
   112         //value = elem2.value;
   114         //value = elem2.value;