merge from 1.7.3.5(r13153:r13167)

git-svn-id: http://xe-core.googlecode.com/svn/trunk@13168 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2013-09-29 23:32:39 +00:00
parent cc47d2b247
commit 2d3f149b5a
2042 changed files with 129266 additions and 126243 deletions

View file

@ -55,50 +55,6 @@ function completeMovePoll(ret_obj, response_tags) {
winopen(url, 'pollTarget');
}
function getPollList()
{
var pollListTable = jQuery('#pollListTable');
var cartList = [];
pollListTable.find(':checkbox[name=cart]').each(function(){
if(this.checked) cartList.push(this.value);
});
var params = new Array();
var response_tags = ['error','message', 'poll_list'];
params["poll_srls"] = cartList.join(",");
exec_xml('poll','procPollGetList',params, completeGetPollList, response_tags);
}
function completeGetPollList(ret_obj, response_tags)
{
var htmlListBuffer = '';
if(ret_obj['poll_list'] == null)
{
htmlListBuffer = '<tr>' +
'<td colspan="3" style="text-align:center;">'+ret_obj['message']+'</td>' +
'</tr>';
}
else
{
var poll_list = ret_obj['poll_list']['item'];
if(!jQuery.isArray(poll_list)) poll_list = [poll_list];
for(var x in poll_list)
{
var objPoll = poll_list[x];
htmlListBuffer += '<tr>' +
'<td class="title">'+objPoll.title+'</td>' +
'<td class="nowr">'+objPoll.poll_count+'</td>' +
'<td class="nowr">'+objPoll.nick_name+'</td>' +
'</tr>' +
'<input type="hidden" name="cart[]" value="'+objPoll.poll_index_srl+'" />';
}
jQuery('#selectedPollCount').html(poll_list.length);
}
jQuery('#pollManageListTable>tbody').html(htmlListBuffer);
}
function checkSearch(form)
{
if(form.search_target.value == '')
@ -112,3 +68,24 @@ function checkSearch(form)
return false;
}
}
jQuery(function ($){
$('#pollList').submit(function(e){
var cnt = $('#pollList tbody :checked').length;
if(cnt == 0)
{
e.stopPropagation();
alert(xe.lang.msg_select_poll);
return false;
}
var msg = xe.lang.confirm_poll_delete.replace("%s", cnt);
if(!confirm(msg))
{
e.stopPropagation();
return false;
}
});
});