1. Luke Plant
  2. sphinx

Commits

Georg Brandl  committed 0a6afe6

Fix JQuery API usage to work with 1.3.x.

  • Participants
  • Parent commits 1666d81
  • Branches default

Comments (0)

Files changed (2)

File sphinx/themes/basic/static/doctools.js

View file
  • Ignore whitespace
    * add context elements like header anchor links
    */
   addContextElements : function() {
-    $('div[@id] > :header:first').each(function() {
+    $('div[id] > :header:first').each(function() {
       $('<a class="headerlink">\u00B6</a>').
       attr('href', '#' + this.id).
       attr('title', _('Permalink to this headline')).
       appendTo(this);
     });
-    $('dt[@id]').each(function() {
+    $('dt[id]').each(function() {
       $('<a class="headerlink">\u00B6</a>').
       attr('href', '#' + this.id).
       attr('title', _('Permalink to this definition')).

File sphinx/themes/basic/static/searchtools.js

View file
  • Ignore whitespace
       var params = $.getQueryParameters();
       if (params.q) {
           var query = params.q[0];
-          $('input[@name="q"]')[0].value = query;
+          $('input[name="q"]')[0].value = query;
           this.performSearch(query);
       }
   },