[Python-modules-commits] r17286 - in packages/sphinx/branches/0.6/debian/patches (1 file)

jwilk at users.alioth.debian.org jwilk at users.alioth.debian.org
Sun Jun 5 13:43:54 UTC 2011


    Date: Sunday, June 5, 2011 @ 13:43:53
  Author: jwilk
Revision: 17286

Remove irrelevant hunks for the jQuery 1.4 compatibility patch.

Modified:
  packages/sphinx/branches/0.6/debian/patches/fix_jquery_1.4_incompatibility.patch

Modified: packages/sphinx/branches/0.6/debian/patches/fix_jquery_1.4_incompatibility.patch
===================================================================
--- packages/sphinx/branches/0.6/debian/patches/fix_jquery_1.4_incompatibility.patch	2011-06-05 13:29:31 UTC (rev 17285)
+++ packages/sphinx/branches/0.6/debian/patches/fix_jquery_1.4_incompatibility.patch	2011-06-05 13:43:53 UTC (rev 17286)
@@ -4,23 +4,6 @@
 
 --- a/sphinx/themes/basic/static/doctools.js
 +++ b/sphinx/themes/basic/static/doctools.js
-@@ -3,14 +3,14 @@
- /**
-  * make the code below compatible with browsers without
-  * an installed firebug like debugger
-- */
- if (!window.console || !console.firebug) {
-   var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
-       "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
-   window.console = {};
-   for (var i = 0; i < names.length; ++i)
--    window.console[names[i]] = function() {}
-+    window.console[names[i]] = function() {};
- }
-+ */
- 
- /**
-  * small helper function to urldecode strings
 @@ -67,7 +67,7 @@
      if (node.nodeType == 3) {
        var val = node.nodeValue;
@@ -30,36 +13,3 @@
          var span = document.createElement("span");
          span.className = className;
          span.appendChild(document.createTextNode(val.substr(pos, text.length)));
-@@ -79,7 +79,7 @@
-     }
-     else if (!jQuery(node).is("button, select, textarea")) {
-       jQuery.each(node.childNodes, function() {
--        highlight(this)
-+        highlight(this);
-       });
-     }
-   }
-@@ -183,7 +183,7 @@
-     var togglers = $('img.toggler').click(function() {
-       var src = $(this).attr('src');
-       var idnum = $(this).attr('id').substr(7);
--      console.log($('tr.cg-' + idnum).toggle());
-+      $('tr.cg-' + idnum).toggle();
-       if (src.substr(-9) == 'minus.png')
-         $(this).attr('src', src.substr(0, src.length-9) + 'plus.png');
-       else
---- a/sphinx/themes/basic/static/searchtools.js
-+++ b/sphinx/themes/basic/static/searchtools.js
-@@ -316,9 +316,9 @@
-     };
-     var highlightstring = '?highlight=' + $.urlencode(hlterms.join(" "));
- 
--    console.debug('SEARCH: searching for:');
--    console.info('required: ', searchterms);
--    console.info('excluded: ', excluded);
-+    // console.debug('SEARCH: searching for:');
-+    // console.info('required: ', searchterms);
-+    // console.info('excluded: ', excluded);
- 
-     // prepare search
-     var filenames = this._index.filenames;




More information about the Python-modules-commits mailing list