Skip to content
Snippets Groups Projects
Commit 8cbe66b5 authored by Georg Ehrke's avatar Georg Ehrke
Browse files

bug fixes at new event form (categorie and calendar)

parent 58129f9a
Branches
No related tags found
No related merge requests found
......@@ -27,8 +27,7 @@ if(!OC_USER::isLoggedIn()) {
$title = $_POST["title"];
$location = $_POST["location"];
$cat = $_POST["cat"];
$cal = $_POST["cal"];
$cal = "1";
$cal = str_replace("option_","", $_POST["cal"]);
$allday = $_POST["allday"];
$from = $_POST["from"];
$fromtime = $_POST["fromtime"];
......
......@@ -153,8 +153,8 @@
function validate_newevent_form(){
var newevent_title = document.getElementById("newevent_title").value;
var newevent_location = document.getElementById("newevent_location").value;
var newevent_cat;// = document.getElementById("newevent_cat").options[document.getElementById("newevent_cat").selectedIndex].value;
var newevent_cal;// = document.getElementById("newevent_cal").options[document.getElementById("newevent_cal").selectedIndex].value;
var newevent_cat = document.getElementById("formcategorie_select").options[document.getElementById("formcategorie_select").selectedIndex].value;
var newevent_cal = document.getElementById("formcalendar_select").options[document.getElementById("formcalendar_select").selectedIndex].id;
var newevent_allday = document.getElementById("newcalendar_allday_checkbox").checked;
var newevent_from = document.getElementById("from").value;
var newevent_fromtime = document.getElementById("fromtime").value;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment