Commit graph

906 commits

Author SHA1 Message Date
scottjehl
d59ba5a31a moved a couple of concats over to :jqmData() selector 2011-03-26 10:09:52 -04:00
Kin Blas
004860c209 Merge branch 'master' of https://github.com/jquery/jquery-mobile 2011-03-25 23:47:32 -07:00
Kin Blas
90e167a4f6 Some "page" data calls were accidentally switched to jqmData(). The widget code actually uses data() so we need to make sure we match.
A couple of data() to jqmData() changes were missed.
2011-03-25 23:44:02 -07:00
John Bender
6089618431 readded fix to return jquery wrapped object from animation complete in both branches 2011-03-25 22:35:19 -07:00
John Bender
4fe0b29a0f Merge branch 'data-namespacing' 2011-03-25 18:46:00 -07:00
scottjehl
7503f62a10 changed our two new custom data helper names to jqmData() and :jqmData() 2011-03-25 17:50:40 -04:00
toddparker
ea074d1ef1 Set the global default for select menus to use the native instead of custom. Updated the docs and examples to match. 2011-03-25 12:44:46 -04:00
scottjehl
4fa2032789 quick fix to listview image selector to grab the first img of each LI, not the whole list. 2011-03-24 15:41:43 -04:00
Felipe Brahm
c25829a8a2 Bug fix: only apply thumb style if img tag is on the first level. This fixes the problem when you want multiple images on each li element, like a 5 star rating for each element for example. Now to add multiple images you just have to put them in a div. 2011-03-25 03:39:02 +08:00
cm71td
2f3b5b6543 Disabled buttons should get the ui-disabled class. I created a refresh() method to be consistent with other widgets. It checks if the underlying button is disabled and calls enable or disable. The refresh() method is called from _create. 2011-03-25 03:16:42 +08:00
John Bender
7d3642f3ab fixed init tests for ie 2011-03-24 09:46:13 -07:00
John Bender
ff4c74d5f9 fixed init tests for ie js failure 2011-03-23 22:42:16 -07:00
scottjehl
61005944d3 Added support for the target attribute on forms (such as target="_blank"). When set, the form handler simply allows the native handling to apply. Unlike anchors however, the rel attribute is not allowed on forms. If you're purely looking to submit a single form without ajax, you can use the data-ajax="false" attribute as well. Fixes #952 and docs updates are included 2011-03-24 00:59:42 -04:00
scottjehl
39476d151a added support for data-transition and data-direction on form elements. Fixes #1275 2011-03-24 00:45:15 -04:00
scottjehl
7b0fa3b48c If action attribute is undefined, default to path.get(). Fixes #766 2011-03-24 00:36:24 -04:00
scottjehl
acc771b046 make sure type is not a 0-length string, as it would be if left undefined in the markup. Fixes #766 2011-03-24 00:33:59 -04:00
scottjehl
e6095a357a if type attr is used from method attr, make sure it's lowercase first. Fixes #1280. Still needs a unit test but I'll need to think about how best to do it. 2011-03-24 00:30:26 -04:00
Ivan Rubanov
b35274a8a4 Fix for issue 1262 2011-03-24 07:33:46 +08:00
Kin Blas
4bf8519cce Merge branch 'data-namespacing' of https://github.com/jquery/jquery-mobile into ns
Resolved Conflicts:
	js/jquery.mobile.core.js
	js/jquery.mobile.forms.checkboxradio.js
2011-03-22 13:51:50 -07:00
Kin Blas
db89e1f24d Switch find/filter selector calls over to using the new :jqdata() pseudo selector. 2011-03-22 13:31:17 -07:00
jeresig
29c0471cca Make sure that the :jqdata() selector also works for filtered items. 2011-03-22 14:35:11 -04:00
John Bender
018609fa32 removed mass of duplication from core of functionality that was moved to init, fixed init tests 2011-03-22 00:26:24 -07:00
John Bender
e236484559 fixed checkbox radio refresh selector 2011-03-21 23:17:46 -07:00
Kin Blas
08fa6a2ac8 Got rid of the if/else isExternal check because we need to make sure we check cross domain URLs against isRelExternal. 2011-03-21 10:32:24 -07:00
John Bender
45183c186c fixed listview tests, refactor still necessary for the last test selectors 2011-03-19 22:29:53 -07:00
Kin Blas
2aab30b7a6 Initial changes to allow for cross-domain URLs to be loaded as pages within Phone Gap's web view. I still need to figure out how we're going to set the application URL hash for these cross-domain URLs, and allow for reloading the URL via deep links. 2011-03-18 17:53:06 -07:00
Kin Blas
882c27c03f Tweaked the jqdata selector regexp so that it wasn't so greedy. This will allow for multiple jqdata() and other pseudo selectors that use parens withinthe same selector string. 2011-03-18 08:42:24 -07:00
John Bender
9f53e4e403 added mobile ns, jqdata was throwing an exception 2011-03-17 00:13:48 -07:00
John Bender
a40a181677 fixed bug in widget that caused them to ignore data attribute as options 2011-03-17 00:06:10 -07:00
John Bender
63e8f6bfcb resolved merge conflicts and fixed 2 tests 2011-03-15 23:57:17 -07:00
scottjehl
09ffa3aa5f Clarified data-ajax=false on forms. Fixes #1134 2011-03-15 18:49:39 -04:00
scottjehl
4e13021a53 fixed bug where clicking back twice after opening a dialog select was causing the main page to hide. history.back was being called twice in some cases when clicking the custom close button. Fixes #1007 2011-03-15 18:23:24 -04:00
John Resig
42c1271963 Adding in a new :jqdata() selector for filtering data- attributes within the proper jQuery Mobile namespace. 2011-03-15 15:08:02 -04:00
scottjehl
83e7aeb4a5 when the select's options don't match the list item options, it should be rebuilt. Fixes #1240 2011-03-15 12:00:39 -04:00
John Bender
a987adb610 altered type attribute regex per @jblas, moved to 'private' prototype attribute for testing 2011-03-14 23:50:20 -07:00
scottjehl
12616b310f didn't need the == true test. 2011-03-15 00:07:48 -04:00
hakanson
d16c46a6e9 format search filter for inset lists 2011-03-15 12:05:47 +08:00
adammessinger
2bfdd02a51 Fix for issue #900: buttons with rel attribute set to external don't show active state 2011-03-15 11:30:19 +08:00
scottjehl
7f48419a29 This adds a fallback for navbars that have one item, so they simply fill 100%. Credit for this fix and idea goes to kennedyr (Richard Kennedy), but we changed the naming around a bit. Fixes #1107. Thanks Richard! 2011-03-14 20:26:20 -04:00
Phil Barnes
b740854ae7 Pass null event param for page _trigger beforehide and beforeshow -- Fixes issue #700 2011-03-15 07:41:32 +08:00
scottjehl
ddcacc1482 changed from ternary to || 2011-03-14 19:34:16 -04:00
scottjehl
330f866143 Merge branch 'bug_733' of https://github.com/eddiemonge/jquery-mobile into eddiemonge-bug_733 2011-03-14 19:31:15 -04:00
John Bender
84ac4ebbb2 fixed input type regex for ff. It puts the type attribute at the end of the html string and breaks the trailing space. Checked in ie7 2011-03-14 08:22:44 -07:00
scottjehl
2b7a2669ac fixed a var typo. Thanks @mschroeder. 2011-03-14 08:29:17 -04:00
scottjehl
f69c98caf0 gradeA adjusted to IE7 and up rather than 6 and up ( this still includes Windows Phone 7). Unit test adjusted to match 2011-03-14 00:20:26 -04:00
scottjehl
6ecb99c936 typo in selector for finding meta[viewport] element 2011-03-14 00:20:26 -04:00
scottjehl
d3a170db09 moved the IE test to support.js, added a workaround to the listview refresh method to prevent default on mousedown, which makes the tap highlight color look right in Windows Phone 7. Without this workaround, it still works fine, but the entire listview is highlighted when an LI is clicked. 2011-03-14 00:20:25 -04:00
scottjehl
4c42be503d tabindex shouldn't be -1 on nativemenu button 2011-03-14 00:20:25 -04:00
scottjehl
7aab355ffb some fixes to make checks and radios work in Windows Phone 7. The labels were not being found through the selector, but finding all labels and then using the filter method seemed to work fine. Other than that, this push includes a little DRY cleanup here and there. 2011-03-14 00:20:24 -04:00
scottjehl
c4685ac14f replace the current path in the url when checking if it's a null # href. This ensures # hrefs won't follow default behavior in IE / Win Phone. 2011-03-14 00:20:24 -04:00