thekingsimo / jquery-week-calendar

Automatically exported from code.google.com/p/jquery-week-calendar
0 stars 0 forks source link

Same eventID on new event after refresh #60

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. when I click for new event after refresh, I take same Id "10"

What is the expected output? What do you see instead?
An event unique ID for new event for db

What version of the product are you using? On what operating system?
week calendar V. 1.20, kubuntu-9.04, firefox

Please provide any additional information below.
I not know if correct this beaviour but I need save events on mysql.
I think new event must have unique id based on number or other thing.

Great project!
My regards
Giuseppe Benigno

Original issue reported on code.google.com by giuseppe...@gmail.com on 5 Aug 2009 at 6:47

GoogleCodeExporter commented 8 years ago
just give them a unique id using  eventNew : function(calEvent, $event) {} 
In this function make some sort of call to your DB to grab a new id

Original comment by rdelan...@gmail.com on 6 Aug 2009 at 7:49

GoogleCodeExporter commented 8 years ago
hi rdelangen, thank you for support.
have you a hint where see code? I'm new in js.

Original comment by giuseppe...@gmail.com on 7 Aug 2009 at 3:43

GoogleCodeExporter commented 8 years ago
That's correct, events should be assigned an id after you persist them to your
backend server.  

For future questions, please direct them to the new google group.
http://groups.google.com/group/jquery-week-calendar If we determine that it's a
defect we can move it to the issue tracker. 

cheers,
rob

Original comment by robmo...@gmail.com on 9 Aug 2009 at 11:49