| 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 |
| 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); |
| 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 |
/** |
/** |
| 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 |
|
|