Subversion Repositories eFlore/Applications.cel

Rev

Rev 2656 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2656 Rev 2675
Line 117... Line 117...
117
		@Override
117
		@Override
118
		public void onChange(ChangeEvent event) {
118
		public void onChange(ChangeEvent event) {
119
			int indexLangue = listeLangues.getSelectedIndex();
119
			int indexLangue = listeLangues.getSelectedIndex();
120
			String urlCourante = Window.Location.getHref();
120
			String urlCourante = Window.Location.getHref();
121
			String urlBase = urlCourante;
121
			String urlBase = urlCourante;
122
			if(urlCourante.contains("?")) {
122
			if(urlBase.contains("?")) {
123
				urlBase = urlCourante.substring(0, urlCourante.indexOf("?"));
123
				urlBase = urlBase.substring(0, urlCourante.indexOf("?"));
-
 
124
			}
-
 
125
			if(urlBase.contains("#")) {
-
 
126
				urlBase = urlBase.replace("#", "");
124
			}
127
			}
125
			String urlLangue = urlBase+"?lang="+listeLangues.getValue(indexLangue);
128
			String urlLangue = urlBase+"?lang="+listeLangues.getValue(indexLangue);
126
			Window.Location.replace(urlLangue);
129
			Window.Location.replace(urlLangue);
Line 127... Line 130...
127
			
130