From c1e3a4ef5d1093fb9e82539915d4df44f832cdf6 Mon Sep 17 00:00:00 2001 From: ChanMyeong Date: Fri, 28 Dec 2012 09:14:56 +0000 Subject: [PATCH] Comment list unpublish function bug fix. git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12492 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/comment/tpl/comment_list.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/comment/tpl/comment_list.html b/modules/comment/tpl/comment_list.html index efde7e524..4d9021e2e 100644 --- a/modules/comment/tpl/comment_list.html +++ b/modules/comment/tpl/comment_list.html @@ -185,11 +185,11 @@ jQuery(function($){ var thisName = $this.attr('data-name'); var thisText = $this.text(); getCommentList(); - $('#listManager').find('.x_modal-header ._sub').text(thisText).end().find('[type="submit"]').val(thisValue).attr('name', thisName).text(thisText); + $('#listManager').find('.x_modal-header ._sub').text(thisText).end().find('[type="submit"]:eq(0)').val(thisValue).attr('name', thisName).text(thisText); } }); - $('[type="submit"][name="will_publish"]').click(function(){ - doChangePublishedStatus(this.value); + $('.x_modal-footer').on("click", '[type="submit"][name="will_publish"]', function(){ + doChangePublishedStatus($(this).val()); }); }); \ No newline at end of file