Skip to content

Commit

Permalink
Fix to append hash if no hash yet
Browse files Browse the repository at this point in the history
  • Loading branch information
j15e committed Mar 20, 2014
1 parent b92f03a commit a0d2c26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ var Schedule = ( function( $, window, document, undefined ) {
var $this = $(this),
href = $(this).attr('href'),
currentHash = href.lastIndexOf('#'),
url = href.substring(0, currentHash);
url = (currentHash == -1) ? href : href.substring(0, currentHash);

$this.attr('href', url + hash);
});
Expand Down

0 comments on commit a0d2c26

Please sign in to comment.