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:
authorThomas Steur <thomas.steur@gmail.com>2015-06-02 04:09:15 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-06-17 08:09:13 +0300
commit18501381cec766aa729fdc7bdcd282c90a7be45f (patch)
treecf7cfe213d72cbd57ec86e570a5e2a7c4dc55815 /plugins/CoreHome/angularjs/common/directives
parent1f707dd3c9422494b7cf844591079c11c651158c (diff)
refs #7893 added possibility to measure mobile apps
Diffstat (limited to 'plugins/CoreHome/angularjs/common/directives')
-rw-r--r--plugins/CoreHome/angularjs/common/directives/dialog.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/CoreHome/angularjs/common/directives/dialog.js b/plugins/CoreHome/angularjs/common/directives/dialog.js
index e711d3bc29..cce88292df 100644
--- a/plugins/CoreHome/angularjs/common/directives/dialog.js
+++ b/plugins/CoreHome/angularjs/common/directives/dialog.js
@@ -29,7 +29,9 @@
element.css('display', 'none');
element.on( "dialogclose", function() {
- scope.$apply($parse(attrs.piwikDialog).assign(scope, false));
+ setTimeout(function () {
+ scope.$apply($parse(attrs.piwikDialog).assign(scope, false));
+ }, 0);
});
scope.$watch(attrs.piwikDialog, function(newValue, oldValue) {
@@ -37,6 +39,7 @@
piwik.helper.modalConfirm(element, {yes: function() {
if (attrs.yes) {
scope.$eval(attrs.yes);
+ setTimeout(function () { scope.$apply(); }, 0);
}
}});
}