5 lines
177 B
JavaScript
5 lines
177 B
JavaScript
(function($) {
|
|
$.history.replace = function(hash) {
|
|
window.location.replace(window.location.href.substring(0, window.location.href.indexOf("#")) + "#" + hash);
|
|
}
|
|
})(jQuery); |