mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 15:19:57 +09:00
Reduce JSON request of POLL
처음 설문조사 화면을 열 때는 JSON 요청을 하지 않고 바로 결과를 표시합니다.
This commit is contained in:
parent
3170040deb
commit
eee619a743
5 changed files with 61 additions and 35 deletions
|
|
@ -3,24 +3,25 @@
|
|||
var poll_alert_lang = "{$lang->msg_check_poll_item}";
|
||||
var poll_checkcount_lang = "{$lang->poll_checkcount}";
|
||||
var poll_member_lang = "{$lang->poll_item_members}";
|
||||
jQuery.exec_json("poll.getPollinfo", {/**/"poll_srl":{$poll_srl}/**/}, function(data){/**/
|
||||
jQuery(document).ready(function(){
|
||||
var data = {json_encode($poll_data)};
|
||||
if(data.poll.is_polled==0) loadPoll({$poll_srl},data);
|
||||
else
|
||||
{
|
||||
loadPollResult({$poll_srl},data);
|
||||
jQuery("#poll_{$poll_srl}_result_button").css({/**/
|
||||
jQuery("#poll_{$poll_srl}_result_button").css({
|
||||
display: "none"
|
||||
/**/});
|
||||
});
|
||||
|
||||
jQuery("#poll_{$poll_srl}_result_nobutton").css({/**/
|
||||
jQuery("#poll_{$poll_srl}_result_nobutton").css({
|
||||
display: "table-row"
|
||||
/**/});
|
||||
});
|
||||
|
||||
jQuery("#poll_{$poll_srl}_result_yesbutton").css({/**/
|
||||
jQuery("#poll_{$poll_srl}_result_yesbutton").css({
|
||||
display: "none"
|
||||
/**/});
|
||||
});
|
||||
}
|
||||
/**/});
|
||||
});
|
||||
</script>
|
||||
<div style="{$style}">
|
||||
<div id="poll_{$poll_srl}" class="pollWidget" style="display:none;">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue