From cb2e9df71bb2aa1b652f0c327c9f20e6901c6119 Mon Sep 17 00:00:00 2001 From: ChanMyeong Date: Mon, 14 Jan 2013 06:44:18 +0000 Subject: [PATCH] :checked list count bug fix. git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12546 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/comment/tpl/comment_list.html | 4 ++-- modules/comment/tpl/declared_list.html | 2 +- modules/document/tpl/declared_list.html | 4 ++-- modules/document/tpl/document_list.html | 4 ++-- modules/file/tpl/file_list.html | 4 ++-- modules/member/tpl/member_list.html | 2 +- modules/page/tpl/index.html | 4 ++-- modules/poll/tpl/poll_list.html | 4 ++-- modules/trackback/tpl/trackback_list.html | 4 ++-- modules/trash/tpl/trash_list.html | 4 ++-- 10 files changed, 18 insertions(+), 18 deletions(-) diff --git a/modules/comment/tpl/comment_list.html b/modules/comment/tpl/comment_list.html index e6ec898ae..92c86175e 100644 --- a/modules/comment/tpl/comment_list.html +++ b/modules/comment/tpl/comment_list.html @@ -167,7 +167,7 @@ jQuery(function($){ var $docTable = $('#commentListTable'); $docTable.find(':checkbox').change(function(){ var $modalAnchor = $('a[data-value]'); - if($docTable.find(':checked').length == 0){ + if($docTable.find('tbody :checked').length == 0){ $modalAnchor.removeAttr('href').addClass('x_disabled'); } else { $modalAnchor.attr('href','#listManager').removeClass('x_disabled'); @@ -175,7 +175,7 @@ jQuery(function($){ }).change(); // Button action $('a[data-value]').click(function(){ - if($docTable.find(':checked').length == 0){ + if($docTable.find('tbody :checked').length == 0){ $('body').css('overflow','auto'); alert('{$lang->msg_not_selected_document}'); return false; diff --git a/modules/comment/tpl/declared_list.html b/modules/comment/tpl/declared_list.html index 3d8266deb..5d053c96f 100644 --- a/modules/comment/tpl/declared_list.html +++ b/modules/comment/tpl/declared_list.html @@ -107,7 +107,7 @@ jQuery(function($){ var $docTable = $('#commentListTable'); $docTable.find(':checkbox').change(function(){ var $btn = $('#fo_list [type="submit"], #fo_list [type="button"]'); - if($docTable.find(':checked').length == 0){ + if($docTable.find('tbody :checked').length == 0){ $btn.addClass('x_disabled'); } else { $btn.removeClass('x_disabled'); diff --git a/modules/document/tpl/declared_list.html b/modules/document/tpl/declared_list.html index 55d208ca8..3137464f6 100644 --- a/modules/document/tpl/declared_list.html +++ b/modules/document/tpl/declared_list.html @@ -154,7 +154,7 @@ jQuery(function($){ var $docTable = $('#documentListTable'); $docTable.find(':checkbox').change(function(){ var $modalAnchor = $('a[data-value]'); - if($docTable.find(':checked').length == 0){ + if($docTable.find('tbody :checked').length == 0){ $modalAnchor.removeAttr('href').addClass('x_disabled'); } else { $modalAnchor.attr('href','#manageForm').removeClass('x_disabled'); @@ -162,7 +162,7 @@ jQuery(function($){ }).change(); // Button action $('a[data-value]').click(function(){ - if($docTable.find(':checked').length == 0){ + if($docTable.find('tbody :checked').length == 0){ $('body').css('overflow','auto'); alert('{$lang->msg_not_selected_document}'); return false; diff --git a/modules/document/tpl/document_list.html b/modules/document/tpl/document_list.html index 8a9815032..4a38f405b 100644 --- a/modules/document/tpl/document_list.html +++ b/modules/document/tpl/document_list.html @@ -165,7 +165,7 @@ jQuery(function($){ var $docTable = $('#documentListTable'); $docTable.find(':checkbox').change(function(){ var $modalAnchor = $('a[data-value]'); - if($docTable.find(':checked').length == 0){ + if($docTable.find('tbody :checked').length == 0){ $modalAnchor.removeAttr('href').addClass('x_disabled'); } else { $modalAnchor.attr('href','#manageForm').removeClass('x_disabled'); @@ -173,7 +173,7 @@ jQuery(function($){ }).change(); // Button action $('a[data-value]').click(function(){ - if($docTable.find(':checked').length == 0){ + if($docTable.find('tbody :checked').length == 0){ $('body').css('overflow','auto'); alert('{$lang->msg_not_selected_document}'); return false; diff --git a/modules/file/tpl/file_list.html b/modules/file/tpl/file_list.html index c539afe11..2551fc82a 100644 --- a/modules/file/tpl/file_list.html +++ b/modules/file/tpl/file_list.html @@ -185,7 +185,7 @@ jQuery(function($){ var $docTable = $('#fileListTable'); $docTable.find(':checkbox').change(function(){ var $modalAnchor = $('a.modalAnchor'); - if($docTable.find(':checked').length == 0){ + if($docTable.find('tbody :checked').length == 0){ $modalAnchor.removeAttr('href').addClass('x_disabled'); } else { $modalAnchor.attr('href','#listManager').removeClass('x_disabled'); @@ -193,7 +193,7 @@ jQuery(function($){ }).change(); // Button action $('a.modalAnchor').click(function(){ - if($docTable.find(':checked').length == 0){ + if($docTable.find('tbody :checked').length == 0){ $('body').css('overflow','auto'); alert('{$lang->msg_cart_is_null}'); return false; diff --git a/modules/member/tpl/member_list.html b/modules/member/tpl/member_list.html index bf76a2168..ca4429446 100644 --- a/modules/member/tpl/member_list.html +++ b/modules/member/tpl/member_list.html @@ -171,7 +171,7 @@ jQuery(function($){ var $memberList = $('#memberList'); $memberList.find(':checkbox').change(function(){ var $modalAnchor = $('a[data-value]'); - if($memberList.find(':checked').length == 0){ + if($memberList.find('tbody :checked').length == 0){ $modalAnchor.removeAttr('href').addClass('x_disabled'); } else { $modalAnchor.attr('href','#listManager').removeClass('x_disabled'); diff --git a/modules/page/tpl/index.html b/modules/page/tpl/index.html index 32d53336b..c08665d9e 100644 --- a/modules/page/tpl/index.html +++ b/modules/page/tpl/index.html @@ -126,7 +126,7 @@ jQuery(function($){ var $docTable = $('#fo_list>table'); $docTable.find(':checkbox').change(function(){ var $modalAnchor = $('a.modalAnchor'); - if($docTable.find(':checked').length == 0){ + if($docTable.find('tbody :checked').length == 0){ $modalAnchor.removeAttr('href').addClass('x_disabled'); } else { $modalAnchor.attr('href','#manageSelectedModule').removeClass('x_disabled'); @@ -134,7 +134,7 @@ jQuery(function($){ }).change(); // Button action $('a.modalAnchor').click(function(){ - if($docTable.find(':checked').length == 0){ + if($docTable.find('tbody :checked').length == 0){ $('body').css('overflow','auto'); alert('{$lang->msg_not_selected_document}'); return false; diff --git a/modules/poll/tpl/poll_list.html b/modules/poll/tpl/poll_list.html index f141dd2ed..3fe6654ac 100644 --- a/modules/poll/tpl/poll_list.html +++ b/modules/poll/tpl/poll_list.html @@ -110,7 +110,7 @@ jQuery(function($){ var $docTable = $('#pollListTable'); var $submit = $('#pollList [type="submit"]'); $docTable.find(':checkbox').change(function(){ - if($docTable.find(':checked').length == 0){ + if($docTable.find('tbody :checked').length == 0){ $submit.addClass('x_disabled'); } else { $submit.removeClass('x_disabled'); @@ -118,7 +118,7 @@ jQuery(function($){ }).change(); // Button action $submit.click(function(){ - if($docTable.find(':checked').length == 0){ + if($docTable.find('tbody :checked').length == 0){ alert(xe.lang.msg_select_poll); return false; } diff --git a/modules/trackback/tpl/trackback_list.html b/modules/trackback/tpl/trackback_list.html index dc829dbe1..35f3520b4 100644 --- a/modules/trackback/tpl/trackback_list.html +++ b/modules/trackback/tpl/trackback_list.html @@ -126,7 +126,7 @@ jQuery(function($){ var $docTable = $('#trackbackListTable'); $docTable.find(':checkbox').change(function(){ var $modalAnchor = $('a.modalAnchor'); - if($docTable.find(':checked').length == 0){ + if($docTable.find('tbody :checked').length == 0){ $modalAnchor.removeAttr('href').addClass('x_disabled'); } else { $modalAnchor.attr('href','#listManager').removeClass('x_disabled'); @@ -134,7 +134,7 @@ jQuery(function($){ }).change(); // Modal anchor button action $('a.modalAnchor').click(function(){ - if($docTable.find(':checked').length == 0){ + if($docTable.find('tbody :checked').length == 0){ $('body').css('overflow','auto'); alert('{$lang->msg_cart_is_null}'); return false; diff --git a/modules/trash/tpl/trash_list.html b/modules/trash/tpl/trash_list.html index 21ab624ea..dffd8ea56 100644 --- a/modules/trash/tpl/trash_list.html +++ b/modules/trash/tpl/trash_list.html @@ -132,7 +132,7 @@ jQuery(function($){ var $docTable = $('#trashListTable'); $docTable.find(':checkbox').change(function(){ var $modalAnchor = $('a[data-value]'); - if($docTable.find(':checked').length == 0){ + if($docTable.find('tbody :checked').length == 0){ $modalAnchor.removeAttr('href').addClass('x_disabled'); } else { $modalAnchor.attr('href','#fo_list').removeClass('x_disabled'); @@ -140,7 +140,7 @@ jQuery(function($){ }).change(); // Modal anchor button action $('a[data-value]').click(function(){ - if($docTable.find(':checked').length == 0){ + if($docTable.find('tbody :checked').length == 0){ $('body').css('overflow','auto'); alert('{$lang->msg_not_selected_document}'); return false;