src/cm/media/js/site/c_text_view_comments.js
changeset 186 04644502cb79
parent 184 0d9a2a99ffda
child 217 613b2f29be54
equal deleted inserted replaced
185:3cf44631da24 186:04644502cb79
   191 			href = a.get("href");
   191 			href = a.get("href");
   192 		}
   192 		}
   193 		
   193 		
   194 		if (a != null && href != null) {
   194 		if (a != null && href != null) {
   195 			//alert(window.location) ;
   195 			//alert(window.location) ;
   196 			var loc = (new String(window.location)) ;
   196 			var clean_window_location = window.location.href ;
   197 			
   197 			
   198 			var clean_window_location = loc ;
   198 			var ind = clean_window_location.indexOf('#') ;
   199 			
       
   200 			var ind = loc.indexOf('#') ;
       
   201 			if (ind != -1)
   199 			if (ind != -1)
   202 				clean_window_location = loc.substring(0, ind) ;
   200 				clean_window_location = clean_window_location.substring(0, ind) ;
   203 			
   201 			
   204 			if (href.indexOf(clean_window_location) == -1q ) {
   202 			if (href.indexOf(clean_window_location) == -1 ) {
   205 				window.open(a.get("href"));
   203 				window.open(a.get("href"));
   206 				e.preventDefault(); ;
   204 				e.preventDefault(); ;
   207 			}
   205 			}
   208 		}
   206 		}
   209 	} ;
   207 	} ;