This commit is contained in:
Nael 2014-01-30 13:54:51 +01:00
parent b445c316dd
commit 5742dded64
6 changed files with 2 additions and 6 deletions

View File

@ -7,7 +7,6 @@ class api_uvote extends \SYSTEM\API\api_login {
}
public static function call_vote_action_feedback($feedback) {
new \SYSTEM\LOG\INFO($feedback);
return votes::write_feedback($feedback);
}

View File

@ -114,8 +114,6 @@ class votes {
public static function open_vote($poll_ID){
new \SYSTEM\LOG\INFO($poll_ID);
$vote = votes::getVoteOfGroup($poll_ID);
new INFO(print_r($vote, true));
$vars = array('vote_text' => $vote['text'], 'vote_title' => $vote['title'], 'vote_init' => $vote['initiative'], 'poll_ID' => $vote['ID'], 'time_end' => $vote['time_end']);

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 KiB

View File

@ -43,7 +43,6 @@ class default_page extends SYSTEM\PAGE\Page {
'time_end' => $vote['time_end']);
$result .= SYSTEM\PAGE\replace::replaceFile(SYSTEM\SERVERPATH(new PPAGE(),'default_page/vote.tpl'), $vars);
}
new \SYSTEM\LOG\INFO("generated votelist successfully");
return $result;
}

View File

@ -1,6 +1,7 @@
function init_saimod_uvote_vote_edit(){
$('#vote_data_submit').click(function() {
var data = new Array();
var data = new Array();
alert("bla")
$.ajax({
url: SAI_ENDPOINT+'sai_mod=.SYSTEM.SAI.saimod_uvote_vote_edit&action='+ vote,
contentType : "application/json; charset=utf-8",

View File

@ -21,6 +21,5 @@ class saimod_uvote_vote_edit extends \SYSTEM\SAI\SaiModule {
public static function sai_mod_saimod_uvote_vote_edit_flag_js(){return \SYSTEM\LOG\JsonResult::toString(array(
\SYSTEM\WEBPATH(new PSAI(),'saimod_uvote_vote_edit/saimod_uvote_vote_edit.js')
));}
public static function sai_mod_saimod_uvote_data_input_flag_css(){}
}