소스 검색

debug

master
Pascal Gloor 5 년 전
부모
커밋
e2ed53fe7c
1개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 7
    2
      www/js/autodoc.js

+ 7
- 2
www/js/autodoc.js 파일 보기

@@ -72,12 +72,17 @@ $(document).ready(function () {
$(e.target).parent().children().children().html('');
$(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;
})

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

Loading…
취소
저장