|
|
@@ -67,9 +67,9 @@
|
|
|
</div>
|
|
|
<div class="fold_nav">
|
|
|
<ul id="ulFaqType">
|
|
|
- <li><a href="#none;" onclick="fnGetList(this);" class="on">전체</a></li>
|
|
|
+ <li><a href="#none;" onclick="fnGetList(this, '', true);" class="on">전체</a></li>
|
|
|
<li th:if="${faqTypeList != null and !faqTypeList.empty}" th:each="oneData, status : ${faqTypeList}">
|
|
|
- <a href="javascript:void(0);" th:onclick='fnGetList(this, [[${oneData.cd}]]);' th:text="${oneData.cdNm}">상품문의</a>
|
|
|
+ <a href="javascript:void(0);" th:onclick='fnGetList(this, [[${oneData.cd}]], true);' th:text="${oneData.cdNm}">상품문의</a>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
@@ -143,7 +143,7 @@
|
|
|
fnGetList();
|
|
|
});
|
|
|
|
|
|
- let fnGetList = function(obj, faqType) {
|
|
|
+ let fnGetList = function(obj, faqType, isCallTab) {
|
|
|
if (typeof(obj) != 'undefined') {
|
|
|
$li = $(obj).parent('li').parent('ul').find('li>a');
|
|
|
$li.each(function(i) {
|
|
|
@@ -158,6 +158,10 @@
|
|
|
$('#faqForm input[name=faqType]').val('');
|
|
|
}
|
|
|
|
|
|
+ if (isCallTab) {
|
|
|
+ $('#faqForm input[name=searchTxt]').val('');
|
|
|
+ }
|
|
|
+
|
|
|
// Initialize a pagination
|
|
|
gagaPaging.init('faqForm', fnGetListCallback, 'pageNav', 10);
|
|
|
|