scottjehl
57649cd066
moved the listview a11y handling to just selectmenu custom menus, since that's the only place it's now relevant
2011-03-31 16:44:25 -04:00
Kin Blas
3c69215ed6
Temporary workaround to keep 3rd party onclick handlers functioning. This stuff really needs to be done within the vmouse plugin.
2011-03-31 12:38:36 -07:00
scottjehl
07d20d9991
Merge remote branch 'origin/master'
2011-03-31 13:20:44 -04:00
scottjehl
ae6c2d569f
fixed a duplicate check for using markup for page titles when title isn't present.
2011-03-31 13:20:19 -04:00
scottjehl
854885e93d
move the pageTitle setter to different function
2011-03-31 12:56:48 -04:00
scottjehl
d8aac11a4f
merging unit test addtions for page titles
2011-03-31 12:56:30 -04:00
scottjehl
ac7188e449
merging changes from page-titles branch in regards to a conflict with addNew function arguments
2011-03-31 12:48:46 -04:00
Kin Blas
16bea21a1c
Corrected grammar for a comment in my previous checkin.
2011-03-31 09:33:05 -07:00
Kin Blas
0927ddfe3e
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-03-31 09:22:55 -07:00
Kin Blas
3ce228e3f2
On touch devices, 3rd party code that used href='#' links and onclick handlers weren't working because our live("vclick") link handler in jquery.mobile.navigation.js was calling preventDefault() on the vclick event.
...
For vclicks dispatched via touchend, calling preventDefault causes mouse clicks to be suppressed. This is why the 3rd party onclick handlers weren't getting triggered. For vclicks dispatched by a real mouse click this isn't a problem.
The fix basically removes the preventDefault() call from the live("vclick") handler and places it in a real live("click") handler. This allows the mouse event to get dispatched and trigger 3rd party click handlers, and still call preventDefault to prevent the link from being followed.
2011-03-31 09:19:05 -07:00
scottjehl
612192011b
adjusted change event handling to fire change event on the selected radio, as Dave suggested, and which matches the native triggering. Also, checkboxes change events appear consistent with native implementation. Fixes #1206
2011-03-31 00:22:26 -04:00
scottjehl
cdccf8f2af
updated the fastclick comment
2011-03-30 21:32:38 -04:00
scottjehl
93ddf9d984
Syntax fix with data-ajax attr - also making sure [target] is included in the external link check, and that the pathname is removed properly in IE before prefixing.
2011-03-30 21:17:52 -04:00
scottjehl
a017576da9
Merge remote branch 'origin/master'
2011-03-30 20:52:20 -04:00
scottjehl
e38a25de58
make sure the sticky footer matching is only true if data-ids are specified. This makes "tap" work again when toggling fixed headers and footers.
2011-03-30 20:52:13 -04:00
Kin Blas
14fbe8b164
Fix for issue 1316 - URL is not properly formed in Firefox
...
- Checking in scottjehl's suggested selector for the non dynamicBaseTag support case.
2011-03-30 16:15:24 -07:00
John Bender
215aded824
fixed path detection for when linking from embedded pages to file paths Fixes #1305
2011-03-30 01:08:15 -07:00
John Bender
3a758f97fa
navigation whitespace
2011-03-30 01:08:15 -07:00
scottjehl
27b4cd29fc
improved the fixed headers and footers so they show and hide more appropriately, even when starting a scroll on an anchor element. Fixes #1309
2011-03-29 19:09:19 -04:00
Kin Blas
62f8ce254e
Bullet proof handleTouchStart() against fake touchstart events that don't have any touches[] properties defined.
2011-03-29 09:46:10 -07:00
Kin Blas
1f2c7fd537
Merge branch 'master' into fastclick
...
Resolved Conflicts:
js/jquery.mobile.navbar.js
2011-03-29 09:03:05 -07:00
scottjehl
80f81ca6fa
improved sticky footers a little bit. Now they don't fade after becoming sticky, but they stick well at least.
2011-03-28 20:35:17 -04:00
scottjehl
8fa56b6e85
Got the sticky footers working again. Markup change noted in first page of demo. Fixes #850
2011-03-28 18:30:55 -04:00
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
jblas@adobe.com
0a063c6d67
Get rid of "moved" tracking in the label event bindings. This is all handled transparently by the virtual mouse event code.
2011-03-27 21:20:06 -07:00
jblas@adobe.com
729cda075a
Merge branch 'master' into fastclick
...
Resolved Conflicts:
js/jquery.mobile.buttonMarkup.js
js/jquery.mobile.event.js
js/jquery.mobile.forms.checkboxradio.js
js/jquery.mobile.forms.select.js
js/jquery.mobile.listview.js
2011-03-27 21:00:22 -07:00
scottjehl
4f4718731f
Incorporating mariozaizar's changes to add a backBtnTheme option (null by default) to the page plugin. A few edits were needed to support namespacing and a proper null default so theme inheritance is the default.
2011-03-27 18:29:45 -04:00
scottjehl
b0eb2bd053
Fixed up nested listviews so that any markup that comes before the child list will be used for complex formatting in the list item node. Text nodes that are direct children of the LI still work fine as well. Fixes #585
2011-03-27 16:18:24 -04:00
scottjehl
ef1b0d94ae
added the $.mobile.listview.prototype.options.closeBtnText option for configuring the text of dialog back/close buttons. This also Fixes #1227 (or at least a note within that already-closed issue). Documentation included.
2011-03-27 14:10:16 -04:00
scottjehl
315c594572
Added "filterPlaceholder" option to allow configuring filter listview placeholder text. Documented here: jquerymobile.com/test/#docs/lists/docs-lists.html. Fixes #1227
2011-03-27 14:01:59 -04:00
scottjehl
56fd116236
make sure change event is fired on native select element when custom menu triggers a new selected item. Fixes #1109
2011-03-27 13:45:19 -04:00
scottjehl
58c0d1d1fb
no longer needed, as anchors now fill the LI and have no click handling applied.
2011-03-27 13:35:27 -04:00
scottjehl
f4e5492b9e
make sure close button on small multi-select menus still works. Fixes #1293
2011-03-27 13:21:16 -04:00
scottjehl
aab6cf4012
Fixed an issue where custom selects within dialogs always opened full-screen and not as overlays. Fixes #1277 . Note: this change removes code that stated Firefox had trouble with getting outerHeight on a hidden page, but I found that no longer to be true, so I'm assuming this was fixed in Core.
2011-03-27 13:15:06 -04: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
368b875a02
delegated clicks on anchors don't seem to cause the same visual problems in WinMo7 that they did when click events were bound to LIs. Removing workaround then!
2011-03-27 01:59:36 -04:00
scottjehl
b2f4f06f7d
make sure inner button gets corner rounding as well in listviews. Fixes a regression from earlier.
2011-03-27 01:14:46 -04:00
scottjehl
a0ebb5223b
find first image child of LI or of firstchild anchor
2011-03-26 23:46:47 -04:00
scottjehl
9a4663073d
removed default click simulator now that listviews no longer tricker clicks.
2011-03-26 21:29:24 -04:00
scottjehl
6cd2e9164a
removed delegated LI click handling. Native anchors will provide
2011-03-26 21:29:24 -04:00
scottjehl
84b55548d3
more updates to the listview markup, styles and scripts to allow wrapped anchors
2011-03-26 21:29:24 -04:00
scottjehl
72fe3a2c21
initial markup changes
2011-03-26 21:29:24 -04:00
John Bender
0c59d527c3
fix for listview blank page, ui widget sets the data using the non namespaced fn. needs further consideration
2011-03-26 16:20:12 -07:00
scottjehl
665e87dd5b
make sure an undefined prop stays undefined
2011-03-26 17:48:21 -04:00
scottjehl
8880ceb431
jqm coding style
2011-03-26 14:17:19 -04:00
scottjehl
1aafea83aa
semicolon
2011-03-26 14:16:08 -04:00
scottjehl
e8cee23744
major simplification of jqmData method, while adding new methods for jqmRemoveData, and also their $-namepaced utility methods, including $.jqmHasData. Commit includes 20 new unit tests included to test compatibility with jQuery core's data methods, and docs are updated as well.
2011-03-26 14:14:02 -04:00
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
Kin Blas
d32a8a6bb4
Fixed some jslint warnings. It caught a missing comma that would've broken the file during a minify. < whew! >
2011-03-25 21:26:10 -07:00
Kin Blas
d62864b7de
Add dummy mouse/click handlers on bind elements so that they remain clickable on Opera Mini.
2011-03-25 20:35:24 -07:00
John Bender
4fe0b29a0f
Merge branch 'data-namespacing'
2011-03-25 18:46:00 -07:00
Kin Blas
aa58b2a7e6
Added back blocking based on ancestry. Looks like we need to block on both proximity and ancestry to work around touch and mouse target differences.
2011-03-25 18:00:58 -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
Kin Blas
d06ff28bf6
Re-introduced the concept of blocking the mouse handlers from firing trigger. It was needed to fix select menus. Everytime you would click a select button, the click event was being intercepted by whatever select item appeared at the point of tap which set the value of the select.
2011-03-24 14:57:51 -07: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
8c5faaf01d
A better fix for the case where we have mismatched touch and mouse targets.
2011-03-21 17:09:18 -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
7f8438e966
Merge branch 'master' into fastclick
...
Conflicts resolved:
js/jquery.mobile.forms.select.js
2011-03-18 09:15:01 -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
Kin Blas
fe8e13c9a9
Added code to deal with touch and mouse event target mismatches. This happens most often when the user touches a link, but his/her finger overlaps the link and areas outside of the link. In this specific case, the browser will generate touch events with a target that is the parent or ancestor of the link, but it will then generate mouse events with a target that is the link itself. We now catch this case and re-enable the mouse bindings so we can dispatch our virtual events appropriately.
2011-03-16 09:30:40 -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
Kin Blas
562d89b762
Changes to reduce the number of times we traverse the parent hierarchy looking for virtual bindings when each event handler is called.
2011-03-14 14:25:25 -07:00
Kin Blas
9a431c89a5
Added $.support.eventCapture to detect support for listening for the event capture phase. We need this to disable vmouse touch support for WP7. We may be able to work around the lack of capture support in the near future, but until then, we fallback to just supporting mouse events.
2011-03-14 12:39:03 -07:00
Kin Blas
dbcf4d0373
Merge branch 'master' into fastclick
2011-03-14 11:38:00 -07: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
Kin Blas
b0a667ae44
Fixed typo in my last checkin for converting tap to virtual mouse events. It was preventing tap from actually firing so things like the cancel button link in a search textfield was being followed.
2011-03-11 16:12:58 -08:00
Kin Blas
b00d05b81c
Merge branch 'master' into fastclick
2011-03-11 10:33:11 -08:00
Kin Blas
2de7cc5bbc
Added vmousecancel to the vevents list so that users can bind to the event.
2011-03-11 10:30:16 -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
6ca8b9f700
Merge branch 'master' into fastclick
2011-03-09 14:25:58 -08:00
Kin Blas
d2594ec585
Reworked tap/taphold code so that it makes use of vmousecancel to detect when the user has scrolled the page. Also refactored some of the event handler calling code into a function. I'm still not sure why the handler is called directly versus using the jQuery trigger() method which would allow bubbling.
2011-03-09 14:14:53 -08:00
Kin Blas
8dd766dbce
Removed experimental setting of the ui-btn-active class on button down. This breaks feedback on checkboxes and radios.
2011-03-09 14:13:26 -08:00
Kin Blas
6414e35cee
Convert checkbox/radio and navbar over to virtual mouse events.
2011-03-09 12:37:20 -08:00
Kin Blas
2381bfdeef
Remove the ui-btn-down and active class on vmousecancel instead of vmousemove.
2011-03-09 12:35:59 -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
96a308cc6b
Merge branch 'master' into fastclick
2011-03-08 09:10:07 -08:00
Kin Blas
79c1b1fb69
Convert dialog and button over to using vclick.
2011-03-08 08:52:17 -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
dded1be380
Merge branch 'master' into fastclick
2011-03-01 15:45:49 -08:00
Kin Blas
ca3026a341
Switch collapsible over from click to vclick.
2011-03-01 14:07:11 -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
Kin Blas
b8c73e2599
Merge branch 'master' into fastclick
2011-02-28 09:41:40 -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
3f627acba8
- Added support for a vmouseevent that is triggered when a touch results in the window scrolling.
...
- Modified the button markup behavior so that it uses the virtual mouse events and adds the ui-btn-active class on vmousedown, and then removes it on vmousemove or vmouseup.
2011-02-25 22:20:04 -08:00
Kin Blas
730dae0fc1
Merge branch 'master' into fastclick
2011-02-25 20:41:09 -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
Kin Blas
16fe54e3d3
Merge branch 'master' into fastclick
2011-02-24 16:18:14 -08:00
John Bender
338e5cb96a
movied variables in listview filter to camel case convention used elsewhere
2011-02-24 00:07:27 -08:00
Kin Blas
3cb884b6d7
Added scrollThreshold and checks for page[XY]Offset changes within handleTouchMove to catch the case where the window scrolls, but the scroll events are not dispatched till after touchend. Note that page[XY]Offset is not updated before touchend on every platform, but it does seem to update on iOS which is where we need it.
2011-02-23 23:53:17 -08:00
Ernesto Jiménez
dae3e2fa74
Proper support for lists with search filter and dividers
2011-02-23 17:42:47 +00:00
Kin Blas
6d7bce63b6
Merge branch 'master' into fastclick
2011-02-22 08:57:28 -08: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
Kin Blas
de0f12f164
Merge branch 'master' into fastclick
2011-02-18 18:05:38 -08:00
Kin Blas
48389d1ee1
Fixed bad variable name in teardown method of jquery.mobile.vmouse.js. It was causing an error that made one() bindings fail to fire off their handlers.
...
Modified select and slider code to use virtual events.
Modified tap and taphold code to make use of the virtual events.
2011-02-18 17:39:04 -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
Kin Blas
c063e1ce65
Changed "click" bindings to "vclick" for listview and anchors.
2011-02-18 12:40:30 -08:00
Kin Blas
807be39d83
Added jquery.mobile.vmouse.js to the list of scripts to include.
2011-02-18 12:38:51 -08:00
Kin Blas
815c8c3631
Moved experiments/fast-click/jquery.mobile.mouse.js to js/jquery.mobile.vmouse.js.
2011-02-18 12:37:02 -08: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
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
John Bender
a025c0bffc
backed out autoInitialize moving to feature request backlog
2011-02-06 21:18:51 -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
scottjehl
8dc5d0d79e
fixed a regression in some android 2.2 devices where checkboxes were toggling on and off on every click. Fixes #935 as well.
2011-02-03 18:28:32 -05:00
scottjehl
bd79c32c9a
Page min-height was being calculated with JS and it was far too tall. This moves the values into CSS with values that are aimed towards iPhone (as this is addressing an iPhone transitions issue with the address bar show/hide).
2011-02-03 17:22:23 -05:00
toddparker
8b728d8df7
Re-named the ui-icon-search used on search inputs to ui-icon-searchinput so I modified the script for search input to reflect this change
2011-02-03 13:38:07 -05:00
scottjehl
16c743ac39
In android 2.1 and 1.6, the split button anchor needed to be a sibling of the overall row button div in the LI. It seems this may be due to the event handlers bound to the div button, but I'm not entirely sure that's it. Either way, this workaround is straightforward and does not introduce issues in other browsers, so aside from the additional overhead involved in re-appending the links to the LIs, this fix is good to go. Fixes #874
2011-02-03 02:57:59 -05:00
John Bender
a79799e3b3
added step tests for keypress, removed data-step attribute check in favor of html5 range step attribute
2011-02-02 23:46:20 -08:00
John Bender
3a24aa4de6
Merge branch 'external-clear' of https://github.com/ajkovar/jquery-mobile into ajkovar-external-clear
2011-02-02 23:15:58 -08:00
scottjehl
67987925b4
property should not be defined in $.mobile.
2011-02-02 20:02:04 -05: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
b464b1bcec
added a workaround for the selectmenu plugin's nativeMenu in Opera. Opera browsers improperly support opacity on select elements, either hiding the menu button but not its text (in Mini), or hiding the text but not the button. Either way, it makes our hidden-select trick look really bad, or unusable. This workaround adds a class to the select in Opera, and makes the native menu visible. In the case of a false positive, that's not a bad outcome. Fixes #897
2011-02-02 12:04:18 -05:00
scottjehl
110ba9e98e
remove active button class on touchmove. This could technically use some tolerance, but it goes back to active if the select ends up opening, so I think it's fine as is, without adding more logic. Credit goes to @davibe for the change.
2011-02-02 01:41:07 -05:00
Davide Bertola
08b17e71cb
Make button look pressed on touchstart event
2011-02-02 14:28:58 +08:00
John Bender
107fc25838
minor simplification to the on ready init
2011-02-01 22:04:05 -08:00
John Bender
0a7bdfd632
whitespace in mobile core
2011-02-01 22:04:05 -08:00
unknown
9caaa9cfde
Added ability to control if $.mobile will automatically load first page/pages on dom ready using $.mobile.autoInitialize.
2011-02-01 22:04:05 -08:00
scottjehl
675deb1282
Merge remote branch 'origin/master'
2011-02-02 00:59:59 -05:00
John Bender
4ddc5c7dd5
Merge branch 'changepagefix' of https://github.com/ajkovar/jquery-mobile into ajkovar-changepagefix
2011-02-01 21:36:24 -08:00
scottjehl
a763bade42
whitespace only
2011-02-02 00:33:53 -05:00
scottjehl
4a6ec54472
no default prevention is needed in native mode, as button is a div rather than an anchor. Also bound to change to remove the active class, which makes the native menu version's button state behave better in Opera Mobile 10.1
2011-02-02 00:25:12 -05:00
scottjehl
4023e1bf68
select menus also need blurring on transition.
2011-02-02 00:11:16 -05:00
scottjehl
cfceeced2e
wrapped if condition order
2011-02-02 00:02:59 -05:00
scottjehl
91ee3fbfca
Merge remote branch 'origin/master'
2011-02-01 21:45:33 -05:00
Jesse Streb
e15ce80702
moved the setTimeout within the transition to be in the success handler of the ajax response. We now wrap the transitionPages that we call after injecting the new page into the DOM within the setTimeout which fixes the same issue but limits to pages that are injected into the DOM and makes it more clear why we have the setTimeout
2011-02-01 21:44:23 -05:00
scottjehl
0648247260
further shielding of non-native actions from native menus, and styled select within a parent div rather than anchor, when native is used.
2011-02-01 21:03:41 -05:00
scottjehl
36301b70bf
optimizations to prevent unnecessary overhead of menu markup creation or manipulation when native select option is true.
2011-02-01 20:49:07 -05:00
Kin Blas
179061a4c9
Fix for Issue #678 - Select list offset above top of screen.
...
- Wait for the "silentscroll" event before setting focus. This avoids the "feature" where the browser will automatically offset rendering of a container to make sure whatever has focus is visible.
2011-02-01 17:14:15 -08:00
scottjehl
70f4acdd04
selectmenu: moved the list building logic over to use an arrays and joins to speed things up.
2011-02-01 19:28:30 -05:00
Alex Kovar
d4c8c3cee2
fix for $.mobile.urlHistory test
2011-02-01 14:08:19 -06:00
Alex Kovar
1eed03cf0c
Fixed issue with simultaneous page transitions. Closes gh-856
...
Conflicts:
js/jquery.mobile.navigation.js
tests/unit/navigation/navigation_transitions.js
2011-02-01 14:07:17 -06:00
scottjehl
aad8ac174a
Removed the extra ways to set nativeMenu option in select plugin. Now like other plugins, the option is both available through the plugin's options (nativeMenu) or through a data-attribute (data-native-menu), which is automated through the camelcase option name. Unit tests updated
2011-02-01 13:27:35 -05:00
scottjehl
3f938fd2f9
fixed bug where a preset data-url was being prefixed by the base url, rather than replacing the whole hash. Fixes #591
2011-02-01 12:32:02 -05:00
scottjehl
6855363375
changing this selector to be more specific prevents an error in IE 7 (and win mobile). Support is coming :)
2011-02-01 11:53:32 -05:00
scottjehl
5e6e6019eb
updated to jQuery 1.5
2011-02-01 11:37:00 -05:00
Mark Schuette
f640646877
added the ability to use the default behavior of links with data-ajax=false
2011-02-01 14:13:04 +08:00
chrisvire
d3376b7b5c
Allow for data-theme attribute on list item
2011-02-01 14:03:36 +08:00
scottjehl
a5c8f86d10
links with no href attribute will not throw an error when clicked. Fixes #932
2011-02-01 01:01:41 -05:00
scottjehl
da1c615c8a
inset listviews with a single item will get appropriate visual treatment. Fixes #469
2011-02-01 00:37:24 -05:00