diff --git a/js/jquery.mobile.dialog.js b/js/jquery.mobile.dialog.js index 46f0b635..1627f706 100644 --- a/js/jquery.mobile.dialog.js +++ b/js/jquery.mobile.dialog.js @@ -33,9 +33,9 @@ $.widget( "mobile.dialog", $.mobile.widget, { - if the click was on the close button, or the link has a data-rel="back" it'll go back in history naturally */ this.element - .bind( "click submit", function(e){ + .bind( "vclick submit", function(e){ var $targetel; - if( e.type == "click" ){ + if( e.type == "vclick" ){ $targetel = $(e.target).closest("a"); } else{ diff --git a/js/jquery.mobile.forms.button.js b/js/jquery.mobile.forms.button.js index 41efa1ec..d6dc6ff0 100644 --- a/js/jquery.mobile.forms.button.js +++ b/js/jquery.mobile.forms.button.js @@ -37,7 +37,7 @@ $.widget( "mobile.button", $.mobile.widget, { //add hidden input during submit var type = $el.attr('type'); if( type !== 'button' && type !== 'reset' ){ - $el.click(function(){ + $el.bind("vclick", function(){ var $buttonPlaceholder = $("", {type: "hidden", name: $el.attr("name"), value: $el.attr("value")}) .insertBefore($el);