changed notification triggers from wrapped functions to simple function

calls
This commit is contained in:
DennisSchiefer
2012-07-05 13:53:07 +01:00
parent efa959d112
commit 8f6cd99ff6
8 changed files with 188 additions and 173 deletions
+3 -2
View File
@@ -48,8 +48,9 @@ init: function() {
// set default language
OSRM.Localization.setLanguage( OSRM.DEFAULTS.LANGUAGE );
},
setLanguageWrapper: function(language) {
OSRM.Localization.setLanguage(language); // wrapping required as trigger function for suppressing notifications
setLanguageWrapper: function(language) { // wrapping required to correctly prevent localization tooltip from showing
OSRM.GUI.deactivateTooltip( "localization" );
OSRM.Localization.setLanguage(language);
},
setLanguage: function(language) {
// change value of both language selectors