Commit graph

100 commits

Author SHA1 Message Date
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
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
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
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
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
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
scottjehl
b6b7aebe14 null hrefs should just preventDefault and return, rather than returning false. Fixes #1118 2011-02-18 16:46:28 -05:00
John Bender
709d12e4d6 resolved conflict for default dialog transition to pop 2011-02-16 22:52:14 -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
Kin Blas
b696bda01b Cleaning up a bunch of jslint errors and warnings. 2011-02-08 13:13:59 -08:00
John Bender
3ca20f8362 resolved small conflict in test fixtures 2011-02-07 22:33:49 -08:00
Kin Blas
1c9414d030 Fix for issue #997 - Syntax Error (line 1711) alpha 3
- Escaped the slash characters inside the brackets of the href regexp.
2011-02-07 11:43:55 -08:00
Alex Kovar
d970c20e4c fixed error when from is undefined 2011-02-05 14:03:31 -06:00
Alex Kovar
79929949db fix issue with failed page load not releasing page transition lock 2011-02-05 14:00:31 -06:00
Alex Kovar
e3a5dd5b09 fixed base undefined error in firefox 2011-02-02 13:10:40 -06:00
Alex Kovar
2754087fc7 externalize $.mobile.urlHistory.clear function 2011-02-02 12:58:27 -06:00
scottjehl
675deb1282 Merge remote branch 'origin/master' 2011-02-02 00:59:59 -05:00