equal
deleted
inserted
replaced
111 MyAMS.ajax.post('get-parent-nodes.json', {term: options.term}, function(data) { |
111 MyAMS.ajax.post('get-parent-nodes.json', {term: options.term}, function(data) { |
112 PyAMS_thesaurus.tree.displaySubNodes(data.parent, data.nodes); |
112 PyAMS_thesaurus.tree.displaySubNodes(data.parent, data.nodes); |
113 var element = $('span.term:withtext("' + data.term + '")').parents('span.label'); |
113 var element = $('span.term:withtext("' + data.term + '")').parents('span.label'); |
114 $('html,body').animate({scrollTop: element.offset().top - 100}, 1000); |
114 $('html,body').animate({scrollTop: element.offset().top - 100}, 1000); |
115 element.css('background-color', 'darkgreen') |
115 element.css('background-color', 'darkgreen') |
|
116 .off('mouseover') |
116 .on('mouseover', function() { |
117 .on('mouseover', function() { |
117 $(this).css('background-color', ''); |
118 $(this).css('background-color', ''); |
118 }) |
119 }) |
119 }); |
120 }); |
120 }, |
121 }, |