Permalink
Browse files

\#9 fix README luring us into an IE compatibility trap

  • Loading branch information...
1 parent 0319362 commit 4bd80b83115f41201a38af3182df5d33205ffffe @tardate committed Jan 7, 2013
Showing with 23 additions and 23 deletions.
  1. +1 −1 CHANGELOG.rdoc
  2. +22 −22 README.rdoc
View
@@ -1,6 +1,6 @@
== 0.1.1 released 2011-03-20
-* Patch for javascript compatibility in oldre IF (thanks to nfarina)
+* Patch for javascript compatibility in older IE (thanks to nfarina)
== 0.1.0 released 2010-10-03
View
@@ -1,6 +1,6 @@
= jQuery UI AddToCal widget v0.1.0
-AddToCal is a jQuery UI widget that provides "Add to Calendar" functionality for any website.
+AddToCal is a jQuery UI widget that provides "Add to Calendar" functionality for any website.
Given event details, it allows users to add the event to any supported calendar system.
Supported calendar systems:
@@ -35,32 +35,32 @@ Here's an example of the minimal initialisation require. This example attaches t
<script type='text/javascript'>
$(document).ready(function() {
-
+
$('.addtocal').AddToCal({
- // ical and vcal require an ics or vcs file to be served.
+ // ical and vcal require an ics or vcs file to be served.
// Disable these features if reqired (as a result the 30boxes, iCal and vCalendar menu links will not appear)
icalEnabled:false,
vcalEnabled:false,
-
+
getEventDetails: function( element ) {
... [implement whatever is required to parse 'element' into the required event structure] ...
-
+
// return the required event structure
- return {
+ return {
webcalurl: null,
icalurl: null,
- vcalurl: null,
- start: start,
- end: end,
- title: title,
- details: details,
- location: null,
+ vcalurl: null,
+ start: start,
+ end: end,
+ title: title,
+ details: details,
+ location: null,
url: null
- };
- },
+ };
+ }
});
-
+
});
</script>
@@ -70,14 +70,14 @@ The structure returned from getEventDetails has the following members:
* webcalurl: full url to webcal resource (if supported) e.g. webcal://mydomain/events/1.ics
* icalurl: full url to iCal resource (if supported) e.g. http://mydomain/events/1.ics
* vcalurl: full url to vCalendar resource (if supported) e.g. http://mydomain/events/1.vcs
-* start: start time of the event (javascript date object)
-* end: end time of the event (javascript date object)
-* title: event title text
-* details: event details text
-* location: event location text
+* start: start time of the event (javascript date object)
+* end: end time of the event (javascript date object)
+* title: event title text
+* details: event details text
+* location: event location text
* url: full url to information about the event e.g. http://mydomain/events/1.html
-
-
+
+
== Source
For more information and source files, see the project's {github repository}[http://github.com/tardate/jquery.addtocalendar].

0 comments on commit 4bd80b8

Please sign in to comment.