From c85a9c3d00542ce220bfbab67380d4a5d168f968 Mon Sep 17 00:00:00 2001 From: Kin Blas Date: Mon, 7 Mar 2011 09:27:57 -0800 Subject: [PATCH 1/4] Fix for issue 1198. - Added the mobile namespace to the pageContainer reference. I think we may have missed this during the sweep when we added the mobile namespace. --- js/jquery.mobile.fixHeaderFooter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.mobile.fixHeaderFooter.js b/js/jquery.mobile.fixHeaderFooter.js index 879cff0f..8273509a 100644 --- a/js/jquery.mobile.fixHeaderFooter.js +++ b/js/jquery.mobile.fixHeaderFooter.js @@ -119,7 +119,7 @@ $.fixedToolbars = (function(){ stickyFooter.addClass('ui-sticky-footer').before(footer); } footer.addClass('ui-footer-duplicate'); - stickyFooter.appendTo($.pageContainer).css('top',0); + stickyFooter.appendTo($.mobile.pageContainer).css('top',0); setTop(stickyFooter); } }); @@ -260,4 +260,4 @@ $.fixedToolbars = (function(){ }; })(); -})(jQuery); \ No newline at end of file +})(jQuery); From ea77d0370d8c51a0003f2416b3cd4055d1995fba Mon Sep 17 00:00:00 2001 From: Kin Blas Date: Tue, 8 Mar 2011 10:56:36 -0800 Subject: [PATCH 2/4] Fix for issue 1207 - Can't revisit the same page after visitin it, hitting the back button and clicking its link - This was a regression introduced by 20dce2ce. Added check for undefined newActiveIndex so we can tell the difference between the URL not being found, and a zero index. --- js/jquery.mobile.navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index 55ccfb23..ab49ea6b 100644 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -305,7 +305,7 @@ }); // save new page index - urlHistory.activeIndex = newActiveIndex ? newActiveIndex : urlHistory.activeIndex; + urlHistory.activeIndex = newActiveIndex !== undefined ? newActiveIndex : urlHistory.activeIndex; //if it's a back, use reverse animation if( back ){ From 9bd530b1fab85edcdb20ce0d0df131a4ca42c168 Mon Sep 17 00:00:00 2001 From: toddparker Date: Wed, 9 Mar 2011 15:35:45 -0500 Subject: [PATCH 3/4] Added a new demo page showing how adding data-role="none" to form elements and buttons will show the default, native control. Added link to this page from the forms index. Good news - the data-role="none" attribute seems to work great, no issues found. --- docs/forms/forms-all-native.html | 208 +++++++++++++++++++++++++++++++ docs/forms/index.html | 1 + 2 files changed, 209 insertions(+) create mode 100755 docs/forms/forms-all-native.html diff --git a/docs/forms/forms-all-native.html b/docs/forms/forms-all-native.html new file mode 100755 index 00000000..4b6ff500 --- /dev/null +++ b/docs/forms/forms-all-native.html @@ -0,0 +1,208 @@ + + + + + jQuery Mobile Docs - Forms + + + + + + + +
+ +
+

Forms

+ Home +
+ +
+ +
+ +

Native form elements & buttons

+ +

Although the framework automatically enhances form elements and buttons into touch input optimized controls to streamline development, it's easy to tell jQuery Mobile to leave these elements alone so the standard, native control can be used instead.

+

Adding the data-role="none" attribute to any form or button element tells the framework to not apply any enhanced styles or scripting. The examples below all have this attribute in place to demonstrate the effect. You may need to write custom styles to lay out your form controls because we try to leave all the default styling intact.

+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+
+ Choose as many snacks as you'd like: + + + + + + + + + + + +
+
+ +
+
+ Font styling: + + + + + + + + +
+
+ +
+
+ Choose a pet: + + + + + + + + + + + +
+
+ +
+
+ Layout view: + + + + + + +
+
+ +
+ + +
+ +
+ + +
+ + + + +

Button based button:

+ + +

Input type="button" based button:

+ + +

Input type="submit" based button:

+ + +

Input type="reset" based button:

+ + +

Input type="image" based button:

+ + +
+ +
+
+ + + diff --git a/docs/forms/index.html b/docs/forms/index.html index 2d621675..42024885 100755 --- a/docs/forms/index.html +++ b/docs/forms/index.html @@ -32,6 +32,7 @@
  • Checkboxes
  • Select menus
  • Theming forms
  • +
  • Native form elements
  • Submitting forms
  • Plugin methods
  • From d612edd126f478769b7b34b60d2f8a4f5a6a476d Mon Sep 17 00:00:00 2001 From: Kin Blas Date: Wed, 9 Mar 2011 17:23:36 -0800 Subject: [PATCH 4/4] Fix for Issue 1195 - base href getting incorrectly set to include extra "/" - Added code to base.set() that strips any leading slash from the path returned from path.get(). --- js/jquery.mobile.navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index ab49ea6b..2d1630a3 100644 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -178,7 +178,7 @@ //set the generated BASE element's href attribute to a new page's base path set: function( href ){ - base.element.attr('href', docBase + path.get( href )); + base.element.attr('href', docBase + path.get( href ).replace(/^\//, "")); }, //set the generated BASE element's href attribute to a new page's base path