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:
 | 
					next:
 | 
				
			||||||
 | 
					    * bgfix: [cms] header btn external link fix
 | 
				
			||||||
    * #4378: [dcl cms] update CMS Integration to have different content for different domains
 | 
					    * #4378: [dcl cms] update CMS Integration to have different content for different domains
 | 
				
			||||||
1.6.2: 2018-04-01:
 | 
					1.6.2: 2018-04-01:
 | 
				
			||||||
    * bgfix: [dcl] Fix user activation email style; add/correct some DE text
 | 
					    * bgfix: [dcl] Fix user activation email style; add/correct some DE text
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -113,10 +113,10 @@
 | 
				
			||||||
            } else if (href) {
 | 
					            } else if (href) {
 | 
				
			||||||
                var path = $(this).prop('href').split('#');
 | 
					                var path = $(this).prop('href').split('#');
 | 
				
			||||||
                var currentPath = window.location.origin + window.location.pathname;
 | 
					                var currentPath = window.location.origin + window.location.pathname;
 | 
				
			||||||
                if (!path[1]) {
 | 
					                if (currentPath == path[0] && path[1]) {
 | 
				
			||||||
                    window.location = href;
 | 
					 | 
				
			||||||
                } else if (currentPath == path[0]) {
 | 
					 | 
				
			||||||
                    scrollToElement('#' + path[1]);
 | 
					                    scrollToElement('#' + path[1]);
 | 
				
			||||||
 | 
					                } else {
 | 
				
			||||||
 | 
					                    window.location = href;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue