scottjehl
8c6164dbf0
Added new throttledresize special event, including unit tests. This event prevents browsers from running continuous callbacks on resize, which we use internally for orientationchange in browsers like IE. It still ensures that a held event will execute after the timeout, so logic that depends on the final conditions after a resize is complete will still execute properly. This improves performance noticeably, and... Fixes #1496 . Fixes #1848 . Fixes #1422 .
...
The included tests pass most of the time, but they need improvements as they will occasionally fail due to faulty timing in the tests themselves, as far as I can tell (the code tests out fine in our functional demos).
2011-06-18 11:41:47 -04:00
scottjehl
ee424f5f97
only bind to orientationchange, as resize is built into it already as a fallback
2011-06-18 10:43:11 -04:00
scottjehl
90fb871ee8
referenced the full object to avoid a minifier issue when trying to reference a local variable. Will follow up on this...
2011-06-18 09:19:45 -04:00
scottjehl
ffa35c0548
improved minheight page logic
2011-06-17 19:19:47 -04:00
scottjehl
fcbfc2f380
added minScrollBack feature to core options. This is the minimum scroll distance that will be jumped-to when returning to a page. By default, the distance is screen.height /2. If you really needed to disable scroll memory altogether, this could be set to Infinity. Note that disabling scroll memory altogether is almost never a good idea for usability, but the option is there.
2011-06-17 19:19:47 -04:00
scottjehl
3bd713c185
added resetActivePage on pagecreate, orientationchange, and after transitions.
2011-06-17 19:19:47 -04:00
scottjehl
690dc66f7c
set heights including respective scrolls
2011-06-17 19:19:46 -04:00
scottjehl
aa950ba125
Only call scrollTo if there's a scroll distance we need to go to. If the distance we're jumping to is 20px or less, let it go in for tolerance. Reset toPage height before scrolling, focusing.
2011-06-17 19:19:46 -04:00
scottjehl
df7ac2f642
fix up the page heights during transitions, and min-heights otherwise.
2011-06-17 19:19:46 -04:00
scottjehl
ed7aae1d1c
hide address bar during page changes by catching ajax clicks early through binding to touchend, and make pages fit screen height during transitions
2011-06-17 19:19:46 -04:00
scottjehl
758e430653
fixed theme inheritance on filter lists in IE7.
2011-06-17 19:02:53 -04:00
scottjehl
722ed2cbbf
If ajax is disabled, exit the click handler early and avoid parsing the href at all. Thanks for the idea, @toddparker! Fixes #1846 .
2011-06-17 18:33:16 -04:00
Ghislain Seguin
f32fe66bf7
Merge remote-tracking branch 'upstream/master' into issue-1470
...
Conflicts:
tests/unit/listview/listview_core.js
2011-06-17 10:46:52 -07:00
Kin Blas
525543b06d
Merge pull request #1662 from gseguin/issue-1654
...
Issue 1654
2011-06-17 09:41:22 -07:00
Ghislain Seguin
ff8517c915
Merge remote-tracking branch 'upstream/master' into issue-1654
...
Conflicts:
tests/unit/listview/listview_core.js
2011-06-17 09:37:36 -07:00
scottjehl
1dd6608829
remove active button state on buttons that close dialogs. Fixes #1839
2011-06-17 02:11:59 -04:00
Scott Jehl
0cff6336bd
Merge pull request #1489 from bernharduw/master
...
Radio buttons in nested listviews don't work. Fixes #1486
2011-06-16 22:41:16 -07:00
scottjehl
d2a6397983
added list filterTheme option. Available as data attribute data-filter-theme on listviews with filters enabled. Fixes #1790 - List view filter can not be themed.
...
Thanks for the idea @adamvaughan! Docs update coming next.
2011-06-17 00:59:17 -04:00
Scott Jehl
004f67d384
Merge pull request #1817 from wtw/master
...
Fixes #1549 .
2011-06-16 21:29:12 -07:00
scottjehl
fd738c5b04
Modified the listview thumbail-finding logic to specifically find first children of the li or the primary button's inner anchor element. Fixes #1794 . Fixes #1458
2011-06-17 00:21:11 -04:00
Scott Jehl
cc809da95c
Merge pull request #1828 from eddiemonge/bug_1825
...
Code guideline styling changes for collapsible.js
2011-06-16 20:59:23 -07:00
scottjehl
e06ae4a5b9
rolled back the change to looking up list filter placeholders. Seems to work fine as it was originally. Added a custom placeholder to the listview filter with headings demo page.
2011-06-16 23:47:04 -04:00
Scott Jehl
60f80b9473
Merge pull request #1838 from adamvaughan/issue1836
...
Fix for issue 1836 - List view filter placeholder data attribute is not used. Edits coming after this commit.
2011-06-16 20:37:40 -07:00
Kin Blas
96b3e710d4
Added utility functions $.mobile.getDocumentBase() and $.mobile.getDocumentUrl() so that developers can retrieve the original base and url used when loading the document.
2011-06-16 15:43:40 -07:00
Kin Blas
8b6d14bb03
Fix for issue 1826 - Nightly build - dialog box no longer rounded corners
...
- Don't set a default value for the 'role' option to loadPage() and changePage(). Instead, rely on the role attribute that is on the element.
- Fixed an error that was happening when a hash change involves going from a dialog back to another dialog. I had recently made changes that assumed the 'to' variable was always going to be a url string, but it turns out in the dialog back to dialog case, it is an actual jQuery collection.
2011-06-16 13:36:39 -07:00
Adam Vaughan
d1a958d1d7
Fix for issue 1836 - List view filter placeholder data attribute is not used.
2011-06-16 11:46:04 -06:00
Kin Blas
d2f115349a
Fix for issue 1833 - No page transition used when hitting the browser forward button
...
- Don't use the transition of the initial page on the stack.
2011-06-15 15:28:52 -07:00
jblas@adobe.com
dd69372dd4
Adjusted the urlParserRE regexp to account for double slashes in the directory path to work around a phonegap 0.9.4.
2011-06-15 10:37:08 -07:00
Eddie Monge
0de386eda9
Code guideline styling changes for collapsible.js
2011-06-14 15:32:57 -07:00
Todd Parker
7e40ddff4e
Merge pull request #1803 from eddiemonge/combine
...
minor changes to combine.php
2011-06-14 11:42:40 -07:00
Kin Blas
c011f51f14
Removed unused path.isRelative() function. Replaced unit tests for isRelative() with tests for path.isRelativeUrl.
2011-06-13 16:45:10 -07:00
Wolfram Twelker
41c1116aa2
Fixed ticket 1549 - no change event triggered on deselecting first
...
option in multiple-select
2011-06-11 17:12:15 +02:00
Kin Blas
e286808391
Rule of thumb ... get your logic right and your code will behave as you expect.
...
- I should've been using !== instead === when figuring out docBaseDiffers.
2011-06-10 16:13:58 -07:00
Kin Blas
963a84cb18
IE7 returns an empty string for regexp submatches while all other browsers return undefined. Modified the parseUrl() function to normalize all non-matches to an empty string and replaced all strict checks for undefined to strict checks for an empty string.
2011-06-10 15:31:09 -07:00
Kin Blas
244385b9f9
Merge branch 'master' into path-fixes
2011-06-10 10:02:11 -07:00
Kin Blas
b7bcf93620
- We were missing a changepage notification in the case where we were transitioning to the same page.
...
- Added changepagefailed notification for the case where the load fails. Note we still need beforeloadpage/loadpage notifications.
- Misc fixes to stop the navigation unit tests from seemingly random failures. It seems that the hash resets in setup/teardown of the test modules sometimes interferes with the changePage() requests in the tests. Added code to the setup/teardown functions to wait for the reset to complete before moving on to the tests.
2011-06-10 10:00:25 -07:00
Ghislain Seguin
4572200107
Coding standards
2011-06-10 09:40:41 -07:00
Ghislain Seguin
c9abc368d8
Issue #1762 : Removed extra iteration on list items
2011-06-10 09:40:15 -07:00
frietsch
d99d096ab7
Bugfix: ":jqmData(ajax='false')" might also match forms, which have neither of "src" or "href". In that case, thisUrl is undefined, and the following replace results in an error.
2011-06-09 08:21:21 -07:00
Eddie Monge
3688e8fa92
minor changes to combine.php
2011-06-09 01:51:37 -07:00
Kin Blas
3d6bd402a2
- Changes to get the navigation_helpers.js unit tests green.
...
- Modified isExternal so that it returns true/false to help with unit tests.
2011-06-08 17:20:01 -07:00
scottjehl
5512c8af02
use prop instead of attr for enable/disable
2011-06-08 18:12:42 -04:00
Kin Blas
eb082c27e3
Merge branch 'master' into path-fixes
...
Fixed Conflicts:
js/jquery.mobile.navigation.js
2011-06-08 15:10:16 -07:00
Kin Blas
8e1e77badf
Get deep linking to internal pages working again. We can now also deep link to nested list sub-pages that are contained within internal pages.
2011-06-08 15:06:41 -07:00
scottjehl
93e7afd4b1
make sure nested collapsible sets don't toggle their parent collapsibles when expanded. Fixes #1387
2011-06-08 18:00:26 -04:00
Kin Blas
33b9ee8052
Changes to make sure the data-url are either an id, site relative path (for same domain), or absolute Url (for cross-domain Phone Gap).
2011-06-08 14:47:24 -07:00
Kin Blas
a99728d178
- Added addSearchParams() utility function.
...
- Removed unused path functions: setOrigin(), makeAbsolute(), and isQuery().
- Modified loadPage() so that it uses addSearchParams() instead of naively appending it to the URL.
- Switched the global "click" handler back to using the link @href attribute and manually converting it to an absolute URL. This was necessary because it turns out that the href property on a link is dynamically calculated at the time of access based on the *CURRENT* base tag setting. This means the same link can return a different href value if the the base tag is different each time you access it.
2011-06-06 15:58:21 -07:00
Kin Blas
19f1a775b9
Missed a couple of places I should've used hrefNoHash when I converted documentBase to an urlObject.
2011-06-04 10:51:41 -07:00
Kin Blas
f9dd767528
Switched form handler over to processing absolute urls.
2011-06-04 01:22:16 -07:00
Kin Blas
ba502f0aff
Changes to switch the global link click handler over to processing absolute urls.
2011-06-04 00:26:25 -07:00
Ghislain Seguin
9d3862c825
Whitespace change
2011-06-03 19:02:13 -07:00
Kin Blas
b148ee424a
Added isSameDomain() Utility function.
2011-06-03 13:57:25 -07:00
Ghislain Seguin
3ee2585cba
Fix for issue #1617 : Nested lists with same parent text resolve to the same sub-page.
2011-06-03 10:55:04 -07:00
Kin Blas
b31825a1d7
Fixed issue 1767 - loadPage/changePage broken in trunk (latest build)
...
- Not sure how/why I added that extra absUrl, but its gone now.
2011-06-02 10:41:55 -07:00
Kin Blas
a2182dafa9
- Added a getClosestBaseUrl() utility function for calculating the correct base URL to use for a given element.
...
- We should be using makeUrlAbsolute() instead of makePathAbsolute() when calculating the documentBase.
- Removed bogus code in pathname calculatino in makeUrlAbsolute().
- Reworked calculation of search in makeUrlAbsolute() to prevent an undefined in the case where rel and abs urls have no search.
2011-06-01 17:15:18 -07:00
Kin Blas
3ca5dd854a
- Added URL parsing and relative to absolute path and url utility methods.
...
- Switched the base tag management code over to using new utilities.
2011-06-01 11:59:13 -07:00
eddiemonge
244cda822a
add white space for code standard
2011-05-31 14:44:31 -07:00
eddiemonge
0438418175
merge changes
2011-05-31 14:41:54 -07:00
Kin Blas
a5d3c05e4b
Merge branch 'dialogToCodeStandards' of https://github.com/StevenBlack/jquery-mobile into StevenBlack
...
Fixed Conflicts:
js/jquery.mobile.dialog.js
2011-05-31 14:14:05 -07:00
eddiemonge
d3df858eea
missed an equal sign
2011-05-27 12:13:48 -07:00
Kin Blas
991db0de46
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-05-27 10:55:20 -07:00
Kin Blas
ef9d55f4b6
Hopefully the last set of fixes for issue 1712 - $.mobile.changePage broken in latest
...
- The test case calls changePage() with a hash ("#b"). In our normal processing of clicks/form submits we strip it before calling. The old code did a strip in changePage() just in case, so I added it back in to fix the last bug.
2011-05-27 10:53:19 -07:00
Scott Jehl
4b40896b6a
Merge pull request #1709 from shanag/checkboxradio-keyboard-fix
...
Allow checkboxes and radio buttons to be selected with the keyboard
2011-05-27 07:11:21 -07:00
Shana Golden
c9d97ef261
Allow checkboxes/radio buttons to be selected with keyboard - updated to use prop()
2011-05-27 10:06:18 -04:00
eddiemonge
371efce3c3
actually use the defined variables
2011-05-26 17:20:56 -07:00
Kin Blas
6fdb90df17
Fixed a typo in $.mobile.loadPage.defaults. The default for the data property should be undefined, not the string "undefined".
2011-05-26 17:04:27 -07:00
Kin Blas
c8761525e7
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-05-26 16:41:41 -07:00
Kin Blas
7befe9087a
The signature of changePage() has changed but folks need some time to transition to using the new signature. I added code to changePage() that maps any old signature calls to changePage() into a new call. This should fix issue 1712 ($.mobile.changePage broken in latest). This code should be removed before shipping 1.0.
2011-05-26 16:39:09 -07:00
Todd Parker
6ac1598033
Merge pull request #1719 from StevenBlack/buttonMarkupToCodeStandards
...
jquery.mobile.buttonMarkup.js: Whitespace changes, bring this package up to coding standards
2011-05-26 13:04:37 -07:00
Steven Black
bce94ffbaa
jquery.mobile.collapsible.js: Whitespace to standards. Now passes jsHint.
...
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-26 15:41:01 -04:00
Steven Black
399c2c5af0
jquery.mobile.buttonMarkup.js: Whitespace changes, bring this package up to jQuery coding standards.
...
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-26 15:08:10 -04:00
Mat Marquis
86295b170d
Correcting my own comment.
2011-05-26 13:00:01 -04:00
Mat Marquis
4947eacf1c
Bound 'silentscroll' event back to document, as it was causing issues in modern browsers and made no difference in IE 7/8.
2011-05-26 12:40:49 -04:00
Mat Marquis
f36e92fb7b
Desktop IE wasn't reporting a scrollTop value for fixed headers/footers—'window' is now provided as a fallback in the event that .scrollTop() reports zero.
2011-05-26 11:51:16 -04:00
Steven Black
ab76ac33ac
jquery.mobile.dialog.js: Whitespace changes and string delimiters, bringing this up to jQuery coding standards. Renamed one memory variable for legibility and clarity.
...
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-26 10:01:39 -04:00
Kin Blas
e5876e3d3b
Attempt number 2 at fixing 1708 - - nightbuild close dialog throwing error
2011-05-25 17:17:21 -07:00
Kin Blas
bee8549a18
Fixed a bad typo caught by @johnbender and @gseguin.
...
- Replaced an un-intentional semi-colon with a comma.
2011-05-25 15:13:44 -07:00
Shana Golden
4ca2fc5287
Allow checkboxes and radio buttons to be selected with the keyboard
2011-05-25 15:45:41 -04:00
Kin Blas
923b047e75
Fix for issue 1708 - nightbuild close dialog throwing error
...
- Check the returned active object to see if it is valid before attempting to extract the transition out of it. Default to $.mobile.defaultDialogTransition if there is no active object.
2011-05-25 12:44:10 -07:00
scottjehl
76fe9ca3fd
moved previous logic to the init file so it's not overridden by defaults.
2011-05-24 17:39:53 -04:00
scottjehl
7b578f7873
Disabled ajax navigation in BlackBerry 5 and Opera Mini, for a more usable overall experience (and in some cases, due to insufficient native history implementations that don't track hash changes). Fixes #1644 and Fixes #1276
2011-05-24 17:08:29 -04:00
scottjehl
8929ac33b9
Removed the ajaxLinksEnabled and ajaxFormsEnabled settings. These were deprecated in a4 and scheduled for removal. Automated link and form ajax handling can still be globally disabled via the ajaxEnabled option.
2011-05-24 16:08:30 -04:00
Kin Blas
368d3e55b4
Merge branch 'master' into navigation
2011-05-23 17:00:32 -07:00
Kin Blas
786ef25e0a
Changes to get the navigation unit tests green again.
...
- Modified changePage() to set isPageTransitioning earlier.
- Modified pageSequence() to allow the current changepage callback stack to unwind before firing off the next function in the sequence.
2011-05-23 14:30:40 -07:00
John Bender
dc530ea751
page sequence helper added, nav tests in a somewhat better state. the event trigger spot, namespace, and general setup are all up for debate
2011-05-21 22:15:12 -07:00
Kin Blas
5ba2cc975e
Inverted the logic around ignoreNextHashChange so that it actually matches the name of the variable.
...
Modified the hashchange callback so that it specifies a "none" transition, instead of a false boolean, for the case where the hash changed and there is nothing on the urlHistory stack.
2011-05-20 15:19:54 -07:00
John Bender
fe7ba3f6c6
jquery style compliance for nsNormalize
2011-05-20 12:32:08 -07:00
Kin Blas
3c792c58f0
Merge branch 'master' into navigation
...
Fixed Conflicts:
js/jquery.mobile.init.js
js/jquery.mobile.navigation.js
2011-05-20 09:39:19 -07:00
John Bender
4c299a600b
moved nsNormalize from replace to jquery camelCase function
2011-05-20 09:20:15 -07:00
John Bender
ad6279dd8a
small optimization to prevent unnecessary recompilation of normalization regex
2011-05-20 01:09:39 -07:00
John Bender
3520e77dc4
comment for clarity on function purpose
2011-05-20 00:48:41 -07:00
John Bender
118599748b
comment whitespace
2011-05-20 00:43:53 -07:00
John Bender
7eb1085764
data attribute namespace normalization to comply with spec and jquery 1.6 changes
2011-05-20 00:31:27 -07:00
Ghislain Seguin
be94de1c18
Merge branch 'master' of https://github.com/jquery/jquery-mobile into issue-1654
2011-05-19 17:42:25 -07:00
Kin Blas
edc94fb6ec
The dialog "pop" unit test was failing because the active variable in changePage() was being dereferenced. The unit test clears the urlHistory.stack array manually so we just need to make sure we don't dereference active if it doesn't exist.
2011-05-19 17:01:26 -07:00
John Bender
6487eb684f
spaces to tabs in core
2011-05-19 15:36:22 -07:00
Ghislain Seguin
4255f5752f
Fix for issue #1654
2011-05-18 23:46:46 -07:00
Kin Blas
59afbda49b
Added a pageContainer option to changePage and loadPage.
2011-05-18 18:06:15 -07:00
Kin Blas
3a047112a0
Removed debug try/catch block I accidentally checked in.
...
Made lots of whitespace changes to bring file up to jquery core style guidelines.
2011-05-18 16:38:04 -07:00
Ghislain Seguin
bd068616c6
Fix for #1470
...
Corner styling issue with listview refresh on growing lists
2011-05-18 16:07:18 -07:00
Kin Blas
cafb6acef9
Separated changePage() into 2 functions:
...
- loadPage() now loads all pages into the DOM.
- changePage() only functions on pages that are in the DOM. If you call it with a URL instead of an element, it will call loadPage() which will then trigger a call to changePage() with the resulting page at a later time.
2011-05-18 15:58:15 -07:00
scottjehl
ae7d62a1bc
code style & repetition cleanup
2011-05-18 18:32:59 -04:00
Scott Jehl
24fff18186
Merge pull request #1656 from VTWoods/bug_1635
...
#1635 Collapsible not triggering resize event. Fixes #1635
2011-05-18 15:30:11 -07:00
vtwoods
5918e5ad9f
Moved the resize event into the fixed toolbar plugin.
2011-05-18 18:17:41 -04:00
scottjehl
fd0819f379
turned auto back button additions off by default. Fixes #1657 . To turn auto backbuttons on, you can set the page plugin's autoBackBtn option to true per page, or globally via its configuration prototype. You can also use the data-auto-back-btn attribute on a page div.
2011-05-18 17:17:13 -04:00
vtwoods
18c7d590ce
Merge branch 'master' of https://github.com/jquery/jquery-mobile into bug_1635
2011-05-18 16:20:21 -04:00
vtwoods
7022c19322
Fixed the bug where collapsing or expanding a collapsable did not cause a resize event to be triggered
2011-05-18 16:12:57 -04:00
gnikibog
1b49245489
Missing space in generated page markup
2011-05-18 07:02:06 -07:00
scottjehl
adf3808e84
Removed the dynamically-appended Meta tag, which was deprecated in Alpha 4, and scheduled for removal in beta. jQM users must provide their own meta viewport tag in the head of jQM apps.
2011-05-17 18:03:54 -04:00
scottjehl
04cb9c1850
followup to previous change, this time for dynamically appended meta viewport tags.
2011-05-17 17:30:13 -04:00
Kin Blas
b96310eedf
- Externalize some of the nested functions in changePage().
...
- Modified changePage() so that it can take an options object. Updated all references throughout the framework.
- Split $.mobile.pageLoading() into 2 functions $.mobile.show/hidePageLoadingMsg(). Updated docs accordingly.
- Renamed $.mobile.defaultTransition to $.mobie.defaultPageTransition. Updated docs accordingly.
- Added $.mobile.defaultDialogTransition so that it isn't hard coded in the changePage/transitionPages and select code.
- Hand integrated jquery.mobile.navigation.js checkins from master: 4b4ee54a , e775f5e8 , e597ccb3 , 084bbbd8 .
2011-05-16 16:02:26 -07:00
Todd Parker
877651a7cd
Merge pull request #1631 from joshiabk/master
...
jQuery Search Textbox change to add new focus event which will show clear button when some item gets pasted directly without key event to search text box. Thanks joshiabk
2011-05-14 03:25:23 -07:00
Abhishek Joshi
cb645ede22
Add new focus event which will show cross button on search textbox when some item get paste directly without key event to search text box
2011-05-13 22:44:47 -07:00
Kin Blas
7df38d9abf
Upgrade to jQuery 1.6.1 to pick up :checked fixes.
2011-05-13 15:27:09 -07:00
Steven Black
f8516d4dbe
jquery.mobile.support.js: Whitespace changes only. Bring code up to jQuery coding standards in anticipation of adding Opera Mini feature detection. Passes jsHint except for the James Padolsey/ jdalton non-UA-based IE version check, which is OK. All tests pass.
...
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-11 20:47:37 -04:00
Todd Parker
b80689a1dc
Merge pull request #1522 from markandey/master
...
If 'input' element has id string with dots in it, code fails. Fixed by tweaking the regex to escape dots in the selector. Thanks markandy and eddiemonge
2011-05-10 12:12:19 -07:00
Kin Blas
4f4bb4d309
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-05-09 14:24:49 -07:00
Kin Blas
24fc06b234
Issue 1592 - Make sure we set lastval on create so we don't compare against the stirng "undefined" on first keyup/change event.
2011-05-09 14:23:06 -07:00
Todd Parker
084bbbd839
Merge pull request #1573 from marcoos/master
...
fix for issue 1530: Page title is changing when I use popup select menu (Dropdown). Thanks marcoos.
2011-05-09 13:03:02 -07:00
Kin Blas
1387fd457f
Merge branch 'filterspeed' of https://github.com/nsaleh/jquery-mobile into pull-1475
...
Resolved Conflicts:
js/jquery.mobile.navigation.js
- Removed these changes as they are not related.
2011-05-09 12:27:44 -07:00
Nabil Saleh
4ffb0a5f33
- code cleanup
...
- added class-based hiding
2011-05-09 13:25:13 +02:00
Kin Blas
e597ccb381
Fix for issue 1580 - phonegap: Pages with data-ajax="false" on form fail to load
...
In the $.ajax() callback, we look for elements with @href, @src, and @data-ajax="false" elements, the code then assumes that matching elements will have either @href or @src, which of course forms don't ... they have @action ... so the code throws an exception because thisUrl is undefined.
- I reworked the code to handle action and check to make sure we have an attribute and url string before attempting to use them.
2011-05-06 13:05:56 -07:00
Kin Blas
e775f5e83a
Fix for Issue 1578 - Can't load file:// pages
...
This was caused by this checkin:
4b4ee54a72
The change caused the base tag to be reset to file:// (literally with no path).
All that was missing was a small tweak to base.reset() to use the new initialPath variable instead of docBase.
2011-05-06 10:28:31 -07:00
scottjehl
4b4ee54a72
This change sets the base tag properly on page load and page changes, corresponding with the recent change to absolute path hash urls. Images and other assets will direct relative to the document in which they reside. This may not cover new path situations Kin has documented, but it does fix the regression so things work as they did before the change. Tested in non-base supporting browsers to verify it works there too. The following page should have an image in the content, verifying the fix http://jquerymobile.com/test/#/test/docs/about/intro.html . Fixes #1508
2011-05-06 09:37:41 -04:00
Marek Stepien
50ee33a84f
fix for issue 1530: Page title is changing when I use popup select menu ( Dropdown)
2011-05-05 23:26:41 +02:00
scottjehl
131cb2423f
updated to 1.6
2011-05-04 22:24:36 -04:00
Paul Nicholls
91126e4e85
Issue #1514 (Regex breaking Firefox >3.6)
...
Remove greedy matches from start and end of regex - there's no need for them, and they cause immense slowdown (on the order of 3-4 seconds on medium-size pages loaded via ajax).
2011-05-03 10:48:06 +12:00
Kin Blas
af3b8ce3ae
Merge pull request #1544 from StevenBlack/TransitionsToStandard.
...
Transitions to standard
2011-05-02 14:23:36 -07:00
mark.dawn@gmail.com
4bccf1d8a6
some string literal fixes
2011-05-02 13:30:36 +05:30
John Bender
377c0067a7
remove checked state from radio button inputs that are not checked. use jquery attr accessor instead of expando to guarantee consistent values. Fixes #1532 .
2011-05-02 00:53:51 -07:00
Steven Black
b78c6ea372
jquery.mobile.transition.js: code to jQuery core standards, part deux.
...
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-01 21:19:30 -04:00
Steven Black
2c444ef34d
jquery.mobile.transition.js: code to jQuery core standards.
...
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-01 21:16:06 -04:00
John Bender
9096763741
finished basic pathing tests sans site relative root ir /
2011-04-29 22:23:57 -07:00
John Bender
a50912e0de
remove ie debug alert
2011-04-29 22:22:18 -07:00
Steven Black
520b8e22d4
More formatting changes to meet JQuery Core Style Guidelines.
...
)) -> ) )
...and others.
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-04-29 08:22:03 -04:00
Nabil Saleh
eefbdecf0a
further cleanup
2011-04-29 10:50:10 +02:00
Nabil Saleh
3339a272e5
code cleanup
2011-04-29 10:41:36 +02:00
Nabil Saleh
ca767ff3aa
code cleanup
2011-04-29 10:09:04 +02:00
Steven Black
7447ba01f7
jquery.mobile.navigation.js: Changes throughout the file for jQuery coding standards including:
...
* whitespace within parenthesis
* double quotes
* line breaking for object key assignments
Also made several changes suggested by jsHint.
All tests pass as before -- still failing first three tests as before.
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-04-28 21:12:01 -04:00
John Bender
39e3f1be95
Merged pull request #1494 from rs/master.
...
Fix an alert(false) on app init when $.mobile.loadingMessage is set to false
2011-04-28 15:03:31 -07:00
John Bender
ceea4bca66
remove ie debug alert
2011-04-28 15:02:59 -07:00
Bernhard Gschwantner
6da11e97b0
CHG: refinement as proposed by scottjehl
2011-04-28 22:09:02 +02:00
Todd Parker
c2e65107c0
Merged pull request #1503 from eddiemonge/eddie_listview.
...
micro-optimizations and styling changes to listview.js
2011-04-27 13:34:39 -07:00
mark.dawn@gmail.com
20fb94df98
Merge remote-tracking branch 'origin/master'
2011-04-27 23:50:51 +05:30
scottjehl
7c8f8e9406
updated jQuery to 1.6 RC
2011-04-27 07:53:59 -07:00
Kin Blas
52a666d71f
Check $from before dereferencing it.
2011-04-26 16:36:31 -07:00
Kin Blas
19c06952fd
Changes to allow 3rd party transitions. Developers can now register a custom transition by adding their transition handler to the $.mobile.transitionHandlers dictionary. The name of the custom transition is used as the key within the transtionsHandlers dictionary, and should be the same name used within the @data-transtion attribute.
...
The expected prototype for a transitionHandler is as follows:
function handler(name, reverse, $to, $from)
The name parameter is the name of the transition as specified by @data-transition attribute, reverse is a boolean that is false for a normal transition, and true for a reverse transition. The $to param is a jQuery collection containing the page that is being transitioned "to", and $from is an optional collection that tells us what page we are transitioning "from". Because $from is optional, handler developers should take care and check $from to make sure it is not undefined before attempting to dereference it.
In addition to registering custom transition by name, developers can specify a handler to use in the case where a transition name is specified and does not exist within the $.mobile.transitionHanlders dictionary. Within jQuery Mobile, the default handler for unknown transition types is the $.mobile.css3Transition() handler. This handler always assumes that the transition name is to be used as a CSS class to be placed on the $to and $from elements. To change the default handler, simply set $.mobile.defaultTransitionHandler to you function handler:
$.mobile.defaultTransitionHandler = myTransitionHandler;
The changes to make all this necessary are as follows:
- Created $.mobile.noneTransitionHandler which is the default transitionHandler for the framework that simply adds and removes the page active class on the $from and $to pages with no animations.
- Moved class based transition code into a new plugin jquery.mobile.transition.js file. This plugin, when present, overrides the noneTransitionHandler as the defaultTranstionHandler for the framework so that CSS3 animation transitions are available.
- Removed code related to the setting/removal of the ui-mobile-viewport-perspective class. The css3TransitionHandler plugin takes care of automatically placing a "viewport-<transition name>" class on the viewport (body) element. This allows any other transition to specify properties on the viewport that are necessary to accomplish the transition.
- changed the CSS class ui-mobile-viewport-perspective to viewport-flip to match code changes. This makes it more apparent that setting -webkit-perspective is only used with the flip transition.
- Updated js/index.php, Makefile and build.xml to include the new jquery.mobile.transition.js file.
2011-04-26 14:06:10 -07:00
Kin Blas
14f73b27ee
Changes to allow 3rd party transitions. Developers can now register a custom transition by adding their transition handler to the $.mobile.transitionHandlers dictionary. The name of the custom transition is used as the key within the transtionsHandlers dictionary, and should be the same name used within the @data-transtion attribute.
...
The expected prototype for a transitionHandler is as follows:
function handler(name, reverse, $to, $from)
The name parameter is the name of the transition as specified by @data-transition attribute, reverse is a boolean that is false for a normal transition, and true for a reverse transition. The $to param is a jQuery collection containing the page that is being transitioned "to", and $from is an optional collection that tells us what page we are transitioning "from". Because $from is optional, handler developers should take care and check $from to make sure it is not undefined before attempting to dereference it.
In addition to registering custom transition by name, developers can specify a handler to use in the case where a transition name is specified and does not exist within the $.mobile.transitionHanlders dictionary. Within jQuery Mobile, the default handler for unknown transition types is the $.mobile.css3Transition() handler. This handler always assumes that the transition name is to be used as a CSS class to be placed on the $to and $from elements. To change the default handler, simply set $.mobile.defaultTransitionHandler to you function handler:
$.mobile.defaultTransitionHandler = myTransitionHandler;
The changes to make all this necessary are as follows:
- Created $.mobile.noneTransitionHandler which is the default transitionHandler for the framework that simply adds and removes the page active class on the $from and $to pages with no animations.
- Moved class based transition code into a new plugin jquery.mobile.transition.js file. This plugin, when present, overrides the noneTransitionHandler as the defaultTranstionHandler for the framework so that CSS3 animation transitions are available.
- Removed code related to the setting/removal of the ui-mobile-viewport-perspective class. The css3TransitionHandler plugin takes care of automatically placing a "viewport-<transition name>" class on the viewport (body) element. This allows any other transition to specify properties on the viewport that are necessary to accomplish the transition.
- changed the CSS class ui-mobile-viewport-perspective to viewport-flip to match code changes. This makes it more apparent that setting -webkit-perspective is only used with the flip transition.
- Updated js/index.php, Makefile and build.xml to include the new jquery.mobile.transition.js file.
2011-04-26 13:53:11 -07:00
mark.dawn@gmail.com
69a0a47a0c
XPATH Selector was not well formed of type label[for=ID]
...
let say id of an inputbox is x.y.z then query
$("label[for=x.y.z]") gonna fail
$("label[for=\"x.y.z\"]") gonna work
2011-04-26 19:31:43 +05:30
Kin Blas
3a164c6cc8
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-04-22 10:56:55 -07:00
Kin Blas
f7749504b8
Modified the vclick handler code in navgation.js so that it doesn't place the ui-btn-active class on any links meant for interactivity.
...
Removed the return false in the vclick handler of collapsible and replaced it with a preventDefault(). The only reason we were returning false was to stopPropagation() so that the vclick handler in navigation.js didn't place a ui-btn-active on it.
2011-04-22 10:53:24 -07:00
John Bender
cf23361a19
added the single call to local function focus button to ensure menu height calculation is accurate Fixes #1453
2011-04-21 22:30:39 -07:00
Kin Blas
2d2e6d7741
Fix for issue 1461 - Tops of pages missing after dialog click in Safari and iPhone.
...
- Delayed the setting of focus till *AFTER* the scroll position is restored.
2011-04-21 15:31:21 -07:00
eddiemonge
279d71828a
left a test piece of code in previously
2011-04-21 14:40:58 -07:00
eddiemonge
d7bab1f9a5
micro-optimizations and styling changes to listview.js
2011-04-21 14:33:49 -07:00
Kin Blas
1ec80bdc80
I broke button states in my last checkin. I was passing in the wrong element (document) into the new function that finds the button element.
2011-04-21 10:56:04 -07:00
Olivier Poitrey
b4b80cd200
Fix an alert(false) when $.mobile.loadingMessage is false
2011-04-21 15:43:50 +02:00
Kin Blas
d4c7b5da66
Fix from @brukhabtu for issue 1492 - Errors when trying to delete DOM elements.
...
- Check for existence of the bindings object before attempting to use it. Apparently jQuery core strips off any data bindings of an element before calling teardown on it to remove special event handlers.
2011-04-20 18:06:21 -07:00
Nabil Saleh
b10c71814c
further performance optimization:
...
- hiding all elements at once
2011-04-20 17:31:57 +02:00
Bernhard Gschwantner
b2ff26b579
FIX: Problems with forms in nested listviews
2011-04-20 15:12:54 +02:00
John Bender
16a38a61ea
fixed custom select dialog menu transition issues by preceding backward through history. This tightly couples the closing of custom select dialog menus to our hash change history implementation because of how it handles dialogs in dialogs.
2011-04-19 23:28:11 -07:00
John Bender
01c40c2525
select whitespace fixes
2011-04-19 23:28:11 -07:00
Kin Blas
7d9af0b2a8
Fix for issue 1157 - Collapsible block prevents page scrolling on iPhone 4
...
- When we switched to virtual mouse events, I just did a straight translation of the code that existed which basically did the collapse/expand on mouseup. In order to factor in scrolling, I needed to move that code into a vclick handler and stopPropagation() and preventDefault() to make sure the button doesn't activate.
2011-04-19 16:57:13 -07:00
Nabil Saleh
9cb8673e68
data-filter performance optimization
...
- algorithmic optimization of listview.filter
- functional optimization by supporting data-filtertext attribute
includes patch from mathieucarbou: f58631d07d
2011-04-19 11:25:48 +02:00
John Bender
dbd68472b4
whitespace and comment fixes
2011-04-18 22:35:13 -07:00
John Bender
8e42b52767
beginning to move to absolute hashes in all cases, still some more work to do
2011-04-18 21:46:53 -07:00
Kin Blas
c31ee33a0f
Fix for 1407 - Bad scroll performance since A4 on iPhone 3G
...
- Modified vmouse code so that it uses $.data() instead of $().data() which is significantly faster.
- Modified the navigation and buttonMarkup code so they stop using live(). The vmouse code triggers several events during the touch events, which in turn causes the underlying event code to call $.closest() with the selector used during the live() call to figure out if the event should be handled. This turns out to be very expensive, so instead, we now just bind directly to the document, and walk the DOM manually to figure out if we should handle it. This is much faster since we are avoid triggering multiple nested function calls.
2011-04-18 16:13:50 -07:00
Nabil Saleh
702e89f034
fix for Issue #1425
...
- active state was not removed from buttons when they where not used for pagenavigation
2011-04-18 15:01:31 +02:00
scottjehl
472cbb1778
moved calls into one. #cleaning
2011-04-17 14:24:47 -07:00
scottjehl
b649f17d9d
one call to $.type
2011-04-17 12:11:03 -07:00
Kin Blas
8c71ee5dff
Fix for issue 1458 - Listview thumbnails aren't rendering correctly.
...
Needed to modify _itemApply() to look for the first image that is the first child of its parent. I may need to tweak this at a later point because the selector is still too general.
2011-04-14 23:36:58 -07:00
John Bender
2242684e59
added support for query params with dialog hash keys
2011-04-14 21:49:50 -07:00
John Bender
59bd1400ad
check the url saved on the page element in the history stack to avoid checking agains the dialog nonsense url Fixes #1433
2011-04-14 21:49:50 -07:00
scottjehl
af7451d5ff
switched to boolean check and removed the second value. Now this is only true in old webos, where it should be.
2011-04-14 18:10:22 -04:00
Kin Blas
609d1de5f4
Fix for issue 1446 - Can't drag slider in 1.0a4.1 (Android 2.1)
...
- Don't bind and unbind our touch listeners dynamically. This gets Android 2.1 into a strange state where it stops dispatching touch events. Instead, we now register our touchmove, touchend and scroll listeners at the same time we register our permanent touchstart listener, we then block and unblock processing in our touch listeners via a flag.
2011-04-13 15:52:51 -07:00
Kin Blas
212f9ed237
Modified _createSubPages() to reduce the number of property lookups and function calls per iteration.
2011-04-12 14:33:20 -07:00
Kin Blas
12c8c61e85
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-04-12 13:55:15 -07:00
Kin Blas
98dc036ff0
Fix for Issue 1424 - Adding items to listviews on a4.1 is too slow
...
- Some optimizations to speed things up:
- Modified _itemApply() to make use of item.children() and filters. Also got rid of some unused code.
- Convert .each() in refresh() to a loop.
- Cache some $list.jqmData() values so we don't do it for each list item.
2011-04-12 13:51:27 -07:00
scottjehl
c3fd9c1835
made sure a couple of variables are locally scoped. Fixes #1403
2011-04-12 15:11:14 -04:00
John Bender
aee4c631da
removed stripQuery helper to reduce confusion and complexity as striping the query param from a url is much more complex than a hash as it was originally intended for
2011-04-12 01:14:05 -07:00
John Bender
a5add9a974
added handling for identical query param href/action on the same page
2011-04-12 00:58:24 -07:00
John Bender
8d3dc2cbc2
query param href/actions require absolute path prefixes when no relative path information is contained in the hash
2011-04-12 00:22:42 -07:00
John Bender
681f2a2073
handle relative query param links and forms Fixes #1160
2011-04-11 23:40:53 -07:00
John Bender
d6439d235f
removed duplicate current page check in favor of fixing the off by one bug
2011-04-11 22:59:51 -07:00
John Bender
09b736a399
minor refactor from Scott's original suggestion on the issue
2011-04-10 22:59:06 -07:00
John Bender
c5ba91f0b9
navigation whitespace
2011-04-10 22:58:21 -07:00
Kin Blas
0ef954575a
Fix for issues:
...
1333 - Delay when scrolling over list when data-theme="d"
1368 - Listview refresh performance on a4
1407 - Bad scroll performance since A4 on iPhone 3G
Removed the checking for window.pageX/pageY in the vmouse touch callbacks. Accessing pageX/pageY causes the browser to flush its rendering queue.
2011-04-08 11:01:41 -07:00
scottjehl
3da5f05f75
wrapped the else if/else in an else to prevent an unnecessary dom walk until we have to make it.
2011-04-07 16:50:10 -04:00
scottjehl
97f5a9565f
To ensure focus and scrollTo don't conflict (when possible), I set the focus order on page show to 1) previously clicked item if revisiting that page 2) page title 3) first focusable item in the page. Fixes #1342
2011-04-07 16:27:32 -04:00
scottjehl
b4088b9422
don't add the class to a disabled button. Fixes the checkbox test
2011-04-07 15:34:17 -04:00
scottjehl
cd0ad522ba
moved the active state vclick to navigation
2011-04-07 15:28:52 -04:00
scottjehl
784f5974e5
make sure collapsibles don't have a sticky on-state.
2011-04-07 15:03:29 -04:00
scottjehl
982b7d4b15
Make navigation feel more responsive through feedback, even though it actually uses the click event again for actual page changes.
...
- set active state on all button vclick events
- cancelled vclick on slider switch handles so it's not too sticky.
- removed addClass in navigation.js as the first change handles it there.
2011-04-07 14:41:45 -04:00
scottjehl
9a1b2dcb3c
changed name of interal function loadComplete to pageChangeComplete
2011-04-07 11:33:04 -04:00
Martin Kou
4dc2560895
Fixed yet another duplicate tap event bug.
2011-04-06 23:39:41 +08:00
John Bender
141127b903
fixed scoping issue that was causing the checkbox check to fail, tests to follow Fixes #1328
2011-04-05 23:47:34 -07:00
Kin Blas
c7aadd8a47
Fix for issue 1379 - vmouseclick or vclick?
...
- Changed typo "vmouseclick" to "vclick".
2011-04-05 15:57:37 -07:00
Kin Blas
600a43f746
Fix for ssue 1369 - vmouseup event has no [client/page/screen][X/Y] properties on iOS devices
...
- Modified createVirtualEvent to use changedTouches if touches doesn't exist.
- Also filed issue 1373 about the fact that we really need to be tracking touch identifiers in the vmouse code.
2011-04-05 10:21:54 -07:00
John Bender
05cc415f0c
fix for current page links
2011-04-04 23:41:05 -07:00
Kin Blas
d43bbfc52a
Switch back to hijacking links on the click event. We'll focus on improving "percieved" visual performance since launching a page load and transitions on vclick opens us up to too many problems:
...
- Third party click handlers never called.
- Touch and click target mismatches due markup changes before the click events are generated. (What looks like a double click event)
2011-04-04 10:00:24 -07:00
John Bender
5c37beaa29
activeElement conditional for windows support Fixes #1294
2011-04-02 00:03:37 -07:00
Kin Blas
58369ec943
Added missing comma in var declaration.
2011-04-01 14:05:46 -07:00
Kin Blas
8cd0d2c679
I'm not sure how this happened, but the dataType fix for Issue 991 disappeared between commits 61005944 and 7503f62a.
...
Adding it back in to fix Issue 1349 - File urls still not working in alpha 4 as shipped.
2011-04-01 13:37:18 -07:00
John Bender
f2525b06de
moved attribute call to jqmData call
2011-04-01 02:09:05 -07:00
John Bender
fad90ca99a
navigation white space
2011-04-01 01:48:38 -07:00
John Bender
74d13ee034
whitespace in mobile core
2011-03-31 23:39:09 -07:00
scottjehl
7d04d3eb37
updated to jQuery 1.5.2
2011-03-31 18:09:46 -04:00
scottjehl
cbd1e4cb4c
Merge remote branch 'origin/master'
2011-03-31 17:49:15 -04:00
scottjehl
ec8a9cfed4
Merge remote branch 'origin/master'
2011-03-31 17:40:16 -04:00
Kin Blas
ae06612eca
Clear our preventClickDefault and stopClickPropagation locals in the live click handler.
2011-03-31 14:39:11 -07:00
scottjehl
4839d82e54
removed class we weren't using
2011-03-31 17:31:16 -04:00
scottjehl
f241a858b5
fixed ordered lists in readonly OL listviews. Fixes #1144
2011-03-31 17:24:09 -04:00
scottjehl
19400af5f6
removed navigation-specific list keyboard handling and ARIA out of listview and over to select, which is the only place it's used. Lists are also now much friendlier to readonly markup - so forms and all of the formatted content previously supported in navigation-based listviews now work without an anchor wrapper.
2011-03-31 17:06:20 -04:00
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
scottjehl
eb2845d1dc
fixed one additional back button condition mentioned in issue #930 where the back button is added to a page that is directly linked with no hash. All navigation tests passing. https://github.com/jquery/jquery-mobile/issues/issue/930
2011-02-01 00:32:59 -05:00
scottjehl
6eefb23406
changed the name of urlHistory.listeningEnabled to urlHistory.ignoreNextHashChange. The name more accurately reflects the purpose of this internal toggle. Unit tests included. Also Fixes #930
2011-01-31 23:56:56 -05:00
scottjehl
35b1df81e7
changePage was firing more than once because hash listening was not disabled long enough to prevent listening of the resulting async hashchange event after setting location.hash. This change makes urlHistory.listeningEnabled act as an internal toggle (as it used to), so it is only meant for ignoring a single hashchange event. A future change might be appropriate to change its name to something more like "ignoreNextHashChange".
...
Unit test included.
Fixes #930
2011-01-31 23:47:01 -05:00
scottjehl
3162428558
added hashListeningEnabled global flag. This is meant as a global config option for end users to disable hashchange listening (as opposed to urlHistory.listeningEnabled, which is an internal toggle). Unit test included. Fixes #748
2011-01-31 23:25:36 -05:00
scottjehl
3b5b615451
whitespace and code style
2011-01-31 22:43:17 -05:00
scottjehl
d509404b72
Merge remote branch 'origin/master'
...
Conflicts:
js/jquery.mobile.navigation.js
2011-01-31 17:33:25 -05:00
scottjehl
b3a8230638
This commit includes simplifications to the hashchange event handling & changePage logic, which results in a few bug fixes and removal of some previous limitations. Details:
...
- jquery.mobile.core.js no longer creates pages from every page and dialog in the DOM automatically at domready. Instead, pages are created as they are referenced via changePage, which can speed up pageload in multi-page documents, and means local "dialogs" referenced via data-rel="dialog" no longer need a data-role="dialog" attribute when served.
- in changePage, "from" is now allowed to be undefined. This simplifies the logic involved in showing the first page, which never had a "from" page, and previously needed a custom pageChange workaround to accommodate that.
- The pageshow event is no longer used as a callback for returning false and preventing the $.mobile.activePage from being set to the newly shown page. In other words, a page always becomes $.mobile.activePage once its shown now (the only reason this was optional before was because of a dialog restriction that's no longer true)
- the hashchange event logic for showing a particular page is now greatly simplified. It either shows the page referenced in location.hash, or if there's no hash it changes to the first page in the dom. This means every pageshow (including the first one) now uses pageChange internally.
- the hashchange event listener is no longer disabled when ajaxEnabled == false. Doing this before prevented local non-ajax page navigation from working properly. To disable hashchange listening, use $.mobile.urlHistory.listeningEnabled. We might consider defining (or moving) this on the $.mobile hash later as well for easier access.
- The internal var $.mobile.startPage is now $.mobile.firstPage, because it's not necessarily the page you started on, but merely a reference to the first "page" in the dom.
- Back buttons are auto-added to every page after the first one you first visit (this includes generated pages, such as those in a multipage document or nested listviews). Keep in mind that a "back" button does not take the place of a standard "home" link, and when building an app with jQuery Mobile, it's good to make use of both (particularly on deep-linked pages). Fixes #908
2011-01-31 17:05:57 -05:00
John Bender
591593dd49
misplaced semicolon
2011-01-31 00:13:01 -08:00
adammessinger
cb4f540645
Fixes #900 - buttons with rel attribute set to external don't show active state
2011-01-30 23:43:53 -08:00
John Bender
8b5f083974
whitespace and missing semicolon in setTimeout for non webkit animationComplete
2011-01-30 22:03:30 -08:00
Alex Kovar
4830ac9e9b
tweak for animationComplete
2011-01-30 23:00:51 -06:00
Alex Kovar
62af59983f
made $.fn.animationComplete behave more consistently between webkit/non-webkit. Closes gh-918
2011-01-30 17:06:33 -06:00
scottjehl
2f9d1bce33
position loading message either center screen (if scrollTop supported), above active clicked button (if defined), or 100px off the top. Fixes #892
2011-01-30 13:34:45 -05:00
John Bender
badefe1ee1
whitespace and missing semicolon fix
2011-01-30 00:19:15 -08:00
scottjehl
29fbc9c3c5
removed the Position plugin and modified selectmenu to position its menu without it. Removes off about 3-4kb after minify.
2011-01-29 07:15:40 -08:00
scottjehl
58cb69788c
bound slider drag event handling to touch and mouse events, which allows us to support Opera Mobile and others. Fixes #852
2011-01-28 15:47:03 -08:00
scottjehl
b4c8e2f98e
moved search input clear buttons over to "tap" event
2011-01-28 15:20:56 -08:00
scottjehl
1b72203096
checks and radios no longer check when a scroll starts on top of them. Fixes #893
2011-01-28 14:39:58 -08:00
scottjehl
b10c5c04c2
don't destroy dialogs on close. Now same-page dialogs can be reopened after close, and selects don't need to unbind dialog change events to override the destroy.
2011-01-28 14:30:24 -08:00
John Bender
e5fd56985c
added global native select configuration, docs to follow. Also corrected selector error when reloading a lib in tests
2011-01-27 23:20:57 -08:00
John Bender
1afb3a08f0
whitespace corrections in core
2011-01-27 22:53:17 -08:00
John Bender
b1d356bfd7
Merge branch 'nativeselectmenu'
2011-01-27 09:50:40 -08:00
Jesse Streb
d3077b491c
[455] Am now setting the min-height of a page so that the address bar can always be hidden on a silent scroll. This helps our transitions feel smoother as the page does not jump down if the page is not taller then 100% of the window. On orientation change we also update this value.
2011-01-27 12:28:04 -05:00
Jesse Streb
378fb51225
[ #455 ] For the transitions we now have overflow: hidden in order to limit the flickering. We always scroll to the top before we start our transitions in order to make it scroll. The CSS changed to have overflow: hidden during transitions and have a height that is larger enough to keep the address bar hidden.
2011-01-27 12:28:04 -05:00
scottjehl
e2c66fad49
Merge remote branch 'origin/master'
2011-01-26 22:15:10 -08:00
John Bender
d94e25acd6
merge from origin selectmenu fixes
2011-01-26 21:35:00 -08:00
John Bender
b81248f238
fixed android select menu failure with a delay. I'm doubtful that this is the best solution to the problem but the cause was the click being passed through to the screen or the select menu itself a split second after opening. Open to alternatives. Fixes #873
2011-01-26 21:20:40 -08:00
scottjehl
9a492d06fd
allow form data to be passed to $.mobile.changePage as a query string or object.
2011-01-26 22:04:36 -05:00
scottjehl
61bee4e276
fixed issue with select menus not opening again after you close them.
2011-01-26 21:02:08 -05:00
scottjehl
d1976fa265
removed click handler on back button - used data-rel='back' instead.
2011-01-26 18:57:14 -05:00
scottjehl
fa2b1903de
only add a back button when there's a history entry to return to.
2011-01-26 17:56:20 -05:00
Kin Blas
63a82967fa
Temporary workaround for Issue 785 - jQM text input forces use of iOS auto-correction.
...
- Added code to enhanceControls() that sets the autocorrect and autocomplete attributes on all inputs of type="text" to "off". This basically disables the use of autocorrection on iOS.
- Modified the code in enhanceControls() to cache the form controls query to reduce the number of times we search for controls in the current page.
2011-01-26 14:31:47 -08:00
scottjehl
700ca984bb
finished up some navigation changes. Also added and documented a data-rel="back" attribute, which can be applied to links to enhance them to mimica the browser's back button (good for closing dialogs). In these changes, dialogs now create a history hash entry, and the back button works better for closing dialogs. Also, nested list deep-linking is restored after a recent regression. Tests in Navigation and Listview are passing. Fixes #885 . Fixes #866 .
2011-01-26 14:38:17 -05:00
scottjehl
2c6cc45ad0
incomplete, but close to fixing the dialog-create-history entry piece. Also includes fix for nested-listview deep linking regression.
2011-01-26 14:27:10 -05:00
John Bender
244e46b8ed
data-native attribute check for native select menus Fixes #847
2011-01-25 23:12:20 -08:00
John Bender
aa234961cc
whitespace correction on rebase fix
2011-01-25 22:50:55 -08:00
scottjehl
0cdf9df11c
added option for useNativeMenu. Should be updated so, when set, the custom menu markup is never created.
2011-01-25 22:43:53 -08:00
scottjehl
9ed13f86c8
hashchange event handler should still load the first url, even if Ajax is disabled. Fixes #879
2011-01-25 22:39:29 -05:00
John Bender
bc473f48a7
comments for added clarity on bindings
2011-01-24 23:55:52 -08:00
John Bender
0cdd401f3a
removed commented code from refactor
2011-01-24 23:54:22 -08:00
John Bender
23807769ac
refactor off slider to move value retrieval to closure for _create method
2011-01-24 23:53:17 -08:00
John Bender
442e4b19b0
updated slider refresh function with an extra param for preventing validation on its input Fixes #468
2011-01-24 23:38:50 -08:00
scottjehl
3df24fab6d
fixed a regression in safari where images wouldn't load properly because base was being set after html was appended.
2011-01-25 00:29:19 -05:00
scottjehl
5d5336d8b0
fixed firefox regression. check if base is set/supported before setting.
2011-01-24 23:56:53 -05:00
scottjehl
0ba9acfc33
added support for URL updating via a preset data-url on the page div when it is sent from the server.
...
If data-url is set on a page div when it returns from the server, it's value will be used to replace the url in the hash, and as the base url for future requests if it adds additional segments (such as a trailing slash). This will enable developers to work around the limitation of directory links requiring a trailing slash, and will also allow developers to specify a new url after a redirect occurs (such as after a login). Fixes #867
2011-01-24 19:35:45 -05:00
scottjehl
a5b8e42fc1
updated jQuery to 1.5rc1. This update includes Nokia support in jQuery core, which is getting closer in JQM itself.
2011-01-24 17:56:32 -05:00
scottjehl
80b0d9ef4b
Merge branch 'master' of github.com:jquery/jquery-mobile
2011-01-24 13:05:04 -05:00
scottjehl
4a9b374eea
make sure change events fire whenever custom checks/radios change.
2011-01-24 13:04:41 -05:00
Kin Blas
1dad50e536
Fix for the header/footer positioning problem, mentioned in issue 58, that is caused by the browser url/nav bar scrolling offscreen due to the silentScroll() call triggered when the document is first loaded.
...
- Modified silentScroll() to trigger a "silentscroll" event. This was necessary because programatically scrolling the window does not generate "scroll" events.
- Got rid of the hideAfterDelay() function that was not used.
- Added startShowTimer() and clearShowTimer() functions.
- Added event handlers for "resize" and "silentscroll" events. This causes headers/footers to be positioned properly as "scroll" and "orientationchange" events cause the visual viewport to resize.
Issues this fix causes:
- On some Android platforms, clicking in textfields/textareas trigger a "resize" event. This causes the footer to show up in the minimized visual viewport, right above the keyboard.
2011-01-24 07:11:19 -08:00
scottjehl
977e075ece
improved tap event and added a quick event logger page so we can get these neglected events in order.
2011-01-23 19:34:17 -05:00
scottjehl
2e6a396278
added ajaxEnabled option. ajaxLinksEnabled and ajaxFormsEnabled are deprecated and will be removed by 1.0. Fixes #851
2011-01-23 19:03:35 -05:00
scottjehl
2ebf659fbd
made sure linking to the same page from within a dialog closes the dialog.
2011-01-23 18:26:48 -05:00
scottjehl
be8eb3d0c6
deprecated data-back attribute on links in favor of data-direction="reverse". Updated docs and relevant demos.
2011-01-23 18:12:46 -05:00
scottjehl
9b57c46349
Refactored urlStack and updated dialog and page plugins to match. jQuery Mobile's internal history now attempts to follow the history menu when urls change from hashchange, even for changes that go multiple steps forward or back. The internal history stack is now pruned based on whether a user goes back and then changes direction, whereas before a back-button click would result in a pop off the history. Instead we now maintain an active index number in the history stack, which allows us to maintain references to transitions that are saved on pages reached through clicking the forward button as well. This fixes #636 .
...
In the process, some other small changes should be noted:
urlStack is now urlHistory, a hash of methods and properties used for history stack management (stack, activeIndex, getActive, getPrev, getNext, addNew, clearForward, and listening Enabled). All these are documented inline and exposed on $.mobile.urlHistory (I'm not sure these will be publicly documented, but just exposed internally for plugins for now).
$.changePage has two argument changes: the "back" argument is now called "reverse"; this results in no change from an end-user standpoint, but reflects the fact that it only reverses the direction of a transition without affecting the internal history stack, and second, a new argument at the end defines whether changePage was called from a hashChange which makes that url open to history menu guessing.
2011-01-23 17:33:36 -05:00
John Bender
b671753039
moved page above core in the makefile, build xml, and manifest under js. Fixes #619
2011-01-22 22:31:16 -08:00
scottjehl
9e4b0a484c
Overhauled path object and exposed it and the base object via $.mobile. Form and Link handlers now use the path methods internally. Unit tests adjusted, but more are needed to fully cover the path and base propeties and methods. Fixes #566 .
2011-01-22 17:42:07 -05:00
scottjehl
6fb50fd289
use inArray instead of indexOf. Fixes #828
2011-01-22 14:04:04 -05:00
scottjehl
fbb2fc2c60
lengthened timer for Android, and added a check to let through the same event type for double-taps.
2011-01-21 18:29:28 -05:00
scottjehl
aa0a61c407
followup on previous commit. made sure devices with both touch and mouse events work with either input type. Also fixed regression with radio inputs.
2011-01-21 18:13:02 -05:00
scottjehl
38c1c24e5d
moved check/uncheck event on label to touchend/mouseup. Fixes #753
2011-01-21 17:45:22 -05:00
scottjehl
a1cb31a2c7
navbar removes active state but doesn't apply new one. Now it does. Useful in js-generated links. Fixes #669
2011-01-21 16:20:33 -05:00
scottjehl
37f9680c0f
only the first image should be an icon/thumb. Fixes #699
2011-01-21 15:33:40 -05:00
John Bender
e5d2bf1b66
added target check to $.mobile.isExternalLink
2011-01-20 23:05:37 -08:00
John Bender
ffafa78e62
added tests for external links in dialogs, small refactor for dialogClickHandler function
2011-01-20 22:20:16 -08:00
scottjehl
52f86f2f9a
make sure first textnode of li is used in listview title, regardless of newline chars. Test included. Fixes #715
2011-01-20 17:48:44 -05:00
scottjehl
bfa6f6a3af
Merge remote branch 'origin/master'
2011-01-20 16:28:28 -05:00
scottjehl
48b69b7a71
loading message opens above offset of active button, when possible. This makes it visible on devices that don't support scrollTop (webOS, etc)
2011-01-20 16:28:23 -05:00
Kin Blas
e4042266fb
Fix for issue 841 - Persistent footers persist even when going to other pages that don't have footers or don't have footers with the same data-id.
...
This was a regression I caused with my previous checkin. The fix is to simply null out stickyFooter in the pagebeforeshow callback.
2011-01-20 12:51:28 -08:00
Kin Blas
161f5e6ae3
Removed jquery.js from js/index.php and updated all html doc/experiments/test files that incuded "js/" so that they also include jquery.js manually.
...
This makes our include model match the include model on the CDN, and allows devs to make use of mobileinit for debugging some of the samples since that must be set up after jquery.js, but before jquery-mobile.
2011-01-20 11:26:12 -08:00
John Bender
8a5060de13
fixed issue with dialog click handler breaking transitions on external links Fixes #642
2011-01-19 23:48:30 -08:00
John Bender
dcf9a19c31
whitespace issues in mobile core
2011-01-19 21:43:36 -08:00
scottjehl
f85e4c916b
small workaround to get media query function to work on Nokia
2011-01-19 16:35:15 -05:00
Kin Blas
02c9264f0d
Fix for issue 613 - Jquery Mobile ignores original 'base' tag defined in HTML
...
- Fixed baseTagTest() in jquery.mobile.support.js, so that it uses any pre-existing base tag for testing. This fixes the bug on Webkit (Safari) where the relative paths for links were being resolved/expressed with the document path instead of the original base path.
- Modified the base code in jquery.mobile.navigation.js so that it uses the initial path of a pre-existing base tag, instead of always using the document path. This means that a document with a URL such as:
http://foo.com/a/b/c#docs/pages/index.html
That uses a base tag like:
<base href="http://foo.com/bar/ ">
Will resolve properly:
http://foo.com/bar/docs/pages/index.html
so the mobile page gets loaded properly.
- Reduced the path.get() function down to a couple of regexp replace() calls.
2011-01-18 09:18:22 -08:00
John Bender
b9bfa41846
poorly written comment
2011-01-15 23:36:59 -08:00
John Bender
f850311935
force previously created dialog for long menus. Fixes #807
2011-01-15 22:47:44 -08:00
John Bender
d4f4d474d1
whitespace cleanup for mobile forms select
2011-01-15 22:44:00 -08:00
Kin Blas
fde3aaaad5
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-01-14 13:40:04 -08:00
Kin Blas
cd344f0440
Fix for Issue 811 - All resolution breakpoint classes added to <html> element, throws off label and form element flow on narrow screens.
...
- We were firing off our fake orientationchange event before the viewport meta tag is injected. This causes us to get the default document width for the device which is much wider than the actual device-width. We now fire off the event after the dom ready event fires.
2011-01-14 13:37:47 -08:00
maggiewachs
b6ec29a7e5
Fixed bug 676 where the switch toggle (slider) wasn't updating on select change:
...
https://github.com/jquery/jquery-mobile/issues/labels/5%20-%20Critical#issue/676
2011-01-14 16:06:18 -05:00
scottjehl
7cf5aea8e3
fixed up those busted select menu headers. Fixes #810
2011-01-14 15:49:21 -05:00
scottjehl
3b92410ff3
some additional changes to make scrolling from a select button work ok.
2011-01-14 15:16:03 -05:00
scottjehl
288fe45ff1
added option for useNativeMenu. Should be updated so, when set, the custom menu markup is never created.
2011-01-14 13:02:24 -05:00
Pavel Karoukin
5b4c23b67d
add data-url to dialog 'pages' as well
2011-01-14 23:44:25 +08:00
Pavel Karoukin
794adfeca0
Click on form in dialog prevents exit from dialog
2011-01-14 23:44:24 +08:00
scottjehl
87c7b57da9
allow scroll to work when touch start begins on a select button. Fixes #804
2011-01-14 10:35:26 -05:00
Jonathan Hinkle
0413542753
rename selectmenu's exposed "options" to "optionElems" to avoid conflict with existing variable containing configuration options
2011-01-14 22:48:51 +08:00
ehynds
9e6a3df6b1
make sure the options cache is updated after a refresh, and that the click handler reads from this cache.
2011-01-12 22:01:50 +08:00
Jesse Streb
924c2c3e9b
updated select to no longer wrap the input element as it is already jQuery object. Thanks ehynds.
2011-01-12 08:01:37 +08:00
Jesse Streb
5b238ea1ce
https://github.com/jquery/jquery-mobile/issues#issue/578 Updated to use the selector that Scott suggested in order to make checkboxes not dissappear. One issue I noticed is that the page still transitions to the 'new' page even though it is really the same page. I have a fix for this that will post in a separate drop.
2011-01-12 08:01:36 +08:00
D. Elmo Peele
1a21b0581c
Avoid triggering a 'tap' event if the event target on touchStop differs from the original touchStart target.
2011-01-12 07:47:17 +08:00
Kin Blas
5617d0c8d3
Merge branch 'delay_duplicateCachedPage' of https://github.com/medovob/jquery-mobile into pull662
...
Had to fix merge conflicts in:
js/jquery.mobile.navigation.js
2011-01-11 14:12:07 -08:00
ehynds
95819c8c60
same fix in a few other places
2011-01-12 05:30:56 +08:00
ehynds
b71cc32d78
"this" in this context is already a jquery object
2011-01-12 05:30:56 +08:00
scottjehl
44d6064fb6
Merge branch 'no_enhance_for_hidden' of https://github.com/hynkle/jquery-mobile into hynkle-no_enhance_for_hidden
2011-01-11 13:42:30 -05:00
Kin Blas
8a70cdb3de
Initial patch from pull 672 had incorrect check for backbtn data value. Changed it from $this.data("backbtn") === false to $this.data("backbtn") !== false to match the original logic that was in place prior to the patch.
...
Original patch missed a nobackbtn reference in jquery.mobile.forms.select.js.
2011-01-11 09:34:50 -08:00
Kin Blas
8050fb0d01
Merge branch 'master' of https://github.com/walkingeyerobot/jquery-mobile into pull672
2011-01-11 09:04:32 -08:00
John Bender
96d941ebe9
added the ability to disable ajax forms with data-ajax=false, attribute up for debate, Fixes #519
2011-01-08 23:47:07 -08:00
Jonathan Hinkle
6b799dad71
added 'hidden' to the types of inputs not to be enhanced by textinput
2011-01-07 12:33:59 -05:00
Kin Blas
c910f4b01f
Fix for issues:
...
470 - Multiple Footers when using data-position=fixed and data-id=[someid]
773 - The fixHeaderFooter pagebeforeshow live function is not triggered for the initial page shown
- Removed the findStickyFooter() function.
- Reworked the logic in the pagebeforeshow live function. We now add a ui-sticky-footer class to the sticky footer element. This will guarantee that we find the sticky footer if it already exists. We may at some point want to consider the use of ids on the sticky footers so that we don't have to crawl the entire document.
- Moved the live pagebeforeshow and pageshow calls outside of the DOMReady function so that they get registered as soon as the plugin is loaded. This guarantees that they will be triggered when the core plugin's DOMReady function fires.
- This fix makes issue/pull-request 765 obsolete.
2011-01-07 01:07:22 -08:00
maggiewachs
926982b4f0
Fixed bug 595, where form elements were not properly inheriting the theme. Form controls need to be enhanced after the page containers so they'll pick up on the containers' theme classes.
2011-01-05 11:55:41 -05:00
John Bender
3a9652c9cc
slider switch keyboard access tests Fixes #632
2010-12-26 23:09:11 -08:00
John Bender
06b83ad67a
slider switch now keyboard enabled
2010-12-26 17:45:25 -08:00
scottjehl
53392bc7ca
Merge branch 'issue_723' of https://github.com/ehynds/jquery-mobile into ehynds-issue_723
2010-12-23 14:34:17 -05:00
ehynds
edfafe0c01
if the close icon in a full-page select is clicked on, fire the selectmenu close handler instead of the dialog close handler
2010-12-23 13:19:34 -05:00
scottjehl
e9b076bcc0
Merge branch 'master' of https://github.com/louy/jquery-mobile into louy-master
2010-12-23 09:20:55 -05:00
John Bender
b2d58c1f30
slider keypress tests, comments, and style addition to navigation test page
2010-12-22 23:18:14 -08:00
John Bender
39729becd6
standard keyboard interaction working with slider, tests to come
2010-12-22 22:40:54 -08:00
John Bender
8ec3ae594d
added keyCodes, Home and End working for range slider
2010-12-22 16:30:55 -08:00
Louy Alakkad
4dcb65fc7a
fixing spaces
2010-12-22 07:53:07 -08:00
Louy Alakkad
59e8ee3137
Matching the jQuery code style guidelines.
2010-12-22 07:52:08 -08:00
scottjehl
fd821b7440
Merge branch 'select_multi' of https://github.com/ehynds/jquery-mobile into ehynds-select_multi
2010-12-22 10:05:40 -05:00
louy
ba99290480
Merge branch 'master' of git://github.com/jquery/jquery-mobile
2010-12-18 16:06:55 +02:00
louy
d435979daf
Allow developer to apply themes on checkboxes/radio-buttons.
2010-12-18 15:20:15 +02:00
John Bender
b8babd1003
removed console log and added test for default transition
2010-12-16 19:12:58 -08:00
John Bender
7ffec259c5
added tests for explicit transition on back
2010-12-16 18:21:46 -08:00
John Bender
67aed1320b
prefer explicit transition even when the url is popped of the stack Fixes #627
2010-12-16 18:20:17 -08:00
jzaefferer
e70c17d625
Extend nested listviews to accept more then just the title in parent list item. Currently requires predefined anchor to be present, based on discussion in ticket. Extended lists-nested.html to test both variants. Fixes #253 - only text nodes allowed in nested listview
2010-12-15 15:54:13 +01:00
Mitch Foley
ad757718c4
actually reversing backbtn logic this time.
2010-12-13 11:11:21 -05:00
Mitch Foley
df3bc91f80
renaming nobackbtn to backbtn.
2010-12-13 10:54:26 -05:00
John Bender
95ef08b269
perspective class only added on flip page transition or any transition added to the perspectiveTransitions local var in the transitionPages function Fixes #568
2010-12-13 02:21:40 -08:00
scottjehl
9420083a7b
quick update to set the base.href back to the starting path, just in case, as some browsers may retain the base href after the element is removed from the DOM. Explained better here: b2add677f0
2010-12-11 13:50:07 -05:00
Kin Blas
3062199ac6
Some tweaks to kptdobe's patch from:
...
https://github.com/jquery/jquery-mobile/pull/649
- Changed hideOnTouchEnabed to touchToggleEnabled.
- Fixed problem that would allow the toolbars to show on touchstop, if the starting state was "inline" to begin with.
- Moved the touchToggleEnabled checks in touchstart/touchstop so that they wrap the entire code in the function. We don't want to do any work if we don't need to.
- Removed the forced hide() call in touchstart.
Added the missing fadeout animation reference inthe fade.in transition rule.
2010-12-10 10:17:16 -08:00
Richard Stutfield
0a87b59a04
Navigation: delay removal of duplicateCachedPage
2010-12-10 12:27:14 +00:00
kptdobe
9c3762978e
Allow to disable headers hide on touch behavior
2010-12-09 15:02:45 +01:00
John Bender
553b58567f
added protection for nested links to ui-bar selector with tests
2010-12-09 00:16:48 -08:00
John Bender
970f46c5e0
header and footer links will now remain unstyled, Fixes #524
2010-12-08 22:16:45 -08:00
ehynds
c982b93794
fixed a bug in single selects where clicking on a selected option would un-select it. this logic should only apply to multiple selects.
2010-12-08 15:45:23 -05:00
Kin Blas
4882c068b0
Modified loadComplete() so that it always fires off the "show" event. The idea here is that calling preventDefault() on a "hide" event shouldn't prevent the "show" event from being dispatched. Calling preventDefault() on the "show" event still prevents the "to" page from becoming the active page.
...
Removed redundant target delcaration in the <a> live click callback.
2010-12-08 12:40:21 -08:00
ehynds
1d2ef4f606
removed console.log statement
2010-12-08 09:43:24 -05:00
ehynds
43a6a3bb1b
refactored header create logic to be consistent with the rest of the widget; fixed bug when using optgroups within a multiple select
2010-12-08 09:41:00 -05:00
ehynds
94ac0a88be
fix placeholder logic
2010-12-07 18:05:26 -05:00
ehynds
9e30e54159
removed extraneous comment
2010-12-07 15:49:54 -05:00
ehynds
8eb553f884
multiple select functionality
2010-12-07 15:45:20 -05:00
scottjehl
80d56e655b
Changed page navigation scripting to use data-url attributes instead of IDs for storing page URLs. This fixes a number of issues, most importantly #477 , which exposed a conflict between jQuery's selector engine that would result in un-enhanced pages whenever linking between two pages in the same directory.
...
The shift away from interal ID attribute usage also allows users to bind page events (pagecreate, pagebeforecreate) to a page div by its ID, which was a frequent cause of confusion when it didn't work as expected in former versions of the framework.
Seemingly unrelated: these commits allow you to specify data-role="dialog" in multipage and single page templates. In multipage templates, the role must be on the page (a link with data-rel alone will not work in multi-page). This addresses issue number 464, but may need further testing for obscure scenarios.
Fixes #477 (Pages are not enhanced when linking to a filename without a path)
Fixes #493 (Click the same link twice -> blank page)
Fixes #513 (closing dialog + returning to the same dialog)
Fixes #550 (changePage() not updating hash for internal pages - breaks )
Fixes #464 (Dialogs don't work within multi-pages)
Fixes #633 (Recent change to prevent same-page requests breaks select menu close button)
Fixes #599 (Page ids & page specific events)
Fixes #634 (After a bad page request, base url is not reset to current path)
booya.
2010-12-07 12:05:10 -05:00
scottjehl
91a5b8c098
Changed the way submit buttons work. Now, form input/button elements are appended to a div-based "button", invisibly filling its width and height. The user now interacts directly with the native control, rather than having to trigger a click from another anchor (which formerly prevented some native submit event handling from working).
...
A workaround is still included to ensure the input's name/value is submitted along with the form when it's not a type=reset, as this is necessary for the button data to appear in the serialized form data.
2010-12-06 11:40:28 -05:00
scottjehl
2931fffb91
blur the active/focused element on changepage sooner. Thx @goulvench
2010-12-04 14:46:41 -05:00
scottjehl
74ebc360ca
make sure hashchange event never causes additional hash changes to occur when responding with a page change
2010-12-04 13:13:55 -05:00
Jesse Streb
b725ff8f6a
https://github.com/jquery/jquery-mobile/issues#issue/493 If changePage is called with to parameter that matches the current page we simply return out of the function
2010-12-04 13:13:55 -05:00
scottjehl
b01478a5e7
make sure forms can submit via ajax AND pass the clicked button's name/value in the serialized data. Fixes #605
2010-12-03 13:08:08 -05:00
scottjehl
6dce87a2ac
hide placeholder options in selectmenu overlays. Fixes #607
2010-12-03 11:32:48 -05:00
ehynds
68150b5bec
adding optgroup support. Fixes #567
2010-12-03 10:57:21 -05:00
ehynds
8062bf0a80
finish merge of select_event_bubbling or whatever i called that branch
2010-12-03 10:47:25 -05:00
ehynds
e2eb9e9298
add disabled option support. fixes #350
2010-12-03 22:30:08 +08:00
ehynds
12f011b7cc
swap return false for event.preventDefault
2010-12-03 07:40:58 -05:00
scottjehl
9423bc199d
fixed issue with listview corner rounding when listviews have only a couple items.
2010-12-01 16:35:17 -05:00
scottjehl
ce5ea07780
don't set hash if back is true. Fixes #582
2010-12-01 12:41:27 -05:00
scottjehl
54568271d9
pageshow and pagehide now fire after the location hash is updated. Fixes #583
2010-12-01 09:52:07 -05:00
scottjehl
17f0340a0a
improved keepNative option so that it's additive on top of data-role=none and data-role=nojs.
2010-12-01 09:52:07 -05:00
scottjehl
efe4c38ad4
added the keepNative option to page plugin, which defaults to this selector "[data-role='none'], .ui-nojs". Add the attribute data-role="none" to any form control or anchor and it will not be auto-enhanced. Thx @pharaoh for the syntax suggestion. Fixes #544 , Fixes #528 , Fixes #529
2010-11-30 18:18:53 -05:00
scottjehl
419787affe
make sure submit button name/value is submitted with form values. Fixes #551
2010-11-29 10:09:26 -05:00
scottjehl
d56380fc22
refactor of jquery.mobile.core.js. Moved all of the page navigation model related scripting into jquery.mobile.navigation.js. This includes event handling for click, submit, and hashchange, all of the base tag management, path management, active link class handling, etc. All existing core tests are passing, and all demos work as expected. More tests are needed in core, and this refactor should make those tests easier to write.
2010-11-25 06:13:51 -05:00
scottjehl
3cb0e3c2d0
fixed typo in propExists. thx @johnbender
2010-11-22 15:48:14 -05:00
scottjehl
a0596434bc
moved the ID creation string escape function from core to listview. No other plugins use it.
2010-11-19 23:21:16 -05:00
scottjehl
ba5fea7f1e
removed theme option from fieldcontain. ish didn't make no sense
2010-11-19 22:52:05 -05:00
scottjehl
93179f9a3d
updated comment about license to match other jQuery projects - MIT "or" GPL
2010-11-19 22:47:47 -05:00
scottjehl
6711e11e97
made sure collapsible doesn't cause the address bar to show up on ios when clicked. Fixes #500
2010-11-19 21:32:17 -05:00
scottjehl
2ed21499d1
made sure address bar doesn't appear when opening select menu
2010-11-19 21:28:38 -05:00
scottjehl
d1c839613d
made sure corners are removed on list items that used to be first or last when new items are appended. Fixes #400
2010-11-19 21:07:34 -05:00
scottjehl
a731e48e68
made sure select button gets active button class while open
2010-11-19 19:19:51 -05:00
scottjehl
76f5c26624
cleaned up css styles - ui-selectmenu instead of ui-listview
2010-11-19 19:15:48 -05:00
scottjehl
b2e306c667
removed theme coloring for selectmenu screen when in overlay mode.
2010-11-19 17:32:09 -05:00
scottjehl
b56939faf7
updated selectmenu to use position plugin for overlay version
2010-11-19 17:31:20 -05:00
scottjehl
23ea598b83
added jquery ui position plugin
2010-11-19 17:30:22 -05:00
John Bender
d0cca83be8
tests for default resolution break points, some missing semicolons, and element reference in each loop
2010-11-19 01:20:55 -08:00
scottjehl
ea8545928e
shifted the order a little
2010-11-18 22:52:35 -05:00
scottjehl
9ff89b7115
renamed jquery.mobile.js jquery.mobile.core.js. updated build files, etc to match
2010-11-18 22:50:33 -05:00
scottjehl
909a0d0f08
removed transitions property from the configuration and updated docs to match.
2010-11-18 22:18:20 -05:00
scottjehl
e7269f4df2
moved orientationchange event trigger over to media js file. Cleaned up event bindings where orientation and breakpoint classes are applied.
2010-11-17 11:55:15 -05:00
scottjehl
82c48b2311
sorted breakpoints ascending after addition
2010-11-17 11:55:15 -05:00
scottjehl
2ade27bdcf
removed old manifest files - index.php is now used in their place.
2010-11-17 11:55:15 -05:00
scottjehl
28a10ec74d
Moved all of the media query and responsive design related scripting to jquery.mobile.media.js. This plugin can run independent of mobile core, with the exception that it does bind to orientationchange, which is defined in the events js. Fixes #388
2010-11-17 11:55:15 -05:00
scottjehl
5e90786374
added enable and disable methods to form buttons
2010-11-17 10:27:35 -05:00
Yuki KODAMA
2dea6cd721
implemented 'refresh' method for slider widget
2010-11-17 19:34:46 +09:00
Yuki KODAMA
d1e37647b8
added 'enable' and 'disable' methods to slider widget
2010-11-17 19:34:08 +09:00
scottjehl
2b226d05ce
make sure pop'd page is defined before using.
2010-11-16 12:18:42 -05:00
Richard Stutfield
6603c84ef5
remove empty line
2010-11-16 22:56:49 +08:00
Richard Stutfield
d7a9d832db
Fix form submit within a dialog.
2010-11-16 22:56:48 +08:00
Richard Stutfield
791f7aa61e
Dialog: fixed links not working in dialogs. Fixed #448 - Dialog: clicking link in dialog closes dialog and doesn't do anything else
2010-11-16 22:56:48 +08:00
scottjehl
14b4c9a167
moved $.media function over to $.mobile object
2010-11-11 21:45:17 -05:00
scottjehl
e89ebc126e
Input types can now degrade to alternate types, instead of text. First such example is type=range degrades to type=number. Fixes issue #415 , Fixes #404
2010-11-11 21:43:01 -05:00
John Resig
573db6ab28
Just compare the nodes directly to each other.
2010-11-11 19:38:20 -05:00
John Resig
67174b8966
Updating jQuery to 1.4.4.
2010-11-11 19:21:03 -05:00
Kin Blas
1b12c54bcf
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2010-11-11 16:16:03 -08:00
Kin Blas
a77ca291e6
Fixed 59 - Fixed footer is anchored to the end of the page content instead of the view port.
...
- If content is less than the view port height, the footer is always anchored at the bottom of the view port.
- If the content is greater in height than the view port, then in inline mode itrests in flow, and in "fixed" mode it snaps to the bottom of the view port.
2010-11-11 16:08:45 -08:00
scottjehl
7a37d2507d
fixed error in selectmenu close function
2010-11-11 19:01:02 -05:00
scottjehl
d3a0d33791
fixed up grids and navbar again - this time to automate the column count to number of children, or 'a' when greater than 5. data-grid attribute can be set to any grid letter to trump the automated counting.
2010-11-11 17:33:07 -05:00
scottjehl
78f342b5e0
fixed up the navbar and grid plugin logic. now supports up to 5 cols
2010-11-11 17:17:45 -05:00
scottjehl
5aa980fdb4
fixed a bug with icon positioning
2010-11-11 17:17:45 -05:00
John Resig
c9a34f1da2
Add versioning information to the headers of the CSS and JS files.
2010-11-11 17:02:45 -05:00
Kin Blas
dfa1a689a4
Fixed 432 - Fullscreen positioning don't work iPhone/Android/Desktop
...
- $.mobile.activePage isn't being set till *AFTER* the "pageshow" notification, so pass in the page from our pageshow callback into the show() method.
- Also added missing getOffsetTop() call that I missed in my previous checkin.
2010-11-11 13:39:54 -08:00
scottjehl
6502377d57
just comments
2010-11-11 15:08:57 -05:00
scottjehl
b7b553da84
missed a few files in that last commit.
2010-11-11 15:08:48 -05:00
scottjehl
055bf14e3f
moved changePage, pageLoading, and silentScroll methods to $.mobile obj.
2010-11-11 15:03:40 -05:00
scottjehl
30c8a4cd5e
removed $.mobile.headExtras - useless
2010-11-11 13:38:05 -05:00
scottjehl
d498e20aca
typo on the data-iconpos check
2010-11-11 13:33:19 -05:00
scottjehl
25327445e0
null rather than undefined. woops
2010-11-11 13:33:19 -05:00
Kin Blas
1261fbc828
Bring iPad iOS 3.2.1 up to par with other platforms in terms of footer positioning.
2010-11-11 09:27:11 -08:00
scottjehl
f3c9716b52
extend rather than define
2010-11-11 11:28:02 -05:00
scottjehl
a24196e550
dolla dolla bills y'all.
...
Fixes #126 , Fixes #346
2010-11-11 10:50:28 -05:00
scottjehl
aca0062ac0
workaround that seems to get selects returning to their proper place after making a selection. Needs tuning, but works for now.
2010-11-11 00:16:54 -05:00
scottjehl
dab3cbee34
changed to null for allowing override through data-theme
2010-11-10 23:58:38 -05:00
scottjehl
3a3953cd3f
made sure text inputs / areas worked with data-theme
2010-11-10 23:54:01 -05:00
scottjehl
d03f3c6a33
nested lists were getting way small. This made em stop.
2010-11-10 23:50:14 -05:00
scottjehl
e8bd78bd27
fixed theming so data-theme and data-track-theme attrs work
2010-11-10 23:40:09 -05:00
scottjehl
0702e26221
added menuPageTheme and overlayTheme options. overlayTheme defaults to "a" to use the black stroke.
2010-11-10 23:39:48 -05:00
scottjehl
563169def9
made sure data-icon attrs work on radio and checks. Fixes #423 , Fixes #424
2010-11-10 23:19:41 -05:00
scottjehl
bf3730550f
used null where appropriate in options
2010-11-10 23:08:22 -05:00
scottjehl
049afd4568
improved defaults and added a demo page showing that all button data attrs work on selects too
2010-11-10 23:04:10 -05:00
scottjehl
532c918a26
updated data attribute support
2010-11-10 22:54:57 -05:00
scottjehl
91f287b3c6
improved enable/disable implementation
2010-11-10 22:48:31 -05:00
scottjehl
679094621f
changed to button reference
2010-11-10 22:43:30 -05:00
scottjehl
691752afd2
added aria-disabled attrs
2010-11-10 22:42:50 -05:00
scottjehl
129b68741f
moved menu building logic into _rebuild method, which is called by refresh if the option length is different than the list length (or if a true argument is passed to refresh(). Also moved mousedown events to "click", which dramatically improves keyboard navigation.
2010-11-10 22:31:05 -05:00
scottjehl
5716b89097
refactored select menu a bit to use new open and close methods
2010-11-10 21:40:20 -05:00
scottjehl
cc8c05091d
changed transition to pop and make sure history change is false
2010-11-10 19:13:36 -05:00
scottjehl
b1bded6dde
changed hideBrowserChrome function to "silentScroll". Scrolls to a particular location while disabling scroll event listening.
...
Function accepts a Y positioning argument, or defaults to 0 if undefined.
Now page transitions cache their previous scroll position when leaving, and that position will be remembered when revisting that page.
This change also includes a fix for webOS to use this new feature and set the previous scroll to the location of the clicked selectmenu (so after using the select, it'll scroll back to its location, even though webOS doesn't support scrolltop)
Fixes #355
2010-11-10 19:06:57 -05:00
scottjehl
ad2c894a74
Target attrs trigger now open a new window. Fixes #427
2010-11-10 18:12:18 -05:00
scottjehl
12b1bb4fa2
only degrade input types that conflict with our replacement UI control. For now, just search and range. Fixes #415 , Fixes #420
2010-11-10 11:22:56 -05:00
scottjehl
3b5d12a207
shifting things around - mostly whitespace
2010-11-10 08:42:34 -05:00
scottjehl
6108ac90aa
fixed issues with slider handle positioning when min isn't 0. Fixes #397
2010-11-10 08:37:04 -05:00
scottjehl
356308e6b7
updates to comments
2010-11-09 19:55:52 -05:00
scottjehl
f80428b1c6
updated slider to use widget factory. Fixes #370
2010-11-09 19:49:04 -05:00
scottjehl
812e4c6978
fixed support for back button closing of dialogs, utilizing new $.mobile.updateHash method. Fixes #412
2010-11-09 19:10:54 -05:00
scottjehl
f03e59b0b3
exposed $.mobile.updateHash to allow plugins to update the hash without triggering hashchange (when closing a dialog from back button for instance)
2010-11-09 19:08:57 -05:00
scottjehl
44d78d4853
changed so that nonHistorySelectors looks for both data-rel and data-role, meaning hash changes won't trigger hashchange handlers when dialogs are open
2010-11-09 18:58:09 -05:00
Kin Blas
6e9f8af1b3
Rule #1 , when you change a file name, update its references. Fixing bustage from my previous checkin. Sorry 'bout that.
2010-11-09 14:09:04 -08:00
Kin Blas
d5a2ed2f10
Fixed 413 - Dev issue: our .htaccess file on the server is doing a 301 redirect which is causing css and image loading issues.
...
- Switch to using a combine.php library and index.php scripts within each directory for combining files. This works around the iOS webkit bug that prevents images from being displayed the next time the page is loaded.
2010-11-09 13:58:28 -08:00
scottjehl
58aa705391
updated comment
2010-11-09 16:08:15 -05:00
scottjehl
b02fc9f5e2
fixed filter listviews. wrong method name
2010-11-09 13:42:32 -05:00
D. Elmo Peele
97cc95dd0d
Allow 'none' as a transition value.
2010-11-09 23:17:16 +08:00
scottjehl
734fb4d9b5
fixed theming of dialog body so it'll get C if no theme specified. Fixes #398
2010-11-08 22:20:09 -05:00
scottjehl
ca25127469
added refresh method and theme inheritance to selectmenu widget. Fixes #371
2010-11-08 21:24:44 -05:00
scottjehl
3b8067151e
toggle ui-disabled class on disable/enable
2010-11-08 19:37:01 -05:00
scottjehl
f7a29fc201
converted selectmenu widget to the widget factory.
2010-11-08 19:33:45 -05:00
scottjehl
39c4b7b53b
prepend to head immediately, instead of in a chunk later on
2010-11-08 19:26:30 -05:00
scottjehl
4b058096cf
scoped to window
2010-11-08 19:23:27 -05:00
scottjehl
4b862bb114
triggered mobileinit event
2010-11-08 19:19:45 -05:00
scottjehl
0bb86f685f
removed extend
2010-11-08 19:17:28 -05:00
scottjehl
32af18d59b
added class ui-mobile-rendering to HTML el during initial build - will be used to prevent fouc
2010-11-07 15:20:35 -05:00
scottjehl
a405eda53f
moved up top
2010-11-07 15:18:28 -05:00
scottjehl
facef32f3a
changed to event.preventDefault
2010-11-07 15:17:59 -05:00
scottjehl
0972d65e04
prefixed var with $
2010-11-07 15:03:40 -05:00
scottjehl
02e6e5f26b
added $.mobile options: ajaxLinksEnabled, ajaxFormsEnabled. Both default to true.
2010-11-07 14:31:04 -05:00
scottjehl
1f7be112c8
make base options extendable via jQuery.mobile obj.
2010-11-06 16:04:59 -04:00
scottjehl
a1bef030dc
filled out some comment documentation
2010-11-06 15:29:00 -04:00
scottjehl
294daf4008
cleaned up <head> markup insertion logic and added to new options to $.mobile hash:
...
- metaViewportContent: "width=device-width, minimum-scale=1, maximum-scale=1",
- headExtras: undefined
If metaViewportContent is undefined, no viewport meta tag will be added to the dom.
headExtras is undefined by default, but allows for additional markup to be injected into the head element, such as meta tags used for enabling iOS local app features
Also, the <base> tag is defined as $base (undefined if support test is false), so setting its value no longer uses an ID selector to find it.
2010-11-06 15:14:10 -04:00
scottjehl
95ff242b13
updated cssTransitions support test - was formerly failing in webkit, as it was checking for type of object, rather than function. Needs to be filled out with other css transitions events, along with our CSS itself.
...
Also updated the animationComplete callback and got rid of a pointless timeout.
2010-11-06 14:36:15 -04:00
scottjehl
3f703ce1e8
fixed regression where first page visited was using a transition.
2010-11-06 14:24:29 -04:00
scottjehl
f4b785a9e7
added loadingMessage to $.mobile hash, for i18n. Defaults to "loading". If set to false, loading message whill not appear during ajax requests, but ui-loading class will still apply to html element.
2010-11-06 14:18:03 -04:00
scottjehl
c707f63918
cleaned up vars for transition and back conditions - removed a couple unnecessary vars. Added $.mobile.defaultTransition, which defaults to "slide" but can be set to other transition names, or false, to disable default transitions (note: this won't prevent data-transition attrs from working when manually applied).
2010-11-06 14:04:59 -04:00
scottjehl
b0d1063ee8
moved device support conditions to $.mobile hash's gradeA property. Not terribly sophisticated yet, but least for now this allows for configuring device support conditions, which has been requested by users.
2010-11-06 13:45:09 -04:00
scottjehl
cec0939a61
changed comment
2010-11-06 13:45:09 -04:00
scottjehl
c0b37ec97d
moved transitions to $.mobile hash, changed to array
2010-11-06 13:45:09 -04:00
scottjehl
72f3ca5765
move active page and button classes to the $.mobile hash
2010-11-06 13:45:09 -04:00
scottjehl
0c7860e7ed
removed startPageId setting - not necessary
2010-11-06 13:45:09 -04:00
scottjehl
cdbccc2802
moved page-plugin-related options to the page plugin (backBtnText, addBackBtn, degradeInputs).
2010-11-06 13:45:09 -04:00
scottjehl
f7ce344578
moved configurable selector for non-history tracked links to the $.mobile hash. Renamed to $.mobile.nonHistorySelectors
2010-11-06 13:45:09 -04:00
scottjehl
925ac2b57a
opened $.mobile to be extendable through $.mobileDefaults
2010-11-06 13:45:09 -04:00
Ben Alman
69e1e32c88
rewrote the orientationchange special event to allow both binding and unbinding of single or multiple event handlers as well as manual triggering. jQuery.event.special.orientationchange.orientation might not need to be public (which could save a few bytes).
2010-11-05 19:25:26 +00:00
scottjehl
0aa7fe6454
fixed listview splitbutton theming
2010-11-05 15:08:21 -04:00
scottjehl
c9bc4880a9
removed trailing comma.
2010-11-05 14:46:25 -04:00
scottjehl
a0815daf48
Fixed a few listview split button regressions. Fixes #387
2010-11-05 00:06:39 -04:00
D. Elmo Peele
95bac6f5a0
Fix tap event to ignore small movements.
2010-11-05 11:14:53 +08:00
scottjehl
aa6f842acc
changed selector from [href] to link[href] for elements that need url-remapping in Firefox. This ensures only stylesheets, but not anchors, are being remapped. Fixes #381
2010-11-04 23:11:35 -04:00
scottjehl
3392be05d3
Added close() method to dialogs: $('.ui-dialog').dialog('close') . Also, links clicked within a dialog will now close the dialog on their way to their destination, just as if the dialog were a normal page. For links that are meant only for closing the dialog, such as a "cancel" link, just link to the page that triggered the dialog to open. This pattern of linking to the previous page happens to be meaningful in non-js browsing as well. If you are generating that link on the fly, just set its href to location.href. Fixes #383
2010-11-04 22:49:28 -04:00
scottjehl
b1f7ff9c2d
made textinputs and textareas inherit theming when possible, or fall back to "c"
2010-11-04 21:59:03 -04:00
scottjehl
ffa682cbfe
Converted textinput plugin to use widget factory. Also added enable and disable methods. Fixes #369
2010-11-04 21:32:28 -04:00
scottjehl
f29b85a149
converted collapsible to the widget factory. API change: data-state="collapsed" is now data-collapsed="true". Updated markup in demos to support change. Fixes #372
2010-11-04 21:32:28 -04:00
Kin Blas
b3ec50b2e3
Removed redundant setting of $.activePage that I added in my previous checkin.
...
Updated lists-performance.html so that it is a list of 1000 items per Todd.
2010-11-04 15:15:49 -07:00
scottjehl
64e0c1dc47
removed a timeout - reset hashListener to false within hashchange event handler
2010-11-04 11:50:17 -04:00
scottjehl
29a60d3c3e
changed arg name to triggered
2010-11-04 11:24:39 -04:00
scottjehl
34283c04ed
changed hashchange args to use array
2010-11-04 11:24:13 -04:00
scottjehl
81fe1d2aea
Used documentElement.clientWidth/Height. Fixes #313
2010-11-04 10:44:35 -04:00
scottjehl
c45b0e3560
make sure "to" arg is an object, and has a url property before setting isFormRequest to true.
...
Fixes #377
2010-11-04 09:56:04 -04:00
scottjehl
3cc1c76d9d
improved check for activePageLink existence
2010-11-04 09:56:04 -04:00
Kin Blas
bb5708e543
Some tweaks to make page scrolling faster.
...
- Prevent the fixed header/footer code from traversing the entire document for each touchstart, touchend and scrollstart event.
- Make sure $.activePage is initialized with the startPage.
2010-11-04 00:27:21 -07:00
scottjehl
a138877864
removed broad rule for rounding corners of thumbnail images in first and last slots of listviews. Now this only happens for inset listviews. Fixes #362
2010-11-03 22:26:09 -04:00
scottjehl
ea12c75940
Make sure that Ajax form submissions (both get and post) always make a new request, even if it's identical to a previous submission. When a duplicate cached result page is present, it'll be removed from the DOM after the page change is complete . Thanks @medovob for the ideas and feature request. Fixes #368 , Fixes #366
2010-11-03 22:01:01 -04:00
scottjehl
fae3a93f26
remove active link class before leaving to an external page. Fixes #375
2010-11-03 18:56:21 -04:00
scottjehl
4036aa97e9
added an forceRemoval argument to make sure active states are removed when a page load error occurs. Fixes #364
2010-11-03 12:20:44 -04:00
scottjehl
f66047f410
added class 'ui-mobile-viewport-transitioning' to page parent container during transitions, and applied css to give perspective and proper dimension to the container and child pages. Also set overflow to hidden.
...
Fixes #347
2010-11-02 16:29:12 -04:00
scottjehl
edc1b81ba4
added ui-mobile-viewport class to parent of page element ( body in most cases). Updated css to style this class instead of body
2010-11-02 16:00:23 -04:00
scottjehl
cf4c1f858c
Merge branch 'checkbox_selector' of http://github.com/mlins/jquery-mobile into mlins-checkbox_selector
2010-11-02 15:09:48 -04:00
Matt Lins
e66997b794
Use existing inputtype var
2010-11-02 13:31:09 -05:00
scottjehl
6700721437
added php to <? opening tags - thx @TechIsCool. Fixes #308
2010-11-02 14:24:17 -04:00
Dave Penfold
ae342659df
Increase y axis threshold on swiping from 20 to 75
2010-11-03 02:12:05 +08:00
scottjehl
52f834cb8f
post requests update the hash with url only - but no params
2010-11-02 01:23:27 -04:00