Announcing jQuery Mobile 1.2.1

Posted on by

The jQuery Mobile team is happy to announce 1.2.1. This is the first maintenance release for 1.2 and contains fixes throughout the library. Try it now!

Demos & docs | Download & CDN | Change log

Download

CDN-Hosted JavaScript:

CDN-Hosted CSS:

 

Copy-and-Paste Snippet for CDN-hosted files (recommended):

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.1/jquery.mobile-1.2.1.min.css" />
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="http://code.jquery.com/mobile/1.2.1/jquery.mobile-1.2.1.min.js"></script>

 

ZIP File:
If you want to host the files yourself you can download a zip of all the files:

Microsoft CDN hosted jQuery Mobile files:

Fork jQuery Mobile on GitHub
https://github.com/jquery/jquery-mobile

 

Change log

Blur

Iphone : Go button does not close the keyboard with Data filter
(Issue #3303) – Blur the search field on submit – (cherry picked from commit 336db34e031b0815c807554796519cd34d28c153)

Button

IE9 , if custom SELECT button is on the right border of the window, it expand the select menu over the whole window width
(Issue #4577) – Button: width auto for div’s with class ui-btn-text to prevent custom selects breaking on IE.

Checkboxradio

Request: mini-Option in checkboxradio & textinput
(Issue #4070) – Checkboxradio: Allow to set option mini programmatically.

Collapsible

Collapsible iconpos via mobileinit differs from documentation.
(Issue #4899) (cherry picked from commit 8756bd2d2b49c0ba4881e57d3c8282f3153a81c1)

Dialog

Fix from #5382 causes failure: Full page dialog does not receive rounded corners – remove the fix and the rounded corners come back
(Issue #5383) – Dialog: Adjusted the fix for #5382 for 1.2.x. Thanks @ShamimIslam !

Close button of full page dialog fails silently when popup exists on page (closed or open)
(Issue #5382) – Dialog: Append close button to first found header to prevent a close button being added to popup on same page as well.

Fixed Toolbars

Merge pull request #5292 from arschmitz/issue-3880

Fixed toolbars: higher specifity for border left and right 0 rule. Fixes #5155
(Issue #5155) – Fixed toolbars: higher specifity for border left and right 0 rule.

Listview

List autodividers: use trim() to avoid issues with newlines and spaces in markup. Thanks @demonslord !
(Issue #5197) – List autodividers: use trim() to avoid issues with newlines and spaces in markup. Thanks @demonslord !

Listview option filter can’t be set programmatically
(Issue #5245) – Listview: make it possible to set option filter programmatically.

Loader

Wrap functions bound to events in $.proxy at binding time, and pass then unwrapped at unbinding time

Navigation

Add check that active.url actually exists

Popup

Add a check to not add ui-popover-container if it’s already on the page
(Issue #4661) – [select] Implement _destroy() – (cherry picked from commit 7273a5ea967ac8df12c9e12556e101f173ae2122)

Chrome popup stops launching if transition is “slideup”
(Issue #5094) – [popup] Re-introduce interruptible transitions

Merge pull request #5145 from jerone/master

Modify test that checks whether popup emits "popupafterclose" upon destroy() to first open the popup

"detached retina" fix – the window height on iStuff with a retina display seems to fluctuate by one pixel during scroll, causing a spurious resize event right after popup open, even though window size is constant during the entire opening sequence

Popup(“destroy”) never ends
(Issue #5244) – [popup] Avoid infinite recursion by detach()ing the payload from the container before attempting to put it back to its original place in the DOM (which may not exist, if the popup was created based on a detached element)

Popup disappears on iDevice with orientation change in standalone mode
(Issue #5153) – [popup] Initiate resize expectation during orientationchange

Popup Reappears after closing when textarea input field expanded on iOS 6
(Issue #5157) – [popup] Only rapid-open the popup if it is open

Popup remove firing popupafterclose
(Issue #5123) – [popup] When destroying a popup, run close() before un-enhancing if it is the currently active popup

Popup widget depends on selectmenu css
(Issue #5217) – Renamed class ui-selectmenu-hidden to ui-popup-hidden

Rename function _maybeRefreshTimeout to _expectResizeEvent

Return from the dialogHashKey state when the back link takes the form of a link to the page that opened the dialog.

Scroll to top when popup is closed on iOS
(Issue #5334) – Popup: Record scrollTop upon open and close, and restore it upon hashchange.

Unable to close popup in Android 2.3 if transition was used when opening it
(Issue #5189) – [popup] Correctly handle the case when the fallback transition is "none"

Select menu

Custom select menu header corner styling
(Issue #5215) – Select: headers of custom select menus shouldn’t inherit the popup corner styling.

Mark as closed after dialog closes – Re: #5195 – Thanks martenbohlin

Merge pull request #5262 from arschmitz/issue-5261

Select menu refresh() does not refresh popup title
(Issue #5275) – Custom select: Update placeholder during _buildList().

Prevent-focus-zoom doesn’t work
(Issue #5333) – Selectmenu: improved preventFocusZoom.

The preventFocusZoom option check needs to be insde the event binding.

Slider

Flip toggle switch broken on IE7
(Issue #5391) – Slider: unset slider handle top offset for flip toggle switch.

Textinput

Merge pull request #5174 from jschulte/fix-5166

Merge pull request #5175 from jschulte/fix-5166

Merge pull request #5181 from jschulte/fix-5131

Request: mini-Option in checkboxradio & textinput
(Issue #4070) – Textinput: Allow to set option mini programmatically.

Announcing jQuery Mobile 1.1.2

Posted on by

The jQuery Mobile team is happy to announce 1.1.2. This is the second maintenance release for 1.1 and contains fixes throughout the library. Try it now!

Demos & docs | Download & CDN | Change log

Download

CDN-Hosted JavaScript:

CDN-Hosted CSS:

 

Copy-and-Paste Snippet for CDN-hosted files (recommended):

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.2/jquery.mobile-1.1.2.min.css" />
<script src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.1.2/jquery.mobile-1.1.2.min.js"></script>

 

ZIP File:
If you want to host the files yourself you can download a zip of all the files:

Microsoft CDN hosted jQuery Mobile files:

Fork jQuery Mobile on GitHub
https://github.com/jquery/jquery-mobile

 

Change log

Button

1.1 RC2 & 1.1 stable: Select buttons are not full or 60% width in header ui-bar (Issue #3983) – Fixes #3983 – Changed display inline-block rule to only be applied to buttons that are direct children of the header/footer.

Addresses issue #4540; an alternate approach to af46c6c40725f15b6d3502449df357815b39940d

Input submit lacks 100% width when placed in fieldcontain with .ui-hide-label on wider screens (Issue #4705) – Button: Submit buttons should be full width when label is hidden. Fixes #4705 – Input submit lacks 100% width when placed in fieldcontain with .ui-hide-label on wider screens.

Only set margin left/right for buttons that are immediate children. To avoid those margins override margins of buttons that are part of other widgets.

Controlgroup: Horizontal controlgroup shouldn’t have margins in header (Issue #4713) – Button: override default margin if controlgroups or form elements have class ui-btn-left/right. Fixes #4713 – Controlgroup: Horizontal controlgroup shouldn’t have margins in header.

Reverting changes of commit c71642b because it has downsides (select and checkbox/radio buttons don’t get margin because they are wrapped in a div)

Checkboxradio

Request: mini-Option in checkboxradio & textinput (Issue #4070) – Checkboxradio: Allow to set option mini programmatically. Fixes #4070.

Collapsible

Collapsible iconpos via mobileinit differs from documentation. (Issue #4899) – Fixes #4899 (cherry picked from commit 8756bd2d2b49c0ba4881e57d3c8282f3153a81c1)

Fixed corner styling of legends as heading in a collapsible set.

Made non-inset listviews exactly fit inside ui-collapsible-content.

Controlgroup

Calling controlgroup constructor causes fieldset width to shrink (Issue #4716) – Controlgroup: Prevent the controls from being wrapped multiple times. Fixes #4716 – Calling controlgroup constructor causes fieldset width to shrink.

Horizontal alignment bug with jQuery mobile 1.1.1 (Issue #4765) – Controlgroup: keep the possibility to center the controls with vertical-align property. Fixes #4765 – Horizontal alignment bug with jQuery mobile 1.1.1

Vertical-align middle to prevent the small bottom margin that some browsers add because of display inline-block.

Dialog

Close button in dialogs does not work on Android using phone gap and JQM 1.1.1 or 1.2.0 (Issue #4950) – bstract backward movement in history, Fixes #4950

Rewrote CSS (same styling, better construction). Also prevents additional margin-top, just when screen height is little.

The rules for dialog sections should only apply to immediate children. Additional fix for #4699: when using the Download Builder the CSS could be reordered which eliminates the override.

When hash listening is disabled and going to the previous page during close, correctly construct the URL for the previous page from the urlHistory entry and indicate that changePage is to go back in urlHistory rather than adding a new entry

Fixed Toolbars

iOS 6 fullscreen: page can be panned left and right (wider than the screen?) (Issue #5155) – Fixed toolbars: higher specifity for border left and right 0 rule. Fixes #5155

Merge pull request #5262 from arschmitz/issue-5261

Listview

Items filtered from listview missing a border (Issue #4614) – Listview: Added a class to set border-bottom on the last LI. This fixes missing border on filtered lists and on browsers that don’t support :last-child. Fixes #4614 – Items filtered from listview missing a border.

Changed variables to please the linter.

Code improvement and coding standards.

Correction in a function I added to make it actually work.

Fixes read-only list numbering on browsers that don’t support CSS pseudo classes. Classes are not applied yet so we can’t check with .is().

Improved border styling of listview inside collapsible content.

Improved rules for adjusted border styling of non-inset listviews inside collapsible content.

Listview option filter can’t be set programmatically (Issue #5245) – Listview: make it possible to set option filter programmatically. Fixes #5245.

Ordered list ignores “start” attribute (Issue #4613) – Listview: Added support for start attribute on numbered listviews. Fixes #4613 – Ordered list ignores "start" attribute.

Navbar

Persistent navbar broken on scroll, Chrome for android (Issue #4663) – Navbar: Fixes #4663 – Persistent navbar broken on scroll, Chrome for android. Thanks @mmavko :+1:

Navigation

Add check that active.url actually exists

Add tests for mobile path getLocation

Avoid string concat where possible

DirectHashChange: normalize comparison terms with decodeURIComponent()

Do not reset the base tag if, during loadPage we find that the page is already in the DOM, or that we have been prevented from continuing because the default for the "pagebeforeload" event has been prevented.

Fix firefox hash decode issue

Handle issue with Firefox auto decoding location.hash

Handle urls with parens properly

Inadvertent use of location.hash

Parse the hash to avoid decoding in FF, but use the location object elsewhere to avoid the inclusion of the auth

Re-instate $.mobile_registerInternalEvents – thanks asyraf9 — Fixes #4984, #5059 (Issue #4984, Issue #5059) – [navigation] Re-instate $.mobile_registerInternalEvents – thanks asyraf9 — Fixes #4984, #5059

Replace location.href references with a centralized method so we can address #4787

Strip authority to avoid exploits in parse regex

Path.makeUrlAbsolute: If no absUrl is given, use documentBase

XSS with location.href behavior of some browsers (Issue #4787) – make sure the username and password in the url are encoded Fixes #4787

Select

Added padding 0 to the "reset" of the custom select menu header.

Custom select widget has a top-margin when displaying in a dialog (Issue #4699) – Selectmenu: Set margin 0 for the selectmenu header. Fixes #4699 – custom select widget have a top-margin when displaying in a dialog.

Mark as closed after dialog closes – Re: #5195 – Thanks martenbohlin

Refactor to addClass to avoid array alterations/joins

Select menu data-placeholder not working with jQM 1.1.1 (Issue #4696) – correct id for select test fixture, Fixes #4696

Selects zoom page when tapped in iOS6 (Issue #5041) – Addresses #5041. Event timing difference in iOS 6 was causing zoom to be disabled and immediately re-enabled prior to the zoom taking place.

Simplify button text method, handle persisting option class for multiple selects

The button’s text should preserve the original css class of the select and the selected option. This way you can customize it with i.e. images.

Prevent-focus-zoom doesn’t work 🙁 (Issue #5333) – Selectmenu: improved preventFocusZoom. Fixes #5333.

The preventFocusZoom option check needs to be insde the event binding.

Slider

Merge pull request #5049 from MauriceG/patch-5

Layout problem with toggle switch and radio control-group (Issue #4720) – Slider: Avoid regression by setting all margins of the slider handle. Fixes #4720 – Layout problem with toggle switch.

Partly fixes an issue on Safari/Mac where the input width is decreased when the browser implements the spinner.

Slider disabling doesn’t work in IE 9 and IE10 (Issue #4770) – Stop the call structure for slider updates earlier on disabled inputs Fixes #4770

Slider input alterations update the slider ui on blur (Issue #4756) – bind to vmouseup for refresh Fixes #4756

Textinput

Merge pull request #5181 from jschulte/fix-5131

Merge pull request #5174 from jschulte/fix-5166

Merge pull request #5175 from jschulte/fix-5166

Request: mini-Option in checkboxradio & textinput (Issue #4070) – Textinput: Allow to set option mini programmatically. Fixes #4070.

Transition

Moving ui-page-pre class from fixedToolbar to transitions CSS. This class is added by transitions.js and not only if fixed toolbars are used.

Putting back the code back that was accidently removed by commit 8e570e3.

License

Remove preamble reference to the gpl

Remove the GPL license