선택항목 개수 체크하는 스크립트 수정

This commit is contained in:
chicpro
2013-02-18 17:00:04 +09:00
parent 5c49bb5bb6
commit dcd7461d82
2 changed files with 4 additions and 6 deletions

View File

@ -139,9 +139,8 @@ $colspan = 6;
$(function() {
$('#fpolllist').submit(function() {
if(confirm("한번 삭제한 자료는 복구할 방법이 없습니다.\n\n정말 삭제하시겠습니까?")) {
var cnt = $('input[name^=chk]:checked').length;
if(cnt < 1) {
alert('삭제할 투표목록을 1개이상 선택해 주세요.');
if (!is_checked("chk[]")) {
alert("선택삭제 하실 항목을 하나 이상 선택하세요.");
return false;
}

View File

@ -147,9 +147,8 @@ var list_delete_php = 'popular_list.php';
$(function() {
$('#fpopularlist').submit(function() {
if(confirm("한번 삭제한 자료는 복구할 방법이 없습니다.\n\n정말 삭제하시겠습니까?")) {
var cnt = $('input[name^=chk]:checked').length;
if(cnt < 1) {
alert('삭제할 검색어를 1개이상 선택해 주세요.');
if (!is_checked("chk[]")) {
alert("선택삭제 하실 항목을 하나 이상 선택하세요.");
return false;
}