Commit a59eecc2 authored by Gabriel Monnerat's avatar Gabriel Monnerat

fix selector and remove useless quotes

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44448 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 892da3f9
...@@ -211,7 +211,7 @@ $(document).ready(function() { \n ...@@ -211,7 +211,7 @@ $(document).ready(function() { \n
$("#gridcontainer").reload();\n $("#gridcontainer").reload();\n
}); \n }); \n
//Add a new event\n //Add a new event\n
$("#faddbtn").click(function() {\n $("span.addcal").click(function() {\n
$("div#new_event_dialog").dialog({\n $("div#new_event_dialog").dialog({\n
title: "Create New Event",\n title: "Create New Event",\n
buttons: {\n buttons: {\n
...@@ -228,7 +228,7 @@ $(document).ready(function() { \n ...@@ -228,7 +228,7 @@ $(document).ready(function() { \n
var url ="WebSection_newEvent";\n var url ="WebSection_newEvent";\n
var date = new Date();\n var date = new Date();\n
$("div#new_event_dialog").load(url, {}, function(){\n $("div#new_event_dialog").load(url, {}, function(){\n
$("input.start_date_field[name=\'start_date_month\'], input.stop_date_field[name=\'stop_date_month\']").attr("value", ""+date.getMonth()+1);\n $("input.start_date_field[name=\'start_date_month\'], input.stop_date_field[name=\'stop_date_month\']").attr("value", date.getMonth()+1);\n
$("input.start_date_field[name=\'start_date_day\'], input.stop_date_field[name=\'stop_date_day\']").attr("value", date.getDate());\n $("input.start_date_field[name=\'start_date_day\'], input.stop_date_field[name=\'stop_date_day\']").attr("value", date.getDate());\n
$("input.start_date_field[name=\'start_date_hour\'], input.stop_date_field[name=\'stop_date_hour\']").attr("value", date.getHours());\n $("input.start_date_field[name=\'start_date_hour\'], input.stop_date_field[name=\'stop_date_hour\']").attr("value", date.getHours());\n
$("input.start_date_field[name=\'start_date_minute\'], input.stop_date_field[name=\'stop_date_minute\']").attr("value", date.getMinutes());\n $("input.start_date_field[name=\'start_date_minute\'], input.stop_date_field[name=\'stop_date_minute\']").attr("value", date.getMinutes());\n
......
305 306
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment