12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- if (Drupal.jsEnabled) {
- $(document).ready(function() {
- });
- function init_tree(){
- $("#browser").treeview({
- toggle: function() {
-
- },
- url: "tripal_cv_update_browser",
-
- ajax: {
- data: {
- "additional": function() {
- return "yeah: " + new Date;
- }
- },
- type: "post"
- }
- });
- }
-
-
- function tripal_cv_init_browser(options){
-
- var index = options.selectedIndex;
- var cv_id = options[index].value;
- $.ajax({
- url: '/tripal_cv_init_browser/' + cv_id ,
- dataType: 'json',
- type: 'POST',
- success: function(data){
- $("#cv_browser").html(data.update);
- init_tree();
- }
- });
- return false;
- }
-
-
- function tripal_cv_cvterm_info(cvterm_id){
-
- $.ajax({
- url: '/tripal_cv_cvterm_info/' + cvterm_id ,
- dataType: 'json',
- type: 'POST',
- success: function(data){
- $("#cvterm_info").html(data.update);
- init_tree();
- }
- });
- return false;
- }
- }
|