Skip to content

Commit

Permalink
OVT-7450: filtteröidään IE 10:n generoimat ylimääräiset input-eventit…
Browse files Browse the repository at this point in the history
  • Loading branch information
Riku Salminen committed May 8, 2014
1 parent f778a3f commit 39ce1f4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions organisaatio-ui/src/main/webapp/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,21 @@ app.config(function($routeProvider, $httpProvider) {
otherwise({redirectTo:'/organisaatiot'});
});

// https://github.com/angular/angular.js/issues/2614
app.config(['$provide', function($provide) {
$provide.decorator('$sniffer', ['$delegate', function($sniffer) {
var msie = parseInt((/msie (\d+)/.exec(angular.lowercase(navigator.userAgent)) || [])[1], 10);
var _hasEvent = $sniffer.hasEvent;
$sniffer.hasEvent = function(event) {
if (event === 'input' && msie === 10) {
return false;
}
_hasEvent.call(this, event);
};
return $sniffer;
}]);
}]);

app.run(function(OrganisaatioInitAuth, UserInfo) {
// Tehdään autentikoitu get servicelle
// Näin kierretään ongelma: "CAS + ensimmäinen autentikoitia vaativa POST kutsu"
Expand Down

0 comments on commit 39ce1f4

Please sign in to comment.