Merge pull request #608 from tiwariav/bugfix/4377/header_slider_btn_fix
Bugfix/4377 header slider btn fix
This commit is contained in:
		
				commit
				
					
						a00ce7605b
					
				
			
		
					 2 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -1,4 +1,5 @@
 | 
			
		|||
next:
 | 
			
		||||
    * bgfix: [cms] header btn external link fix
 | 
			
		||||
    * #4378: [dcl cms] update CMS Integration to have different content for different domains
 | 
			
		||||
1.6.2: 2018-04-01:
 | 
			
		||||
    * bgfix: [dcl] Fix user activation email style; add/correct some DE text
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -113,10 +113,10 @@
 | 
			
		|||
            } else if (href) {
 | 
			
		||||
                var path = $(this).prop('href').split('#');
 | 
			
		||||
                var currentPath = window.location.origin + window.location.pathname;
 | 
			
		||||
                if (!path[1]) {
 | 
			
		||||
                    window.location = href;
 | 
			
		||||
                } else if (currentPath == path[0]) {
 | 
			
		||||
                if (currentPath == path[0] && path[1]) {
 | 
			
		||||
                    scrollToElement('#' + path[1]);
 | 
			
		||||
                } else {
 | 
			
		||||
                    window.location = href;
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        });
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue