From a119e14ad88bf690f755773b64f08329d5dfbf86 Mon Sep 17 00:00:00 2001 From: alaan_smadi Date: Wed, 3 May 2023 02:16:23 +0300 Subject: [PATCH 1/3] remove buildfire from alert --- widget/controllers/widget.event.controller.js | 10 ++++++++-- widget/controllers/widget.home.controller.js | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/widget/controllers/widget.event.controller.js b/widget/controllers/widget.event.controller.js index 7cdd3aa..4a7c753 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..943a163 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(); } } From 7016e0d8eb91cce82c5d0769bc93b8ee304d0846 Mon Sep 17 00:00:00 2001 From: alaan_smadi Date: Wed, 3 May 2023 02:21:16 +0300 Subject: [PATCH 2/3] fix cotes --- widget/controllers/widget.home.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/controllers/widget.home.controller.js b/widget/controllers/widget.home.controller.js index 943a163..a21390d 100644 --- a/widget/controllers/widget.home.controller.js +++ b/widget/controllers/widget.home.controller.js @@ -509,7 +509,7 @@ console.log('worked ' + JSON.stringify(result)); WidgetHome.setAddedEventToLocalStorage(event.id); buildfire.dialog.alert({ - title: " ", + title: ' ', message: "Event added to calendar", }); $scope.$digest(); From 1ee41f81d9ad2ca8a31981b0ebcb9d345af78819 Mon Sep 17 00:00:00 2001 From: alaan_smadi Date: Wed, 3 May 2023 02:22:41 +0300 Subject: [PATCH 3/3] fix cotes --- widget/controllers/widget.event.controller.js | 2 +- widget/controllers/widget.home.controller.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/widget/controllers/widget.event.controller.js b/widget/controllers/widget.event.controller.js index 4a7c753..1f6b3d0 100644 --- a/widget/controllers/widget.event.controller.js +++ b/widget/controllers/widget.event.controller.js @@ -229,7 +229,7 @@ console.log('worked ' + JSON.stringify(result)); WidgetEvent.setAddedEventToLocalStorage(event.id); buildfire.dialog.alert({ - title: " ", + 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 a21390d..2f410ba 100644 --- a/widget/controllers/widget.home.controller.js +++ b/widget/controllers/widget.home.controller.js @@ -472,7 +472,7 @@ } if (WidgetHome.getAddedEventToLocalStorage(event.id) != -1) { buildfire.dialog.alert({ - title: " ", + title: ' ', message: "Event already added in calendar", }); }