Commit 76154a80 authored by Gabriel Monnerat's avatar Gabriel Monnerat

refactor code to display the event on board when the start and the end date is the same

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42762 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c6f97e88
......@@ -88,11 +88,15 @@ if request_type == "list":\n
for event in event_list:\n
start = event.getStartDate().strftime("%m/%d/%Y %H:%M")\n
end = event.getStopDate().strftime("%m/%d/%Y %H:%M")\n
if event.getStartDate().Date() == event.getStopDate().Date():\n
display_minimized = 0\n
else:\n
display_minimized = 1\n
event_dict["events"].append([random.randrange(10000, 99999),\n
event.getTitle(),\n
start,\n
end,\n
random.randrange(0,1),1,0,\n
0, display_minimized, 0,\n
random.randrange(-1,13), 1, \'\', event.getPortalType()])\n
return dumps(event_dict)\n
\n
......
......@@ -305,7 +305,7 @@ $().ready(function(){\n
});\n
$("div#preference_dialog").dialog({\n
autoOpen: false,\n
height: 460,\n
height: 480,\n
width: 330,\n
modal:true,\n
buttons: {\n
......
199
\ No newline at end of file
200
\ 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