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
scottjehl
793d03b2e6
adjusted input element replacement regexp to account for non-quoted type attributes when replacing markup. This change lets things work properly in IE, so plugins like the slider now get enhanced.
2011-03-14 00:20:24 -04:00
scottjehl
60d75f008c
fixed Ajax navigation in Windows Phone 7. Since all urls are absolute in IE, we need to check if the href has a protocol up front, and if so, later on, make sure we don't prefix it with a base path because it doesn't need one.
2011-03-14 00:20:24 -04:00
scottjehl
8cb9923055
gradeA test was missed in the update. back in now, with IE 6+ enabled.
2011-03-14 00:20:24 -04:00
scottjehl
aa31e01d63
updated to latest core js, with deprecation note
2011-03-14 00:20:24 -04:00
scottjehl
5b1f586cdb
added meta back. This is now deprecated for A4 in favor of putting the viewport meta directly in the markup.
2011-03-14 00:20:24 -04:00
scottjehl
dcbe844f5c
brought back meta definition. This is now deprecated in A4
2011-03-14 00:20:23 -04:00
scottjehl
b38113950f
only inject meta if there isn't already one there. Deprecating support for injected meta in A4. Will likely remove completely at beta.
2011-03-14 00:20:23 -04:00
scottjehl
dfe7cf6593
Added viewport meta elements to the markup of every template and removed the metaViewportContent option from code and docs. IE does not support generated viewport tags.
2011-03-14 00:20:23 -04:00
scottjehl
1370d5a48e
add IE version check to gradeA qualifier.
2011-03-14 00:20:22 -04:00
scottjehl
0f9eb85240
removed a TODO about changing the changePage function's arg structure. We can revisit this again if it ends up causing problems, but for now, it's not hurting anything and people are already using it. Fixes #1152
2011-03-13 21:59:51 -04:00
John Bender
b4bc09e3b3
clarification and whitespace fix
2011-03-12 23:02:11 -08:00
John Bender
a6b14b9cab
indentation in select open
2011-03-12 22:58:21 -08:00
John Bender
bc70fedb20
select whitespace cleanup
2011-03-12 22:56:36 -08:00
John Bender
e2e8d24b79
Merge branch '1036' of https://github.com/chrsMon/jquery-mobile into chrsMon-1036
2011-03-12 22:52:53 -08:00
John Bender
1911dba7d7
small refactor for clean
2011-03-12 14:37:45 -08:00
John Bender
f555a27e34
fix for protocol and host included as params in path.clean
2011-03-12 14:37:45 -08:00
John Bender
8cac1c5777
word boundy added back with proper escape sequence
2011-03-12 12:05:07 -08:00
John Bender
94ade0f86e
fixed failing data-url regex, bizarri difference in behaviour with Regex objects and literals
2011-03-12 00:10:40 -08:00
John Bender
a2747915c5
corrected issue with setting forward and back values for changepage closure
2011-03-09 23:27:59 -08:00
John Bender
8803bee3bb
fixed zero index bug for directHashChange
2011-03-09 22:55:07 -08:00
John Bender
224c0a90ca
removed unnecessary variables in hashchange callback
2011-03-09 22:55:07 -08:00
John Bender
150f0f6c17
moved global hashchange disable check above dialog check
2011-03-09 22:55:06 -08:00
John Bender
c9416a09a7
moved urlHistory refs to this where possible
2011-03-09 22:55:06 -08:00
John Bender
1ad0769862
refactored determining of back or forward and added callbacks for both cases
2011-03-09 22:55:06 -08:00
John Bender
6e64ccf308
moved dialog skipping to the hashchange callback, needs a refactor
2011-03-09 22:53:38 -08:00
scottjehl
ea60207c1b
changed custom data method to $.fn.mobileData() and updated plugins that use it.
2011-03-09 23:27:21 -05:00
scottjehl
19f5fd7cae
changed the default namespace to "" and updated the docs/demos as such
2011-03-09 22:36:14 -05:00
scottjehl
be0634efb8
fixed typo in class
2011-03-09 21:30:22 -05:00
scottjehl
a74c0c6280
updated init with namespacing
2011-03-09 21:29:07 -05:00
scottjehl
3cae8f8bf0
caught a few more
2011-03-09 21:03:40 -05:00
scottjehl
77ac0f009a
a few more non-namespaced attrs to bring over
2011-03-09 21:03:40 -05:00
scottjehl
bc0f1e02f3
better var names
2011-03-09 21:03:40 -05:00
scottjehl
9e91fa6752
updated docs with jq namespace, found some more stragglers
2011-03-09 21:03:40 -05:00
scottjehl
cee4c617ba
first pass at extending data() to either return a) if no arguments, return non-namespaced versions of any namespaced properties in the data hash, or b) if getting a data property, try getting the namespaced version if the first is undefined. If it's defined, return that instead
2011-03-09 20:49:43 -05:00
scottjehl
2e7ee89ec3
updated attr lookups to use namespace
2011-03-09 20:49:42 -05:00
scottjehl
ce34ece257
namespaced data- attrs to $.mobile.ns (defaults to "jq-") throughout the JS
2011-03-09 20:47:44 -05:00
Kin Blas
d612edd126
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().
2011-03-09 17:23:36 -08:00
Kin Blas
ea77d0370d
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.
2011-03-08 10:56:36 -08:00
Kin Blas
c85a9c3d00
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.
2011-03-07 09:27:57 -08:00
ahallerblu
291bb306dd
find the next entry in the urlstack that isn't a dialog Fixes #1061
2011-03-04 23:34:12 -08:00
John Bender
ea85b5a46f
whitespace in init
2011-03-04 22:25:33 -08:00
John Bender
a4a8d859ca
small refactor of core to unify call to extend
2011-03-04 22:25:33 -08:00
scottjehl
5403981434
Merge remote branch 'origin/master'
2011-03-04 16:28:07 -05:00
scottjehl
4c8453a15a
updated to 1.5.1 from the RC
2011-03-04 16:28:01 -05:00
John Bender
608b39ed39
moved loading message after init to account for customization
2011-03-03 18:06:07 -08:00
eddiemonge
2cb7ff0814
Issue: 733; Defaults form submits to GET method when method is not defined to prevent crashing Android's default browser
2011-03-03 17:45:34 -08:00
Kin Blas
48ab0ec7d6
Prevent inputs and buttons of type="button" from getting the submit click handler added to them.
2011-03-01 14:04:48 -08:00
Martin Kou
df21c701b5
Fixed animationComplete return value bug.
2011-02-27 22:07:34 -08:00
John Bender
58b16a94b6
small refactor to disable check for checkbox radio
2011-02-26 23:59:17 -08:00
Martin Kou
2bb94172cf
Fixed checkboxradio disable issue.
2011-02-26 23:55:37 -08:00
Bra1n
c828cf1f64
prevent setting the data url on pages where it is already set
2011-02-26 23:25:07 -08:00
John Bender
20dce2ce42
small refactor to simplify newActiveIndex tracking
2011-02-25 23:24:03 -08:00
John Bender
86befdeaed
removed unused var/global from navigation
2011-02-25 23:24:03 -08:00
Bra1n
6152e8f511
fixed page history direction search for duplicate entries
2011-02-25 23:24:03 -08:00
Kin Blas
b4a8222366
Fix for the remainder of issue 991.
...
- Looks like the "Intelligent Guess" default behavior of the $.ajax() method in jQuery 1.5.1 guesses wrong when attempting to load an HTML file via a file:// URL. It's guessing that it is an XML document, so it ends up passing in the DOM document node to our success callback, instead of the expected HTML as text (responseText), so our callback code does not behave correctly. We can get around this by simply specifying dataType:"html" at the time we make a request.
2011-02-25 18:23:26 -08:00
John Bender
497f45ae81
Merge branch 'checkboxradio-typo-bugfix' of https://github.com/martinkou/jquery-mobile into martinkou-checkboxradio-typo-bugfix
2011-02-24 22:22:11 -08:00
John Bender
338e5cb96a
movied variables in listview filter to camel case convention used elsewhere
2011-02-24 00:07:27 -08:00
Ernesto Jiménez
dae3e2fa74
Proper support for lists with search filter and dividers
2011-02-23 17:42:47 +00:00
Martin Kou
796c8642bd
Fixed a typo in checkboxradio which causes JS errors.
2011-02-20 18:32:02 -08:00
John Bender
2704975095
re arranged tests for mobile init
2011-02-20 18:07:17 -08:00
John Bender
a64a44504b
moved page additions after gradeA check in init and removed from core
2011-02-20 18:07:17 -08:00
John Bender
b21531a0ac
left gradeA in core, added todo for page element addition refactor
2011-02-20 18:07:17 -08:00
John Bender
891f9b1b07
moved initialization down in the build order, still requires some small refactoring
2011-02-20 18:07:17 -08:00
scottjehl
b6b7aebe14
null hrefs should just preventDefault and return, rather than returning false. Fixes #1118
2011-02-18 16:46:28 -05:00
scottjehl
00a8082acc
updated to jQuery 1.5.1 RC
2011-02-18 16:43:20 -05:00
scottjehl
670ec15661
switched collapsibles over to tap event. Fixes #1056
2011-02-18 12:43:34 -05:00
John Bender
709d12e4d6
resolved conflict for default dialog transition to pop
2011-02-16 22:52:14 -08:00
unknown
ee1a8c1977
listview thumb styling via listview('refresh'). Fixes 947
2011-02-16 22:25:37 -08:00
John Bender
61b7b2e002
removed unnecessary var declaration
2011-02-16 19:55:01 -08:00
Ernesto Jiménez
9aa1a38a32
Reviewing the code realised that this var was implicitly declared as global.
2011-02-16 22:22:28 +00:00
John Bender
3759f87173
reverted to regex method of retrieving the data-url from ajax loaded content to guarantee base is set, regex's courtesy of jblas
2011-02-15 22:24:15 -08:00
John Bender
f301018c1c
added an extra parameter to data url element to match reported issue in pull request
2011-02-14 17:33:06 -08:00
John Bender
47d4a1fb0a
refactor/simplification of fix for broken regex matching data url in ajax loaded pages
2011-02-14 17:25:23 -08:00
John Bender
5a23721a92
whitespace fix for navigation
2011-02-14 17:23:25 -08:00
Ernesto Jiménez
09213738f3
Regular expression / data-url="(.*)"/ doesn't stop at the end of the attribute
...
but the last quotes in the HTML.
I have replaced wildcard . with [^"] to fetch only the attribute content.
2011-02-14 16:33:58 +00:00
chrsMon
bbee2fdb2b
Fixes issue #1036 partially offscreen rendering of select menu
...
https://github.com/jquery/jquery-mobile/issues/issue/1036
The css styles the select menu with a width of 80% with a max-width of
350px. This fix checks if width of select menu is less than max-width.
If that is the case the select menu is centered on screen. If not it
checks if the rigth or left side of the select menu are outside the
viewport and if so moves the select menu inside the viewport with a 30px
tolerance.
2011-02-13 21:11:53 +01:00