twitter bootstrap - Javascript navigation causes bugs in pages -
i creating application allows user input information request transfer booked arriving airport. if user has booking requested, on page load, bootstrap
modal appears , states have information present in system, , confirm change information. if cancel, returned previous page using history.back()
function in javascript.
however, if user presses forward on browser after being brought first page, , returns booking request form, not show modal intended , allows them edit original booking without showing modal confirmation. there way around bug?
i executing modal using following function:
$(function() { $('#booking_modal').modal({ keyboard: false, backdrop: true }); $('#booking_modal button#cancel').on('click', function() { window.location.href = '/arrivals'; }); }).call(this);
Comments
Post a Comment