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:
authorKate Butler <kate@innocraft.com>2019-06-26 05:45:45 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2019-06-26 05:45:45 +0300
commitdf96552cb2699c40744ea46e9b7a493b57c46c39 (patch)
treeb4134231d3cafee030ffaebd72c6b08186e76a18 /plugins/CoreHome/angularjs/common/directives
parentacb892f91c6d0b4b0b7c106269f4b9a2485c318d (diff)
Do "remind me in 90 days" if user closes feedback popup without clicking a button (#14574)
* Send tracking code email from the tracking code generator page * Remove unused var
Diffstat (limited to 'plugins/CoreHome/angularjs/common/directives')
-rw-r--r--plugins/CoreHome/angularjs/common/directives/dialog.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/CoreHome/angularjs/common/directives/dialog.js b/plugins/CoreHome/angularjs/common/directives/dialog.js
index 41ad784bfc..20c9408689 100644
--- a/plugins/CoreHome/angularjs/common/directives/dialog.js
+++ b/plugins/CoreHome/angularjs/common/directives/dialog.js
@@ -48,6 +48,12 @@
}, 0);
}
});
+ } else if (newValue === false && oldValue === true) {
+ // The user closed the dialog, e.g. by pressing Esc or clicking away from it
+ if (attrs.close) {
+ scope.$eval(attrs.close);
+ setTimeout(function () { scope.$apply(); }, 0);
+ }
}
});
}