닫힘 처리
This commit is contained in:
parent
fe15c8a399
commit
c85d9002dc
@ -62,6 +62,9 @@ $( document ).ready(function() {
|
|||||||
|
|
||||||
var $qObj = $(qObj);
|
var $qObj = $(qObj);
|
||||||
if($qObj.hasClass('on')) {
|
if($qObj.hasClass('on')) {
|
||||||
|
$qObj.removeClass("on");
|
||||||
|
$qObj.next(".answer").stop().slideUp(300);
|
||||||
|
$qObj.next(".answer").html("");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -170,6 +173,7 @@ $( document ).ready(function() {
|
|||||||
$.each(jsonObj.data,function(key,obj) {
|
$.each(jsonObj.data,function(key,obj) {
|
||||||
var li = $(document.createElement('li'));
|
var li = $(document.createElement('li'));
|
||||||
li.attr("articleId", obj.articleId);
|
li.attr("articleId", obj.articleId);
|
||||||
|
|
||||||
li.append($('<button type="button"></button>').attr('class', 'question').on("click", function() {
|
li.append($('<button type="button"></button>').attr('class', 'question').on("click", function() {
|
||||||
fn_viewDetail(this, obj.articleId);
|
fn_viewDetail(this, obj.articleId);
|
||||||
}));
|
}));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user