Browse Source

Removed obsolete ActiveXObject from admindocs bookmarklets.

Required for IE<7.
Nick Pope 6 years ago
parent
commit
f0f3b30296
1 changed files with 1 additions and 1 deletions
  1. 1 1
      django/contrib/admindocs/templates/admin_doc/bookmarklets.html

+ 1 - 1
django/contrib/admindocs/templates/admin_doc/bookmarklets.html

@@ -19,7 +19,7 @@ from any page in the site.
 {% endblocktrans %}</p>
 
 <div id="content-main">
-    <h3><a href="javascript:(function(){if(typeof ActiveXObject!='undefined'){x=new ActiveXObject('Microsoft.XMLHTTP')}else if(typeof XMLHttpRequest!='undefined'){x=new XMLHttpRequest()}else{return;}x.open('HEAD',location.href,false);x.send(null);try{view=x.getResponseHeader('x-view');}catch(e){alert('No view found for this page');return;}if(view=='undefined'){alert('No view found for this page');}document.location='{% url 'django-admindocs-views-index' %}'+view+'/';})()">{% trans "Documentation for this page" %}</a></h3>
+    <h3><a href="javascript:(function(){if(typeof XMLHttpRequest!='undefined'){x=new XMLHttpRequest()}else{return;}x.open('HEAD',location.href,false);x.send(null);try{view=x.getResponseHeader('x-view');}catch(e){alert('No view found for this page');return;}if(view=='undefined'){alert('No view found for this page');}document.location='{% url 'django-admindocs-views-index' %}'+view+'/';})()">{% trans "Documentation for this page" %}</a></h3>
     <p>{% trans "Jumps you from any page to the documentation for the view that generates that page." %}</p>
 </div>