/[drupal]/contributions/modules/taxonomy_manager/js/tree.js
ViewVC logotype

Diff of /contributions/modules/taxonomy_manager/js/tree.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.4.2.4.2.9.2.12, Fri Aug 7 08:20:22 2009 UTC revision 1.4.2.4.2.9.2.13, Mon Aug 10 13:47:45 2009 UTC
# Line 1  Line 1 
1  // $Id: tree.js,v 1.4.2.4.2.9.2.11 2009/08/05 13:54:54 mh86 Exp $  // $Id: tree.js,v 1.4.2.4.2.9.2.12 2009/08/07 08:20:22 mh86 Exp $
2    
3  /**  /**
4   * @files js for collapsible tree view with some helper functions for updating tree structure   * @files js for collapsible tree view with some helper functions for updating tree structure
# Line 56  Drupal.TaxonomyManagerTree = function(id Line 56  Drupal.TaxonomyManagerTree = function(id
56    this.treeId = id;    this.treeId = id;
57    this.vocId = vid;    this.vocId = vid;
58    
   $(this.div).addClass("tm-processed");  
59    this.attachTreeview(this.ul);    this.attachTreeview(this.ul);
60    this.attachSiblingsForm(this.ul);    this.attachSiblingsForm(this.ul);
61    this.attachSelectAllChildren(this.ul);    this.attachSelectAllChildren(this.ul);
# Line 67  Drupal.TaxonomyManagerTree = function(id Line 66  Drupal.TaxonomyManagerTree = function(id
66    if (term_data_settings['url']) {    if (term_data_settings['url']) {
67      Drupal.attachTermData(this.ul, this);      Drupal.attachTermData(this.ul, this);
68    }    }
69    
70      $(this.div).addClass("tm-processed");
71  }  }
72    
73  /**  /**
# Line 187  Drupal.TaxonomyManagerTree.prototype.loa Line 188  Drupal.TaxonomyManagerTree.prototype.loa
188      if (tid) {      if (tid) {
189        var termLink = $("#"+ tree.treeId).find(":input[value="+ tid +"]").parent().find("a.term-data-link");        var termLink = $("#"+ tree.treeId).find(":input[value="+ tid +"]").parent().find("a.term-data-link");
190        Drupal.activeTermSwapHighlight(termLink);        Drupal.activeTermSwapHighlight(termLink);
191      }      }
192    
193        var lang = $('#edit-'+ tree.treeId +'-language').val();
194        if (lang != "" && lang != tree.langauge) {
195          $(tree.div).parent().siblings("div.taxonomy-manager-tree-top").find("select.language-selector option[value="+ lang +"]").attr("selected", "selected");
196        }
197    });    });
198  }  }
199    

Legend:
Removed from v.1.4.2.4.2.9.2.12  
changed lines
  Added in v.1.4.2.4.2.9.2.13

  ViewVC Help
Powered by ViewVC 1.1.2