Browse Source

debug

master
Pascal Gloor 5 years ago
parent
commit
e2ed53fe7c
1 changed files with 7 additions and 2 deletions
  1. 7
    2
      www/js/autodoc.js

+ 7
- 2
www/js/autodoc.js View File

$(e.target).parent().children().children().html(''); $(e.target).parent().children().children().html('');
$(e.target).children().html(' X'); $(e.target).children().html(' X');
console.log($(e.target).attr('class'));
$('#autodoc_tag_result').attr('class', $(e.target).attr('class'));
$('#autodoc_tag_result').attr('class').each(function(myclass) {
$('#autodoc_tag_result').removeClass(myclass);
})
$(e.target).attr('class').split(/ /).each(function(myclass) {
$('#autodoc_tag_result').addClass(myclass);
});
return false; return false;
}) })


$('.autodoc_tag_text').keypress(function(e) { $('.autodoc_tag_text').keypress(function(e) {
console.log(e);
$('#autodoc_tag_result').html($(e.target).html()); $('#autodoc_tag_result').html($(e.target).html());
}); });
}); });

Loading…
Cancel
Save