mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-07 05:04:58 -05:00
16 lines
386 B
JavaScript
16 lines
386 B
JavaScript
(function() {
|
|
var $ = jQuery;
|
|
|
|
var exports = window.Shiny = window.Shiny || {};
|
|
|
|
var origPushState = window.history.pushState;
|
|
window.history.pushState = function() {
|
|
var result = origPushState.apply(this, arguments);
|
|
$(document).trigger("pushstate");
|
|
return result;
|
|
};
|
|
|
|
$(document).on('submit', 'form:not([action])', function(e) {
|
|
e.preventDefault();
|
|
});
|