mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 03:52:15 +09:00
Fix #2107 remove unnecessary conditions in poll widget skin
This commit is contained in:
parent
c9d3e9048d
commit
6ccbb0e792
2 changed files with 76 additions and 122 deletions
|
|
@ -69,74 +69,51 @@ function doRxDefaultPoll(fo_obj) {
|
||||||
}
|
}
|
||||||
fo_obj.poll_srl_indexes.value = poll_srl_indexes;
|
fo_obj.poll_srl_indexes.value = poll_srl_indexes;
|
||||||
|
|
||||||
jQuery.exec_json("poll.procPoll", {"poll_srl":poll_srl,"poll_srl_indexes":poll_srl_indexes}, function(data){
|
exec_json("poll.procPoll", {"poll_srl":poll_srl,"poll_srl_indexes":poll_srl_indexes}, function(data){
|
||||||
if (data.error != 0) {
|
loadRxDefaultPollResult(poll_srl);
|
||||||
alert(data.message);
|
$("#poll_" + poll_srl + "_gotoresult_button").css({
|
||||||
}
|
display: "none"
|
||||||
else {
|
});
|
||||||
loadRxDefaultPollResult(poll_srl);
|
$("#poll_" + poll_srl + "_result_nobutton").css({
|
||||||
jQuery("#poll_" + poll_srl + "_gotoresult_button").css({
|
display: "block"
|
||||||
display: "none"
|
});
|
||||||
});
|
$("#poll_" + poll_srl + "_result_yesbutton").css({
|
||||||
|
display: "none"
|
||||||
jQuery("#poll_" + poll_srl + "_result_nobutton").css({
|
});
|
||||||
display: "block"
|
|
||||||
});
|
|
||||||
|
|
||||||
jQuery("#poll_" + poll_srl + "_result_yesbutton").css({
|
|
||||||
display: "none"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 항목 추가 함수 */
|
/* 항목 추가 함수 */
|
||||||
function addRxDefaultItem(poll_srl, poll_srl_indexes) {
|
function addRxDefaultItem(poll_srl, poll_srl_indexes) {
|
||||||
jQuery.exec_json("poll.procPollInsertItem", {"srl":poll_srl, "index_srl":poll_srl_indexes, "title":jQuery("#new_item_" + poll_srl_indexes).val()}, function(data){
|
exec_json("poll.procPollInsertItem", {"srl":poll_srl, "index_srl":poll_srl_indexes, "title":jQuery("#new_item_" + poll_srl_indexes).val()}, function(data){
|
||||||
if (data.error!=0) {
|
$("#poll_" + poll_srl + "_result_button").css({
|
||||||
alert(data.message);
|
display: "none"
|
||||||
}
|
});
|
||||||
else {
|
$("#poll_" + poll_srl + "_result_nobutton").css({
|
||||||
jQuery("#poll_" + poll_srl + "_result_button").css({
|
display: "block"
|
||||||
display: "none"
|
});
|
||||||
});
|
$("#poll_" + poll_srl + "_result_yesbutton").css({
|
||||||
|
display: "none"
|
||||||
jQuery("#poll_" + poll_srl + "_result_nobutton").css({
|
});
|
||||||
display: "block"
|
loadRxDefaultPoll(poll_srl);
|
||||||
});
|
|
||||||
|
|
||||||
jQuery("#poll_" + poll_srl + "_result_yesbutton").css({
|
|
||||||
display: "none"
|
|
||||||
});
|
|
||||||
|
|
||||||
loadRxDefaultPoll(poll_srl);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 항목 삭제 함수 */
|
/* 항목 삭제 함수 */
|
||||||
function deleteRxDefaultItem(poll_srl, poll_srl_indexes, poll_item_srl) {
|
function deleteRxDefaultItem(poll_srl, poll_srl_indexes, poll_item_srl) {
|
||||||
jQuery.exec_json("poll.procPollDeleteItem", {"srl":poll_srl, "index_srl":poll_srl_indexes, "item_srl":poll_item_srl}, function(data){
|
exec_json("poll.procPollDeleteItem", {"srl":poll_srl, "index_srl":poll_srl_indexes, "item_srl":poll_item_srl}, function(data){
|
||||||
if (data.error!=0) {
|
$("#poll_" + poll_srl + "_result_button").css({
|
||||||
alert(data.message);
|
display: "none"
|
||||||
}
|
});
|
||||||
else {
|
$("#poll_" + poll_srl + "_result_nobutton").css({
|
||||||
jQuery("#poll_" + poll_srl + "_result_button").css({
|
display: "block"
|
||||||
display: "none"
|
});
|
||||||
});
|
$("#poll_" + poll_srl + "_result_yesbutton").css({
|
||||||
|
display: "none"
|
||||||
jQuery("#poll_" + poll_srl + "_result_nobutton").css({
|
});
|
||||||
display: "block"
|
loadRxDefaultPoll(poll_srl);
|
||||||
});
|
|
||||||
|
|
||||||
jQuery("#poll_" + poll_srl + "_result_yesbutton").css({
|
|
||||||
display: "none"
|
|
||||||
});
|
|
||||||
|
|
||||||
loadRxDefaultPoll(poll_srl);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -144,7 +121,7 @@ function deleteRxDefaultItem(poll_srl, poll_srl_indexes, poll_item_srl) {
|
||||||
function loadRxDefaultPoll(poll_srl, data)
|
function loadRxDefaultPoll(poll_srl, data)
|
||||||
{
|
{
|
||||||
if (typeof data == 'undefined') {
|
if (typeof data == 'undefined') {
|
||||||
jQuery.exec_json("poll.getPollinfo", {"poll_srl":poll_srl}, function(data){
|
exec_json("poll.getPollinfo", {"poll_srl":poll_srl}, function(data){
|
||||||
loadRxDefaultPoll(parseInt(data.poll.poll_srl), data);
|
loadRxDefaultPoll(parseInt(data.poll.poll_srl), data);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -188,7 +165,7 @@ function showRxDefaultPollMemberNext(poll_srl, poll_item_srl)
|
||||||
|
|
||||||
window.cur_page++;
|
window.cur_page++;
|
||||||
|
|
||||||
jQuery.exec_json("poll.getPollitemInfo", {"poll_srl":poll_srl, "poll_item":poll_item_srl, "page":window.cur_page}, function(data){
|
exec_json("poll.getPollitemInfo", {"poll_srl":poll_srl, "poll_item":poll_item_srl, "page":window.cur_page}, function(data){
|
||||||
initRxDefaultTemplete('members', poll_srl);
|
initRxDefaultTemplete('members', poll_srl);
|
||||||
var template = window.template_member;
|
var template = window.template_member;
|
||||||
var context = Object;
|
var context = Object;
|
||||||
|
|
@ -222,7 +199,7 @@ function showRxDefaultPollMember(poll_srl, poll_item_srl)
|
||||||
{
|
{
|
||||||
window.cur_page = 1;
|
window.cur_page = 1;
|
||||||
|
|
||||||
jQuery.exec_json("poll.getPollitemInfo", {"poll_srl":poll_srl, "poll_item":poll_item_srl, "page":window.cur_page}, function(data){
|
exec_json("poll.getPollitemInfo", {"poll_srl":poll_srl, "poll_item":poll_item_srl, "page":window.cur_page}, function(data){
|
||||||
initRxDefaultTemplete('members', poll_srl);
|
initRxDefaultTemplete('members', poll_srl);
|
||||||
var template = window.template_member;
|
var template = window.template_member;
|
||||||
var context = Object;
|
var context = Object;
|
||||||
|
|
@ -264,7 +241,7 @@ function showRxDefaultPollMember(poll_srl, poll_item_srl)
|
||||||
function loadRxDefaultPollResult(poll_srl, data)
|
function loadRxDefaultPollResult(poll_srl, data)
|
||||||
{
|
{
|
||||||
if (typeof data == 'undefined') {
|
if (typeof data == 'undefined') {
|
||||||
jQuery.exec_json("poll.getPollinfo", {"poll_srl":poll_srl}, function(data){
|
exec_json("poll.getPollinfo", {"poll_srl":poll_srl}, function(data){
|
||||||
loadRxDefaultPollResult(parseInt(data.poll.poll_srl), data);
|
loadRxDefaultPollResult(parseInt(data.poll.poll_srl), data);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -331,4 +308,4 @@ function loadRxDefaultPollResult(poll_srl, data)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -69,74 +69,51 @@ function doRxSmplPoll(fo_obj) {
|
||||||
}
|
}
|
||||||
fo_obj.poll_srl_indexes.value = poll_srl_indexes;
|
fo_obj.poll_srl_indexes.value = poll_srl_indexes;
|
||||||
|
|
||||||
jQuery.exec_json("poll.procPoll", {"poll_srl":poll_srl,"poll_srl_indexes":poll_srl_indexes}, function(data){
|
exec_json("poll.procPoll", {"poll_srl":poll_srl,"poll_srl_indexes":poll_srl_indexes}, function(data){
|
||||||
if (data.error != 0) {
|
loadRxSmplPollResult(poll_srl);
|
||||||
alert(data.message);
|
$("#poll_" + poll_srl + "_gotoresult_button").css({
|
||||||
}
|
display: "none"
|
||||||
else {
|
});
|
||||||
loadRxSmplPollResult(poll_srl);
|
$("#poll_" + poll_srl + "_result_nobutton").css({
|
||||||
jQuery("#poll_" + poll_srl + "_gotoresult_button").css({
|
display: "block"
|
||||||
display: "none"
|
});
|
||||||
});
|
$("#poll_" + poll_srl + "_result_yesbutton").css({
|
||||||
|
display: "none"
|
||||||
jQuery("#poll_" + poll_srl + "_result_nobutton").css({
|
});
|
||||||
display: "block"
|
|
||||||
});
|
|
||||||
|
|
||||||
jQuery("#poll_" + poll_srl + "_result_yesbutton").css({
|
|
||||||
display: "none"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 항목 추가 함수 */
|
/* 항목 추가 함수 */
|
||||||
function addRxSmplItem(poll_srl, poll_srl_indexes) {
|
function addRxSmplItem(poll_srl, poll_srl_indexes) {
|
||||||
jQuery.exec_json("poll.procPollInsertItem", {"srl":poll_srl, "index_srl":poll_srl_indexes, "title":jQuery("#new_item_" + poll_srl_indexes).val()}, function(data){
|
exec_json("poll.procPollInsertItem", {"srl":poll_srl, "index_srl":poll_srl_indexes, "title":jQuery("#new_item_" + poll_srl_indexes).val()}, function(data){
|
||||||
if (data.error!=0) {
|
$("#poll_" + poll_srl + "_result_button").css({
|
||||||
alert(data.message);
|
display: "none"
|
||||||
}
|
});
|
||||||
else {
|
$("#poll_" + poll_srl + "_result_nobutton").css({
|
||||||
jQuery("#poll_" + poll_srl + "_result_button").css({
|
display: "block"
|
||||||
display: "none"
|
});
|
||||||
});
|
$("#poll_" + poll_srl + "_result_yesbutton").css({
|
||||||
|
display: "none"
|
||||||
jQuery("#poll_" + poll_srl + "_result_nobutton").css({
|
});
|
||||||
display: "block"
|
loadRxSmplPoll(poll_srl);
|
||||||
});
|
|
||||||
|
|
||||||
jQuery("#poll_" + poll_srl + "_result_yesbutton").css({
|
|
||||||
display: "none"
|
|
||||||
});
|
|
||||||
|
|
||||||
loadRxSmplPoll(poll_srl);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 항목 삭제 함수 */
|
/* 항목 삭제 함수 */
|
||||||
function deleteRxSmplItem(poll_srl, poll_srl_indexes, poll_item_srl) {
|
function deleteRxSmplItem(poll_srl, poll_srl_indexes, poll_item_srl) {
|
||||||
jQuery.exec_json("poll.procPollDeleteItem", {"srl":poll_srl, "index_srl":poll_srl_indexes, "item_srl":poll_item_srl}, function(data){
|
exec_json("poll.procPollDeleteItem", {"srl":poll_srl, "index_srl":poll_srl_indexes, "item_srl":poll_item_srl}, function(data){
|
||||||
if (data.error!=0) {
|
$("#poll_" + poll_srl + "_result_button").css({
|
||||||
alert(data.message);
|
display: "none"
|
||||||
}
|
});
|
||||||
else {
|
$("#poll_" + poll_srl + "_result_nobutton").css({
|
||||||
jQuery("#poll_" + poll_srl + "_result_button").css({
|
display: "block"
|
||||||
display: "none"
|
});
|
||||||
});
|
$("#poll_" + poll_srl + "_result_yesbutton").css({
|
||||||
|
display: "none"
|
||||||
jQuery("#poll_" + poll_srl + "_result_nobutton").css({
|
});
|
||||||
display: "block"
|
loadRxSmplPoll(poll_srl);
|
||||||
});
|
|
||||||
|
|
||||||
jQuery("#poll_" + poll_srl + "_result_yesbutton").css({
|
|
||||||
display: "none"
|
|
||||||
});
|
|
||||||
|
|
||||||
loadRxSmplPoll(poll_srl);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -144,7 +121,7 @@ function deleteRxSmplItem(poll_srl, poll_srl_indexes, poll_item_srl) {
|
||||||
function loadRxSmplPoll(poll_srl, data)
|
function loadRxSmplPoll(poll_srl, data)
|
||||||
{
|
{
|
||||||
if (typeof data == 'undefined') {
|
if (typeof data == 'undefined') {
|
||||||
jQuery.exec_json("poll.getPollinfo", {"poll_srl":poll_srl}, function(data){
|
exec_json("poll.getPollinfo", {"poll_srl":poll_srl}, function(data){
|
||||||
loadRxSmplPoll(parseInt(data.poll.poll_srl), data);
|
loadRxSmplPoll(parseInt(data.poll.poll_srl), data);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -188,7 +165,7 @@ function showRxSmplPollMemberNext(poll_srl, poll_item_srl)
|
||||||
|
|
||||||
window.cur_page++;
|
window.cur_page++;
|
||||||
|
|
||||||
jQuery.exec_json("poll.getPollitemInfo", {"poll_srl":poll_srl, "poll_item":poll_item_srl, "page":window.cur_page}, function(data){
|
exec_json("poll.getPollitemInfo", {"poll_srl":poll_srl, "poll_item":poll_item_srl, "page":window.cur_page}, function(data){
|
||||||
initRxSmplTemplete('members', poll_srl);
|
initRxSmplTemplete('members', poll_srl);
|
||||||
var template = window.poll_smpl_template_member;
|
var template = window.poll_smpl_template_member;
|
||||||
var context = Object;
|
var context = Object;
|
||||||
|
|
@ -222,7 +199,7 @@ function showRxSmplPollMember(poll_srl, poll_item_srl)
|
||||||
{
|
{
|
||||||
window.cur_page = 1;
|
window.cur_page = 1;
|
||||||
|
|
||||||
jQuery.exec_json("poll.getPollitemInfo", {"poll_srl":poll_srl, "poll_item":poll_item_srl, "page":window.cur_page}, function(data){
|
exec_json("poll.getPollitemInfo", {"poll_srl":poll_srl, "poll_item":poll_item_srl, "page":window.cur_page}, function(data){
|
||||||
initRxSmplTemplete('members', poll_srl);
|
initRxSmplTemplete('members', poll_srl);
|
||||||
var template = window.poll_smpl_template_member;
|
var template = window.poll_smpl_template_member;
|
||||||
var context = Object;
|
var context = Object;
|
||||||
|
|
@ -264,7 +241,7 @@ function showRxSmplPollMember(poll_srl, poll_item_srl)
|
||||||
function loadRxSmplPollResult(poll_srl, data)
|
function loadRxSmplPollResult(poll_srl, data)
|
||||||
{
|
{
|
||||||
if (typeof data == 'undefined') {
|
if (typeof data == 'undefined') {
|
||||||
jQuery.exec_json("poll.getPollinfo", {"poll_srl":poll_srl}, function(data){
|
exec_json("poll.getPollinfo", {"poll_srl":poll_srl}, function(data){
|
||||||
loadRxSmplPollResult(parseInt(data.poll.poll_srl), data);
|
loadRxSmplPollResult(parseInt(data.poll.poll_srl), data);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -331,4 +308,4 @@ function loadRxSmplPollResult(poll_srl, data)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue