Changeset - 496bd1bc9a69
[Not reviewed]
stable
0 1 0
Mads Kiilerich - 11 years ago 2015-05-07 16:23:45
madski@unity3d.com
changeset: hack to "reload" page to make #target links work first time

Like 9dfd9d242728 did for pull requests.
1 file changed with 6 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/templates/changeset/changeset.html
Show inline comments
 
@@ -283,7 +283,12 @@ ${self.repo_context_bar('changelog', c.c
 
                  });
 
              e.preventDefault();
 
              }
 
          })
 
          });
 

	
 
          // hack: re-navigate to target after JS is done ... if a target is set and setting href thus won't reload
 
          if (window.location.hash != "") {
 
              window.location.href = window.location.href;
 
          }
 
      })
 

	
 
    </script>
0 comments (0 inline, 0 general)