diff options
author | Benaka <diosmosis@users.noreply.github.com> | 2017-09-11 16:07:37 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2017-09-11 16:07:37 +0300 |
commit | 1092e4d7290333591f0f9beead6580a1424bc99f (patch) | |
tree | 5637e6dae005d1f68eae3dd7deaba7b87c522f89 /plugins/CoreHome/angularjs/piwikApp.js | |
parent | c7bea894a7cbb0d70f9c22f5197123935f392475 (diff) |
Updating Angular to version 1.6 (#11857)
* Update angular to 1.6 and ngDialog to 1.3.
* Remove broken Function.bind polyfill from kartograph that clashes w/ angular 1.6.
* $http.method().success/error functions do not exist in angular 1.6, just use standard promise interface.
* Maintain empty hash prefix for existing Piwik links.
See https://docs.angularjs.org/guide/migration#commit-aa077e8 for more info.
* Make sure radio setting values match availableValue values exactly.
Angular 1.6 uses strict equals when matching ng-value values w/ ng-model values, and the available values for boolean radio settings is always '0' or '1'. So we have to make sure the field value is '0'/'1'.
* Feedback form UI test code to remove piwik version string selected wrong element.
* Update expected screenshots (minor changes + unexplained default SMS provider change).
Diffstat (limited to 'plugins/CoreHome/angularjs/piwikApp.js')
-rw-r--r-- | plugins/CoreHome/angularjs/piwikApp.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/CoreHome/angularjs/piwikApp.js b/plugins/CoreHome/angularjs/piwikApp.js index d505e34817..aba5bb47de 100644 --- a/plugins/CoreHome/angularjs/piwikApp.js +++ b/plugins/CoreHome/angularjs/piwikApp.js @@ -16,4 +16,8 @@ 'piwikApp.filter' ]); angular.module('app', []); + + angular.module('piwikApp').config(['$locationProvider', function($locationProvider) { + $locationProvider.hashPrefix(''); + }]); })();
\ No newline at end of file |