Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. addAppointment = function(e, t, n) {
  2. if ("undefined" != typeof Windows) {
  3. var o = new Windows.ApplicationModel.Appointments.Appointment;
  4. o.allDay = !0, o.startTime = new Date(i(t, "dddd, Do MMM YYYY").format()), o.subject = "Trip to " + n, Windows.ApplicationModel.Appointments.AppointmentManager.showAddAppointmentAsync(o, {
  5. x: 300,
  6. y: 0,
  7. width: 600,
  8. height: 100
  9. }).done(function(t) {
  10. t ? (console.log("created!"), e()) : console.log("issue")
  11. })
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement