This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
prevent generation of new hash on form submit #5069
Open
Description
similar to #3226
I have a page with a form popup to apply filters to the current page (self submit), currently, the page is added to the history, so hitting the back button return to the same page.
I added a new attribute and a simply hack to skip the creation of a new hash when needed.
--- jquery.mobile.navigation_orig.js Sat Sep 22 19:48:59 2012
+++ jquery.mobile.navigation.js Sat Sep 22 19:52:36 2012
@@ -1284,9 +1284,12 @@
return;
}
+ var updateHistory = !$this.is(":jqmData(history='false')");
+
$.mobile.changePage(
url,
{
+ changeHash: updateHistory,
type: type && type.length && type.toLowerCase() || "get",
data: $this.serialize(),
transition: $this.jqmData( "transition" ),
Just in case you are interested in add this option.