John Bender
97783bdbd1
added page tracking to history stack and handling for dialog to dialog transitions in hashchange
2011-03-28 00:41:33 -07:00
scottjehl
c50158c837
Just comments, code order, and whitespace, but also confirming: This Fixes #1171 , where a page loading error prevents future page loads from working.
...
Confirmed on this page. Scroll down and click the error message, than another link to navigate elsewhere.
http://jquerymobile.com/test/#docs/pages/docs-pages.html
2011-03-27 12:27:50 -04:00
scottjehl
4a45d8d96b
Added pageLoadErrorMessage option. Defaults to "Error Loading Page". Documentation included. Fixes #1258 and Fixes #363
2011-03-27 11:45:03 -04:00
scottjehl
9a4663073d
removed default click simulator now that listviews no longer tricker clicks.
2011-03-26 21:29:24 -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
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
Kin Blas
db89e1f24d
Switch find/filter selector calls over to using the new :jqdata() pseudo selector.
2011-03-22 13:31:17 -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
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
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
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
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
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
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
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
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
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
9e91fa6752
updated docs with jq namespace, found some more stragglers
2011-03-09 21:03:40 -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
ahallerblu
291bb306dd
find the next entry in the urlstack that isn't a dialog Fixes #1061
2011-03-04 23:34:12 -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
Martin Kou
df21c701b5
Fixed animationComplete return value bug.
2011-02-27 22:07:34 -08:00
John Bender
20dce2ce42
small refactor to simplify newActiveIndex tracking
2011-02-25 23:24:03 -08:00