Commit c3b633ec authored by Sven Franck's avatar Sven Franck

JQM: add allowSamePageTransition option

parent 87fecb2f
...@@ -12,9 +12,9 @@ define([ ...@@ -12,9 +12,9 @@ define([
value, runSearch; value, runSearch;
runSearch = function (value) { runSearch = function (value) {
// only go to search.html, if we are currently not on it, else only trigger hashchange
$.mobile.changePage( "search.html", { $.mobile.changePage( "search.html", {
"transition": "slide", "transition": "slide",
"allowSamePageTransition": true,
"data": { "data": {
"search": value "search": value
} }
...@@ -23,6 +23,8 @@ define([ ...@@ -23,6 +23,8 @@ define([
filter.on("filterbarbeforefilter", function (e, data) { filter.on("filterbarbeforefilter", function (e, data) {
value = data.input.value; value = data.input.value;
// stop JQM
e.preventDefault();
if ( value ) { if ( value ) {
// now we can autocomplete... // now we can autocomplete...
...@@ -41,7 +43,10 @@ define([ ...@@ -41,7 +43,10 @@ define([
// question will be how to store information... // question will be how to store information...
// if we follow the DC scheme, we have some core metadata and the // if we follow the DC scheme, we have some core metadata and the
// rest must be stored in an attachment. // rest must be stored in an attachment.
// and jIO
} }
}) })
.on( "filterbarcreate", function( e, ui ) { .on( "filterbarcreate", function( e, ui ) {
var uuid = $(e.target).data("mobileFilterbar").uuid, var uuid = $(e.target).data("mobileFilterbar").uuid,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment