~ubuntu-branches/ubuntu/saucy/mediawiki-extensions/saucy

« back to all changes in this revision

Viewing changes to http/CategoryTree/CategoryTree.js

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2009-03-25 19:36:16 UTC
  • Revision ID: james.westby@ubuntu.com-20090325193616-wao3b2mgbb0qyv7i
Tags: 1.6
* Updated extensions.
* Added OpenID extension.
* Added README.Debian.
Closes: #516693
* Bumped standards version to 3.8.1
* Bumped compatibility level to 7.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
      categoryTreeLoadChildren(cat, options, div)
59
59
    }
60
60
 
 
61
        // FIXME Why can't this just use uneval()?
61
62
    function categoryTreeEncodeValue(value) {
62
63
          switch (typeof value) {
63
64
              case 'function': 
146
147
      var opt = categoryTreeEncodeValue(options);
147
148
      sajax_do_call( "efCategoryTreeAjaxWrapper", [cat, opt, 'json'] , f );
148
149
    }
 
150
    
 
151
    // Re-show the CategoryTreeToggles.
 
152
    addOnloadHook( function() {
 
153
        var toggles = getElementsByClassName( document, 'span', 'CategoryTreeToggle' );
 
154
        
 
155
        for( var i = 0; i<toggles.length; ++i ) {
 
156
                toggles[i].style.display = 'inline';
 
157
        }
 
158
    } );