diff --git a/widget/controllers/widget.event.controller.js b/widget/controllers/widget.event.controller.js index 7cdd3aa..1f6b3d0 100644 --- a/widget/controllers/widget.event.controller.js +++ b/widget/controllers/widget.event.controller.js @@ -153,7 +153,10 @@ eventEndDate = new Date(event.data.startDate + 3600000); //add hour to start date to derive end date } if (WidgetEvent.getAddedEventToLocalStorage(event.id) != -1) { - alert("Event already added in calendar"); + buildfire.dialog.alert({ + title: ' ', + message: "Event already added in calendar", + }); } console.log("inCal3:", eventEndDate, event); if (buildfire.device && buildfire.device.calendar && WidgetEvent.getAddedEventToLocalStorage(event.id) == -1) { @@ -225,7 +228,10 @@ else { console.log('worked ' + JSON.stringify(result)); WidgetEvent.setAddedEventToLocalStorage(event.id); - alert("Event added to calendar"); + buildfire.dialog.alert({ + title: ' ', + message: "Event added to calendar", + }); $scope.$digest(); } } diff --git a/widget/controllers/widget.home.controller.js b/widget/controllers/widget.home.controller.js index 8aad982..2f410ba 100644 --- a/widget/controllers/widget.home.controller.js +++ b/widget/controllers/widget.home.controller.js @@ -471,7 +471,10 @@ eventEndDate = eventStartDate; } if (WidgetHome.getAddedEventToLocalStorage(event.id) != -1) { - alert("Event already added in calendar"); + buildfire.dialog.alert({ + title: ' ', + message: "Event already added in calendar", + }); } console.log("inCal3:", eventEndDate, event, eventStartDate); if (buildfire.device && buildfire.device.calendar && WidgetHome.getAddedEventToLocalStorage(event.id) == -1) { @@ -505,7 +508,10 @@ WidgetHome.swiped[i] = false; console.log('worked ' + JSON.stringify(result)); WidgetHome.setAddedEventToLocalStorage(event.id); - alert("Event added to calendar"); + buildfire.dialog.alert({ + title: ' ', + message: "Event added to calendar", + }); $scope.$digest(); } }