Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CoreHome/angularjs/notification/notification.controller.js')
-rw-r--r--plugins/CoreHome/angularjs/notification/notification.controller.js34
1 files changed, 0 insertions, 34 deletions
diff --git a/plugins/CoreHome/angularjs/notification/notification.controller.js b/plugins/CoreHome/angularjs/notification/notification.controller.js
deleted file mode 100644
index 80497e940f..0000000000
--- a/plugins/CoreHome/angularjs/notification/notification.controller.js
+++ /dev/null
@@ -1,34 +0,0 @@
-/*!
- * Matomo - free/libre analytics platform
- *
- * @link https://matomo.org
- * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
- */
-(function () {
- angular.module('piwikApp').controller('NotificationController', NotificationController);
-
- NotificationController.$inject = ['piwikApi'];
-
- function NotificationController(piwikApi) {
- /**
- * Marks a persistent notification as read so it will not reappear on the next page
- * load.
- */
- this.markNotificationAsRead = function (notificationId) {
- if (!notificationId) {
- return;
- }
-
- piwikApi.withTokenInUrl();
- piwikApi.post(
- { // GET params
- module: 'CoreHome',
- action: 'markNotificationAsRead'
- },
- { // POST params
- notificationId: notificationId
- }
- );
- };
- }
-})(); \ No newline at end of file