Kin Blas
c297f9675b
Fix for issue #2644 - Navigating to root "/" does not generate clean URL if root page has id="*"
...
- Fixed a bug in the hashchange handler for the pushstate/replacestate plugin that was incorrectly resolving hashchanges for ids against the current location.href, which could be a different document. We now resolve id hashes against the document URL.
- Modified changePage() so that it sets the settings.dataUrl option to the documentUrl, when navigating to the first-page of the application document. This prevents any id on the first-page from being added to the location hash. This means that URLs that used to be produced like this:
http://site.com/apps/#first-page-id
will now display as:
http://site.com/apps/
Developers that wish to get the old behavior back can register a pagebeforechange handler and do something like this:
$( document ).bind( "pagebeforechange", function( e, data ) {
var toPage = data.toPage;
if ( typeof toPage === "object" && !data.options.dataUrl && toPage[ 0 ] === $.mobile.firstPage[ 0 ] && toPage[ 0 ].id ) {
data.options.dataUrl = "#" + toPage[ 0 ].id;
}
});
The handler above will make sure that any page changes to the first-page will always display as:
http://site.com/apps/#first-page-id
2011-10-10 11:04:04 -07:00
scottjehl
f0403f9d9f
set native touch overflow enabling back to false
2011-10-07 18:48:38 -04:00
John Bender
71b0eb0552
move $.fn.text invocation to $.fn.getEncodedTest where the content is being re-added to the dom for xss safety Fixes #2550
2011-10-04 18:25:54 -07:00
Mat Marquis
54465515d7
Fixes #2593 — Prevents application of ‘ui-corner-bl’ and ‘ui-corner-tl’ classes to ‘ui-li-thumb’ elements that have a class of ‘ui-li-icon.’
2011-10-04 18:02:52 -04:00
Todd Parker
a783c740e8
Merge pull request #2609 from Wilto/voiceover-double-buttons
...
Fixes #2594 — Button text is no longer read aloud twice. Thanks @Wilto!
2011-10-04 14:10:29 -07:00
Mat Marquis
3c3a777158
Fixes #2594 — Button text is no longer read aloud twice (and treated as two separate navigable items) in iOS VoiceOver.
2011-10-04 16:45:14 -04:00
Todd Parker
32ed8cfbbd
Merge pull request #2607 from Wilto/collapsible-status-text
...
Fixes #2595 — Hidden “click to expand contents” text now updates. Thanks @rogerjohansson and @Wilto
2011-10-04 12:44:03 -07:00
John Bender
57079e1d6b
add the ability to disable native orientation change support Fixes #793
...
the frequency of the triggered event in certain android releases ( 2.1, 2.2) appears to be dependent on a host of things other than an actual orientation change, eg alerts, zoom, and scrolling. This provides a way for the user to disable it in favor for using throttled resize while still making use of the window.orientation where its available for reliability
2011-10-04 11:54:26 -07:00
toddparker
ff9720281b
Added another check for orientation change event for Android 2.1
2011-10-04 11:54:25 -07:00
John Bender
a0ddaab8e3
fix for incorrect portrait of lanscape value
...
The value attached to the event passed into handlers was based soley on screensize which is problematic given that some implementations (eg Android 2.3) don't change the screensize until after the event is fired. The orientation property appears to report a better value where it is provided so the solution is to prefer what it reports and then fallback to the screensize caculation where necessary.
2011-10-04 11:54:25 -07:00
John Bender
a20bb72a29
whitespace in events
2011-10-04 11:54:25 -07:00
Mat Marquis
4ed1e6ac11
Fixes #2595 — Hidden “click to expand contents” text now changes depending on current expanded/hidden state.
2011-10-04 14:01:08 -04:00
Kin Blas
8a25599b82
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-09-30 12:43:30 -07:00
Kin Blas
98eda9a0f4
Fixes #2582 - Refreshing a page with #&ui-state=dialog causes page duplication
...
- Modified loadPage() to call isFirstPage() with fileUrl instead of absUrl. Since fileUrl is the same as absUrl, but with the dialogHashKey stripped off, it will allow us to match against the url for the first-page.
2011-09-30 12:38:16 -07:00
Kin Blas
5a76ae7ed2
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-09-30 09:19:15 -07:00
Kin Blas
bafc18723b
Fixes #2574 - namespace pollution on 'search' variable (1.0rc1)
...
- There was a typo in the var declaration in makeUrlAbsolute(). Changed the ';' in the middle of the declaration to ','.
2011-09-30 09:17:05 -07:00
scottjehl
b4a7db2f1d
brought back these orientation rules as they're important in iOS5 layouts.
2011-09-29 18:38:15 -04:00
Kin Blas
47812171f1
Fixes #2570 - Refreshing a page with #&ui-state=dialog causes syntax error
...
- This was a regression from my fix to loadPage() for detecting un-enhanced pages by @id as a fallback. In this particular case dataUrl was being used to create an id selector, and of course if the dataUrl is an empty string we end up using "#" as the selector. The fix is to simply check for a non-empty dataUrl.
2011-09-29 15:16:21 -07:00
scottjehl
e29346daf5
Merge remote branch 'origin/master'
2011-09-29 14:47:24 -04:00
scottjehl
a93c4878aa
removed media classes JS - deprecated since Beta 1. Use CSS3 Media Queries with a polyfill instead :) Docs are updated to link to old code in case anyone still needs a backwards-port
2011-09-29 14:47:05 -04:00
scottjehl
ea3a34e055
changed comment in JS
2011-09-29 14:46:06 -04:00
Kin Blas
bb8326876b
Fixes #2212 - Collapsible heading vclick issue
...
- Switch to using "click" instead of "vclick" on collapsible headers since that is the only reliable way to prevent uncaught/mismatched clicks from firing on a different element.
2011-09-29 00:43:01 -07:00
Kin Blas
972500bbbc
Re-merge pull request #1550 from MaxThrax/master.
...
- Not sure what happened when I originally merged this back on 05/02/2011, but here it is again!
2011-09-28 22:08:30 -07:00
Kin Blas
d64eaf0500
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-09-28 11:40:33 -07:00
Kin Blas
34fb7b2dc1
Fixes #2537 - Add new pageremove event
...
- Modified the pagehide callback in $.mobile._bindPageRemove() so that it fires off a "pageremove" event. Callbacks can prevent the removal of the page by simply calling preventDefault() on the pagremove event object that is passed to their callback.
2011-09-28 11:37:46 -07:00
gseguin
b0969d1bcf
Merge branch 'issue-2527'
2011-09-28 11:03:18 -07:00
gseguin
b84a68edaa
Missing semi-colon
2011-09-28 10:57:46 -07:00
gseguin
5a97fd7b05
Fix for #2527
...
Use ui-body-* instead of ui-btn-up-* for collapsible content
2011-09-28 10:57:24 -07:00
Todd Parker
ee35ca635f
Merge pull request #2556 from Wilto/master
...
Assorted CSS adjustments. Fixes #1392 , Fixes #2513 . Thanks Wilto!
2011-09-28 10:54:17 -07:00
Kin Blas
ca9df1197a
Fixes #2529 - Transition to the same page
...
- So it seems just allowing changePage() to process same toPage and fromPage is not enough. I modified the CSS3 keyframe
animation plugin so that it only removes the ui-page-active class from the fromPage if it is *NOT* the same as the toPage.
- I also re-ordered the in/out transition rules for forward/reverse transitions so that the user always views some sort of animation/motion.
2011-09-28 09:14:52 -07:00
John Bender
ac0288a5ba
create getEncodedText helper and update custom select for use Fixes #2547
2011-09-27 15:19:35 -07:00
Mat Marquis
085a104005
Fixes #2538 — Button wasn’t getting the appropriate “has-count” class.
2011-09-27 16:47:11 -04:00
scottjehl
9b86fddf89
disabled touch overflow scrolling by default. overridable through $.mobile.touchOverflowEnabled.
2011-09-27 12:37:10 -04:00
scottjehl
47480d69f9
when touch overflow scrolling is supported and enabled, user scaling can create serious usability issues where it's difficult to get zoomed back out. This disables user scaling when that overflow scrolling is enabled (currently only projected for ios5 support)
2011-09-27 12:36:24 -04:00
Kin Blas
a975878fb4
Disabled the workaround for issue 785 (jQM text input forces use of iOS auto-correction) on iOS 5 devices since it appears to be fixed. This is still a problem on iOS 4.x and earlier.
...
- We don't have a specific test for iOS 5 so we use $.support.touchOverflow as an iOS 5 and later indicator. Yes, I feel dirty.
2011-09-26 11:39:30 -07:00
Kin Blas
6cd1e1b141
Fix for issue 2529 - Transition to the same page
...
- Added a new allowSamePageTransition option to the changePage() method default settings.
By default, we prevent changePage() requests when the fromPage and toPage are the same element, but folks that generate content manually/dynamically and reuse pages want to be able to transition to the same page. To allow
this, they will need to change the default value of allowSamePageTransition to true, *OR*, pass it in as an option when they manually call changePage().
It should be noted that our default transition animations assume that the formPage and toPage are different elements, so they may behave unexpectedly. It is up to the developer that turns on the allowSamePageTransitiona option
to either turn off transition animations, or make sure that an appropriate animation transition is used.
// To toggle the default behavior for all changePage() calls,
// set the default value of allowSamePageTransition to whatever
// you want it to be. The default is false.
$.mobile.changePage.defaults.allowSamePageTransition = true;
// To specify the behavior when manually calling changePage(),
// pass it as an option. If not specified, the default value
// specified by $.mobile.changepage.defaults.allowSamePageTransition
// is used.
$.mobile.changePage( "#reused-page", { allowSamePageTransition: true } );
2011-09-26 10:23:47 -07:00
gseguin
5bd72c7b96
Merge branch 'collapsible-redesign'
2011-09-24 22:12:22 -07:00
gseguin
276f27fbfa
Fixed missing top corner on collapsible set with only one collapsible
2011-09-24 21:58:04 -07:00
gseguin
3ecbf8e383
Simplified code. Don't add data-* attr if not set by user
2011-09-24 21:41:20 -07:00
gseguin
bdaa477f68
Fix for #1899
...
Added data-content-theme to style the content of the collapsible
data-theme and data-content-theme inherit collapsible-set's
2011-09-24 17:22:55 -07:00
scottjehl
e81e3b19c0
fixed positioning of selects in touch overflow scroll mode. Fixes #2415
2011-09-24 01:00:42 -04:00
scottjehl
23e79fb1db
better fix for the ios5 height issue with the bottom of the page.
2011-09-24 00:55:50 -04:00
scottjehl
52e1022697
adjusted the fallback heights. addresses the ios5 fixed footer alignment described in issue #2415
2011-09-24 00:33:44 -04:00
John Bender
aa679a9b0f
add inputs without a type to the text input list Fixes #2205
2011-09-23 20:44:48 -07:00
John Bender
3d88760019
whitespace in mobile forms textinput
2011-09-23 20:43:56 -07:00
John Bender
f029230e3a
handle all dialog closing cases
2011-09-23 16:32:56 -07:00
John Bender
eca88ea818
quick rename to addDependents
2011-09-23 16:32:56 -07:00
John Bender
e741bc2da6
force close logic of custom select to run when close is clicked, centralize the binding for pagehide.remove
2011-09-23 16:32:56 -07:00
John Bender
b837a49b32
add dependent tracking functions for jquery mobile objects
2011-09-23 16:32:56 -07:00
scottjehl
b2d023732a
Fixes #2490 where IE (and WP7) were not properly degrading form inputs via the degradeinputs plugin (and search inputs were not being styled as such)
2011-09-23 19:17:22 -04:00
Scott Jehl
adc1ecc2e6
Merge pull request #2519 from Wilto/master
...
Various and Sundry Fixes
2011-09-23 15:20:19 -07:00
Mat Marquis
ecc1361f7f
For the sake of jQuery’s serialize, submit inputs’ values are added to the form as a hidden input—this ensures it will only happen once, and that this logic only applies to submit inputs with a name attribute.
2011-09-23 18:10:03 -04:00
Mat Marquis
dec502d2c8
Prevents “undefined is null or not an object” error in IE, where .scrollTop() was being called before the body was ready.
2011-09-23 18:05:12 -04:00
Kin Blas
40570e294d
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-09-23 14:23:55 -07:00
Kin Blas
4f066b7e07
Fix for issue 2503 - User can't specify own error handling logic
...
- Added the following notifications to $.mobile.loadPage():
- pagebeforeload
- Triggered just before loadPage() attempts to dynamically load an external page.
- Developers can prevent the default loading behavior by calling preventDefault() on the event. If preventDefault() is called, it is up to the developer to call resolve()/reject() on the deferred object passed within the data object (2nd arg to the event callback).
- pageload
- Triggered after an external page has been loaded and inserted into the document.
- pageloadfailed
- Triggered when the load of an external page fails.
- Developers can prevent the default behavior (error dialog display) by calling preventDefault() on the event. If preventDefault() is called, it is up to the developer to call resolve()/reject() on the deferred object (2nd arg to the event callback).
2011-09-23 14:12:40 -07:00
toddparker
eaf5822c65
Restored button inline styling by defining inline as an option in the button markup plugin. Fixes #2496
...
The recent jqmData changes exposed this issue. Default for this option
is false.
2011-09-23 15:28:24 -04:00
scottjehl
be5136198e
when a form is submitting via post to a url that already has a page represented in the DOM, replace the current page with the response page of the same url (post params are not passed via q string, so the URLs are identical).
2011-09-23 09:28:43 -04:00
scottjehl
1badd4aa8e
enable touch overflow scrolling by default where supported
2011-09-22 21:31:03 -04:00
Kin Blas
4fa6ccdc0d
Fix for issue 2315 - Flip toggle switch with change event bound, triggers multiple times
...
- Modified refresh() so that it checks to see if the value actually changed before firing off the "change" event.
2011-09-22 16:23:43 -07:00
gseguin
114cee84fe
Merge remote branch 'upstream/master'
2011-10-05 15:14:39 -07:00
gseguin
27b51c47e9
Fixed $.jqmData() behavior to match $.fn.jqmData()
2011-10-05 15:12:11 -07:00
John Bender
e5e269394e
remove empty else in nav
2011-09-22 14:40:59 -07:00
Ghislain Seguin
2f8d1902a2
Merge pull request #2500 from eddiemonge/issue_2499
...
Issue 2499: Some php improvements
2011-09-22 10:43:03 -07:00
gseguin
fb06381176
Set content-theme to collapsible in a set only if it's not already set
2011-09-22 10:28:56 -07:00
gseguin
46e6c6b320
fixed data-content-theme in collapsible-set for collapsible expanded by default
2011-09-22 09:49:02 -07:00
John Bender
2086529728
remove extra local var storage
2011-09-22 08:53:53 -07:00
John Bender
f1d63f4f75
simplify calls to bind by wrapping this as a jquery object
2011-09-22 08:52:45 -07:00
John Bender
9d2b39dca6
whitespace in mobile init
2011-09-22 08:52:45 -07:00
John Bender
9182306ccf
refactor for clarity and simplicity
2011-09-22 08:52:45 -07:00
John Bender
27b228803a
change scroll recording to handle different scroll elements between page changes
2011-09-22 08:52:45 -07:00
John Bender
2f12ff249a
refactor setLastScroll to speed it up a tad
2011-09-22 08:52:09 -07:00
John Bender
3e143c8f66
rename getLastScroll and its variables
2011-09-22 08:52:09 -07:00
John Bender
c363864382
use scrolltop to store scroll position
...
scrolltop as a solution isn't that great but some browsers scroll to the top
of the page to where the element bearing the id matching the hash is located
*before* the hashchange event is fired meaning we don't have an opportunity
in the changepage event lifecycle to record the scrolling properly
2011-09-22 08:52:09 -07:00
Eddie Monge
5bfc08bba2
Issue 2499: Some php improvements
2011-09-21 23:19:37 -07:00
gseguin
4d33ec386b
Merge remote branch 'upstream/master' into collapsible-redesign
2011-09-21 22:26:36 -07:00
gseguin
e666552274
Added data-content-theme to collapsible and collapsible-set
2011-09-21 21:56:23 -07:00
Kin Blas
80b0e99798
Fix for issue 1243 - Can't link to dynamically created data-role="page"
...
- Modified loadPage() so that if the data-url lookup for a given page fails, that it look for the page via id (if it is an embedded page URL). This allows us to find dynamically injected pages that are un-enhanced and missing their data-url attributes.
2011-09-21 15:46:15 -07:00
scottjehl
3e2683fe18
Merge remote branch 'origin/master'
2011-09-21 14:59:27 -04:00
scottjehl
38d7ad8848
binding these at mobileinit didn't help anything, and only hurt the ability to use them when jQM is dynamically appended. Idea credit to @martynsmith
2011-09-21 14:59:19 -04:00
Kin Blas
9b0bf5252d
Removed deprecated "beforechangepage", "changepage", and "changepagefailed" event references in preparation for jQM 1.0 release.
...
Updated the unit tests to use "pagechange" event instead of "changepage".
2011-09-20 16:59:30 -07:00
Kin Blas
e7a33dbb45
Removed deprecated navigation related properties:
...
$.mobile.updateHash
$.mobile.urlstack
in preparation for jQM 1.0.
2011-09-20 16:15:44 -07:00
Kin Blas
14bafc510d
Removed support for the alpha signature of $.mobile.changePage() in preparation for jQM 1.0. Folks now how to use the signature that requires the toPage (url or element) as the first arg, and options object as the 2nd.
2011-09-20 15:40:52 -07:00
Kin Blas
dd458d1d4e
Removing the deprecated $.fixedToolbars property in preparation for jQM 1.0.
2011-09-20 15:28:07 -07:00
Kin Blas
58573f90d9
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-09-20 14:47:09 -07:00
Kin Blas
c75a7ad654
Fix for issue 1666 - Deprecate $.mobile.pageLoading()
...
- Removed $.mobile.pageLoading().
- Updated tests/unit/init/ to call the new showPageLoadingMsg/hidePageLoadingMsg functions.
2011-09-20 14:45:26 -07:00
scottjehl
5fe78d5148
updated jQuery to 1.6.4
2011-09-20 17:42:44 -04:00
scottjehl
41d4640344
moved the support test for event capture, allowing vmouse to run standalone on jQuery Core.
2011-09-20 17:26:36 -04:00
Hans-Peter Buniat
2051c49cc8
fixed typo (+ -> -) to fix #2416
2011-09-20 06:50:16 +02:00
Kin Blas
0fbea8f8e6
Fix for issue 2451:
...
Dialog not working if $.mobile.ajaxEnabled = false
https://github.com/jquery/jquery-mobile/issues/2451
related/dup bug 2202:
Dialog loads in new page with ajaxEnabled = false
https://github.com/jquery/jquery-mobile/issues/2202
- Modified the default click handler to check if the href is for an embedded page before bailing when ajaxEnabled = false. This allows us to navigate to internal/embedded pages/dialogs on the click versus waiting for the accidental hashchange that was the result of the browser's default handling of hash fragments.
2011-09-19 11:32:13 -07:00
Hans-Peter Buniat
df68b0188c
second attempt to fix #2416
2011-09-19 07:12:36 +02:00
Hans-Peter Buniat
afe6630425
try/catch the regexp, fixes 2416
2011-09-18 17:53:03 +02:00
gseguin
15667eee1b
Fix for issue #2455
...
Removed .jqmHasData()
2011-09-16 09:17:01 -07:00
gseguin
6dbdbfe4bc
Revert "Changed behavior of .jqmData() only when called with no argument. It now returns undefined as per discussion on #jquerymobile-dev"
...
This reverts commit 43c5037bd8 .
2011-09-16 09:12:43 -07:00
gseguin
a0ca22ae3d
Changed behavior of .jqmData() only when called with no argument. It now returns undefined as per discussion on #jquerymobile-dev
2011-09-16 09:12:25 -07:00
gseguin
43c5037bd8
Changed behavior of .jqmData() only when called with no argument. It now returns undefined as per discussion on #jquerymobile-dev
2011-09-16 09:10:08 -07:00
Kin Blas
320c12126f
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-09-15 17:00:27 -07:00
Kin Blas
78234976e7
Fix for issue 2050 - URL handling and PlayBook Webworks app
...
- Modified the url parser regexp so that we can find the double slash that precedes the authority. This is necessary so we can reconstruct resource urls used on some devices like Rim's Playbook that use urls like:
location:/dir1/dir2/file.html
- Modified makeAbsoluteUrl() so that it uses the new doubleSlash property in the object returned from parseUrl() instead of assuming that it is ok to use a double slash.
2011-09-15 16:56:54 -07:00
gseguin
ec8e92453e
Removed buttonMarkup around +/- icon
2011-09-15 16:27:54 -07:00
gseguin
e4ff8fb539
Merge remote branch 'upstream/master'
2011-09-15 16:11:04 -07:00
gseguin
a908c5a6ef
Fix for issue #1361
...
Mixin individual properties to options instead of calling .jqmData()
2011-09-15 16:10:10 -07:00
John Bender
ae2e7f0dc4
add 'widgetinit' event for users to enhance widgets and markup post 'widgetcreate'
2011-09-15 15:15:14 -07:00
John Bender
15cb663e52
suggestion from @jblas to save a bit of execution
2011-09-15 10:45:27 -07:00
John Bender
416b666ca8
prevent clicks on anything but the left mouse button, also adds the which value to the events when its undefined in the vmouse plugin
2011-09-15 10:16:40 -07:00
gseguin
518894fc69
Merge branch 'issue-1899'
2011-09-14 16:22:16 -07:00
gseguin
e6eaf7cacd
Fix for #1899 :
...
Re-styled collapsible and collapsible set so the content of the collapsible now is applied the ui-btn-up-%%theme%% class. This way the border will match the border of the header button. In the meantime in the ui-collapsible-content class we remove the background image and tweak the margin/padding to make everything look good.
Combined the expand/collapse handlers into a single one and made extensive use of .toggleClass()
2011-09-14 16:02:47 -07:00
John Bender
1a385db664
prevent known hash change handling from firing from popstate hashchange Fixes #2444
2011-09-14 15:37:31 -07:00
gseguin
87ca47f162
Fix for issue #1899
...
Refactored some css classes
Fixed bottom corners in set with only one collapsible
2011-09-14 11:05:53 -07:00
Kin Blas
56a22727ab
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-09-13 00:23:33 -07:00
Kin Blas
1a92be0240
Fix for issue 2406 - Navigation from one page back to multi-page template
...
- Make sure that our hashchange resolves non-path hashes against the documentBase. This prevents the resulting changePath() call from incorrectly resolving against the URL for the current active (external) page.
- Fixed a problem in the push-state code. A hashchange event is *NOT* fired when navigating back (window.history.back()) from an external page to an internal page. This makes sense when you think about it since hashchange is only ever fired when the hash of the current document url changes, not when the document url itself changes. The fix was to make sure that the pushstate hashchange callback always sets a state object, even on embedded page URLs. This allows the hashchange callback to be triggered from within onPopState().
2011-09-13 00:23:03 -07:00
John Bender
f1fef48239
add open and close as noop for people who might be looping over their selects and to self document the methods for extension
2011-09-12 16:53:56 -07:00
John Bender
c426aefd76
add data attribute tag for pages loaded via ajax Fixes #2432
2011-09-12 14:06:47 -07:00
John Bender
fbd113bad4
whitespace in listview and core nav
2011-09-12 13:58:24 -07:00
John Bender
ee6027a196
prefer defined theme from prototype or data options Fixes #2423
2011-09-12 09:08:48 -07:00
John Bender
59fc26d25f
fix refresh bug for new options of the same number as before
2011-09-09 17:27:26 -07:00
Ghislain Seguin
2c55c93464
Merge pull request #2419 from zachleat/master
...
fieldcontain comment was copy pasted on links, nojs plugins.
2011-09-09 14:16:01 -07:00
zachleat
92151822b8
Incorrect comment text on the headers of two plugins.
2011-09-09 16:07:31 -05:00
scottjehl
2dadb4dbc4
Merge remote branch 'origin/master'
2011-09-09 12:28:17 -04:00
scottjehl
2369e2fa32
improved qualifications so that iOS5 gets the old-style fixed headers and footers when touchOverflow is disabled (which is the default).
2011-09-09 12:27:59 -04:00
John Bender
729757b465
create selectOptions method so the values stay current across dom changes Fixes #2410
2011-09-09 09:00:46 -07:00
gseguin
6f5a7d1266
Fix for issue #2404
...
Collapsible are collapsed by default
2011-09-08 13:34:58 -04:00
scottjehl
f49e69ef84
disabled iOS5 improvements by default. Can be enabled by binding to mobileinit and setting $.mobile.touchOverflowEnabled = true;
2011-09-08 13:26:33 -04:00
scottjehl
b645781f4d
implemented native overflow scrolling based on support for -[prefix]-overflow-scrolling: touch. True fixed headers and footers come supported as well.
2011-09-08 12:38:50 -04:00
scottjehl
bc036b91b0
Clock tap is busted, so this logic is here but commented-out
2011-09-08 12:38:50 -04:00
scottjehl
fda71670b4
reset scrollTop to 0, not defaultHomeScroll
2011-09-08 12:38:50 -04:00
scottjehl
1a524756f3
added a pre-transition class to set pages to display: block early and allow for their scrollTop and focus to be set before they are shown.
2011-09-08 12:38:50 -04:00
scottjehl
440be55f2b
changed the name of the overflow support test and class to touchOverflow / touch-overflow
2011-09-08 12:38:50 -04:00
scottjehl
dae560d67f
added support test & html class for overflow-scrolling-touch
2011-09-08 12:38:49 -04:00
scottjehl
2f63fdf3ec
Merge remote branch 'origin/master'
2011-09-08 12:32:27 -04:00
scottjehl
bf02fc880d
increased timeout that waits for a potential hashchange event to fire as a result of pop.
2011-09-08 12:31:59 -04:00
Kin Blas
fcbd4c3030
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-09-08 09:24:16 -07:00
Kin Blas
78041bc7c9
Added path.isFirstPageUrl() which is now called from loadPage() when trying to determine if the URL being loaded refers to a page that is already in the DOM. This will prevent us from duplicating the first-page in the main application document.
...
Also checking in the first example of how to use the pagebeforechange notification to allow for dynamically updating and re-using a page that is already in the DOM.
2011-09-08 09:21:31 -07:00
scottjehl
db3dbc04d2
Merge remote branch 'origin/master'
2011-09-08 11:59:43 -04:00
scottjehl
7be8311d4e
added location.search to the original page data-url
2011-09-08 11:58:55 -04:00
Kin Blas
04623c21cf
Merge branch 'master' into changepage-prevent
2011-09-07 18:07:21 -07:00
Kin Blas
6aa8c8f3b0
- Added "fromPage" option to changePage(). This used to be in there before the navigation re-work, I just added it back in.
...
- Added "dataUrl" option to changePage(). This allows a caller to specify a page element to change to, but specify an alternate URL for location display purposes. This is useful for dynamic applications that re-use and over-write existing page content to avoid overwhelming the DOM.
- Renamed the "beforechangepage" and "changepage" events to "pagebeforechange" and "pagechange" respectively. This was done to match the page widget naming of its notifications. Left the triggers for the old events in place but with DEPRECATED comments.
- Renamed the properties of the data object passed to the page events.
2011-09-07 18:03:38 -07:00
dtao
fa4d9c16d7
fixed typo: 'throttledResize' => 'throttledresize'
2011-09-07 10:09:00 -04:00
Kin Blas
abb812cc01
Fixes for issue 1464 - No way to stop a link from being followed with some custom event (tap, taphold)
...
jquery.mobile.vmouse.js:
- Modified triggerVirtualEvent() so that it returns the virtual event instead of the isDefaultPrevented() result of the virtual event.
- Updated all references to triggerVirtualEvent() that relied on the boolean return value to instead check the isDefaultPrevented() call on the event now returned.
- Updated mouseEventCallback() to propagate the iDefaultPrevented(), isPropagationStopped(), and stopImmediatePropagation() values from the virtual event on to the original mouse event.
jquery.mobile.event.js
- Modified the "taphold" trigger code to create a new $.Event() instead of passing the stale vmousedown event.
- Added clearTapTimer() which is called from a new vmouseup binding, to prevent the timer from firing between the tie the finger/mouse goes up and the click event is dispatched.
- Added some propagation tests for the "tap" event. Tests for "taphold" will have to wait until we fix the problem where multiple taphold timers are fired off when an element and one of its ancestors is bound to taphold.
2011-09-07 10:09:00 -04:00
Kin Blas
5333ab7bf7
I noticed that the code in the mouseup for the toggle switch was using a CSS3 transition, but calling the animationComplete() function which waits for an animationend event which will never come. This means we bind a new animationComplete() handler every time the toggle switch is clicked.
...
I removed the binding for the handler completely since it doesn't hurt to just leave the transition in place. I also removed the code that was setting the position of the slider since it really should only be set within the mouseup if the user did not change the switch setting (toggle).
2011-09-07 10:09:00 -04:00
Kin Blas
81c3957129
Fix for issue 1925 - Single tap triggers two actions, especially in android B1
...
- Trigger the list item and keyboard return/space key up to the "click" event instead of "vclick". This delays the dismissal of the custom select menu until the click event, thereby avoiding the case where the menu disappears before the browser dispatches it's synthesized mouse events (in the touch case) with a target of whatever element was underneath the menu.
2011-09-07 10:09:00 -04:00
scottjehl
d68d5064bc
finished last-scroll remembering implementation across pages in the history stack (regardless of whether they've been removed from the DOM since last appearance).
2011-09-07 08:15:00 -04:00
Kin Blas
701b381cc4
Couple of modifications to changePage():
...
- Moved the setting of isPageTransitioning *AFTER* the beforechangepage notification.
- Modified the trigger("beforechangepage") call to pass the args to changePage() as an object since trigger only expects one data arg.
2011-09-06 16:56:20 -07:00
scottjehl
0d98b8fad6
changed setting of lastScroll
2011-09-06 14:29:19 -04:00
scottjehl
97539ed3bd
focus on title or page div
2011-09-06 12:58:14 -04:00
scottjehl
ebafc02cfe
add tabindex to page element
2011-09-06 12:58:14 -04:00
scottjehl
003505a4b9
changed minscroll to 250, better organization of lastscroll
2011-09-06 12:56:46 -04:00
scottjehl
ac67e92cbb
This change sets the "lastScroll" property to each urlHistory item object, allowing us to remember previous scroll distances when returning to a page that has since been removed from the DOM. Before this change, this number was stored in data on the page element, so it is lost when the page is removed after pagehide.
...
Also, this change removes a reference in memory that we were keeping to the $activeClickedLink on each page. We stored this in attempt to refocus a link after returning to a page. Unfortunately, it doesn't seem that this data can be retained after pages are removed from the DOM, outside of somehow remembering a unique selector string to reach that element again (which could be achieved by adding some overhead, ala http://stackoverflow.com/questions/2068272/getting-a-jquery-selector-for-an-element )
2011-09-06 12:56:46 -04:00
scottjehl
522b48ee84
started on the change to allow default prevention on beforechangepage
2011-09-05 13:05:57 -04:00
gseguin
001e588c92
Fix for issue #2017 . Clear active link on vclick so there can be only one active link at a time.
2011-08-31 21:46:39 -07:00
gseguin
e28ad6d95d
re-added setting of $.mobile.activeBtnClass on selected option but only for single select lists
2011-08-31 13:33:52 -07:00
gseguin
4cb52c4908
set aria-selected on li element when li is selected
2011-08-31 11:16:11 -07:00
gseguin
3dc4b9f9fa
Removed activeBtnClass from selected option
2011-08-31 10:43:23 -07:00
gseguin
14c98e8ef7
Another version of https://github.com/jquery/jquery-mobile/pull/2363 by @jgable
2011-08-31 09:56:15 -07:00
John Bender
f679d30620
added ipv6 support to urlparse regex Fixes #2362
2011-08-30 15:59:46 -07:00
Kin Blas
191b5e04a3
Fix for issue 2345 - Flip toggle switches *ALWAYS* toggle
...
- We now track whether or not the user has modified the value of the switch control. If so, we don't toggle it's value on mouseup.
2011-08-29 12:39:25 -07:00
John Bender
07edada0dd
added todo to centralize page dom removal and ref counting Fixes #2329
2011-08-29 10:09:22 -07:00
John Bender
bddc8c8ed2
small tweak to directedHashChange to make sure the right value is passed in for isBack
2011-08-29 09:12:39 -07:00
scottjehl
d63350ca6c
set initial page div's data-url to location.pathname unless it has an ID on it. This fixes an issue where going back to the initial page will end up generating a new homepage rather than transitioning to the one already in the dom.
2011-08-28 00:06:27 -04:00
scottjehl
6de76168af
Clarified the documentation around the purpose of the pagebeforecreate event and removed the pagebeforecreate return value check, as returning beforecreate false is no longer relevant now that all plugins auto-init externally, rather than inline in the page plugin.
2011-08-27 11:26:16 -04:00
scottjehl
10e2d5a61a
previous commit should not have switched the order of trigger and add classes. Reverted, with cleanup still in place.
2011-08-27 11:07:21 -04:00
scottjehl
ce5ce102dc
A little simplification in the page plugin
2011-08-27 10:58:46 -04:00
John Bender
a3487e620d
simplified the default hash handling prevention back to somthing akin to @scottjehl's original implementation
2011-08-27 02:47:54 -07:00
John Bender
76d5c49b78
minor refactor and check for defined attr
2011-08-27 01:01:54 -07:00
John Bender
6b010492b2
minor refactors in nav and pushstate for clarity
2011-08-27 01:01:54 -07:00
John Bender
82cce1fa60
fix the chrome bug and reduce the number of crazy hash juggles we do
2011-08-27 01:01:54 -07:00
John Bender
328d58b2e9
fixed role retention issue from clearing the dom cache
2011-08-27 01:01:54 -07:00
John Bender
3a13a6ec75
renamed replacestate key handling method
2011-08-27 01:01:53 -07:00
John Bender
b569c1cc8b
fix for dialog and subpage key url issues with replace state
2011-08-26 14:54:27 -07:00
John Bender
49cf3af91a
Merge branch 'replacestate-external'
2011-08-25 13:05:54 -07:00
John Bender
df9e23390f
extra comments for clarity
2011-08-25 11:51:01 -07:00
John Bender
8a994d3dfa
add config option for pushstate
2011-08-25 11:42:32 -07:00
John Bender
44eaf7707b
fix broken hash on dialog after initial page load
2011-08-25 10:49:51 -07:00
John Bender
af0e1f5d7e
whitepasce in nav
2011-08-25 10:49:51 -07:00
Ghislain Seguin
884bfdee3b
Merge pull request #2312 from MichelHartmann/patch-1
...
Fixed closing the dialog, when the page is removed.
2011-08-25 08:38:44 -07:00
John Bender
7d68059dd6
removed initial disable for spurious popstate and moved to doc ready init for late inclusion in the document instead of monkey patching
2011-08-24 15:59:06 -07:00
gseguin
2cc8c7ff34
Fix for issue #779
...
Addressing @jakeboone02's comments at dd9ae4898b (commitcomment-531858)
2011-08-24 13:54:03 -07:00
gseguin
e98215a3e1
Whitespace change
2011-08-24 10:48:13 -07:00
Michael Platov
b9557705b3
Fix for issue 509 textarea autogrow
2011-08-24 14:28:12 +08:00
John Bender
657f6b8c3f
make sure the popstate replacestate call uses the full href
2011-08-23 12:07:52 -07:00
John Bender
2c7789b6a3
clean scoping add, comment
2011-08-22 14:58:42 -07:00
John Bender
49eeccdde3
rescope self
2011-08-22 14:31:14 -07:00
John Bender
e3fb2e285b
handle query strings for initial replaceState
2011-08-20 07:29:21 -07:00
John Bender
547afbf184
manually hoist variables
2011-08-20 07:21:49 -07:00
Michel Hartmann
9c088cd5ba
Fixed closing the dialog, when the page is removed.
2011-08-20 06:31:20 +03:00
John Bender
1dd791175a
proposed solution to the navigate, refresh, back button pushstate bug. the determination of the hash to be stored in the replaced state is done in a consistent fashion where, if there is no hash, its defaulted to the original load path by puting the logic in a central method. @scottjehl give it a try and let me know if this works for you
2011-08-19 18:54:29 -07:00
scottjehl
b438472fec
if no hash is present, run a replacestate. All nav tests still passing.
2011-08-18 22:41:13 -04:00
scottjehl
bf593857f6
degraded type should have been "text" instead of true. Addresses a comment in issue #2123
2011-08-18 22:01:58 -04:00
Kin Blas
ab1a52b51d
With the exception of "ms", which we don't support anyways, all vendor prefixed CSS properties are converted into style object properties with a name that begins with an upper case. Note, that webkit duplicates these properties on the style object, such that the property can be referenced with a leading caps, or leading lower-case.
...
This change was necessary at least for the transitions branch because the lookup for the 'transform' property was failing on FireFox.
2011-08-18 16:40:08 -07:00
John Bender
2c3d9bc2f1
removed extra replace state fire, need to check with @scottjehl
2011-08-18 16:25:21 -07:00
gseguin
9f3836e7b1
Fix for issue #1405 : Moved assignment of $activeClickedLink to the vclick handler in charge of adding the active state
2011-08-17 17:32:55 -07:00
John Bender
fb5d9df56f
simplified the pushstate some more
2011-08-17 16:32:59 -07:00
John Bender
b197e760fd
simplified the hash handling with help from @jblas
2011-08-17 16:22:09 -07:00
gseguin
6fb51b1d3d
replaced ui-btn-active by $.mobile.activeBtnClass
2011-08-17 16:12:42 -07:00
gseguin
3737d170a0
Merge remote-tracking branch 'upstream/master'
2011-08-17 13:29:07 -07:00
gseguin
a620d97868
Re-uses the boolean create at creation time to let the refresh functions know that they've been called by create
2011-08-17 12:09:07 -07:00
John Bender
b7d5df786f
whitespace and comment merge conflict resolved
2011-08-17 11:09:05 -07:00
John Bender
eba4e7eeb4
switched path helper
2011-08-16 17:06:55 -07:00
John Bender
b41b0573d2
leverage the path helpers to get this right
2011-08-16 13:25:04 -07:00
John Bender
72ce65767e
support embedded pages as a hash since the concatenated form represents a file
2011-08-16 12:55:03 -07:00
Samuel Padou
e8f78dacb1
check the domCache option before rebinding the page remove when closing a full page select menu
2011-08-16 13:57:07 +02:00
John Bender
43b1b776d9
minor refactor for comprehension
2011-08-15 17:01:37 -07:00
scottjehl
c864dac3b1
added replacestate to the tests, as that's the method we're using
2011-08-14 13:44:40 -04:00
scottjehl
0512916e72
centralized the hashchange fired flag
2011-08-14 10:20:14 -04:00
scottjehl
854ce44179
timeout number is arbitrary. Still looking for a way around it though.
2011-08-14 10:03:16 -04:00
scottjehl
2d29880f4c
whitespace stuff
2011-08-14 09:57:12 -04:00
scottjehl
3ebe7b4218
just use location.pathname. same thing, in hindsight.
2011-08-14 09:30:33 -04:00
John Bender
cfe12241a2
fixedcustom select extension to respect the prototype alterations Fixes #2272
2011-08-12 09:56:54 -07:00
scottjehl
6d2f9737db
conditionally trigger the hashchange after a popstate, only if it doesn't trigger its own.
2011-08-12 12:53:07 -04:00
gseguin
5917b379e1
Merge remote-tracking branch 'upstream/master'
2011-08-11 17:01:15 -07:00
gseguin
dd9ae4898b
Fix for issue #779
...
Added a ui-li-has-count class for listview items that contain a count bubble. Changed default padding-right to 25px adjusting it to 75px when count bubble is present.
2011-08-11 16:59:51 -07:00
gseguin
ef431a870c
remove corners on all li elements of the list when refreshing corners
2011-08-11 16:22:11 -07:00
John Bender
5d081afa48
removed leftover files from old decoupled select menu iterations
2011-08-11 15:34:44 -07:00
gseguin
36e0fb53c7
Made _refreshCorners private
2011-08-11 12:08:27 -07:00
gseguin
418bb8786a
Fix for issue #1450 : added refreshCorners method to listview widget
2011-08-10 23:15:38 -07:00
Andri Möll
70bd1ba371
Fix nested waiting-for-dom for initializePage.
...
Using dom-ready within dom-ready meant that initializePage went to the end of
the queue. That brought problems when other dom-ready code expected jQM to be
set up, capable of changing pages and so on. But because $.mobile.pageContainer
is also set in initializePage, changePage and others didn't work.
2011-08-10 18:01:36 -07:00
John Bender
73953915c0
merge fix for select
2011-08-10 14:21:49 -07:00
John Bender
6cdec7d14d
minor whitespace
2011-08-10 13:35:35 -07:00
John Bender
28120ea929
fixed selected items bug
2011-08-10 13:35:05 -07:00
John Bender
b38efe1a63
whitespace
2011-08-10 00:01:55 -07:00
John Bender
09339ac534
grouped prive and public methods
2011-08-09 23:59:07 -07:00
John Bender
345fbbdacc
more whitespace
2011-08-09 19:14:27 -07:00
John Bender
0d4bd449ca
more whitespace
2011-08-09 19:12:43 -07:00
John Bender
3b7ab6dac7
whitespace
2011-08-09 19:11:46 -07:00
John Bender
629ef9a024
simplified the extension calls in the custom select
2011-08-09 19:08:34 -07:00
John Bender
e12f5122bd
use cached value in button text method
2011-08-09 15:58:13 -07:00
John Bender
62e1631353
fix label class application bug
2011-08-09 15:50:42 -07:00
John Bender
88edbc666f
cleaning up this and self references
2011-08-09 15:28:54 -07:00
John Bender
12771afade
_create cleanup
2011-08-09 15:05:15 -07:00
John Bender
2839cfb469
small cleanup in naming and grouping
2011-08-09 14:52:31 -07:00
John Bender
0f072416cb
moved shared functionality into native and custom selects as necessary
2011-08-09 14:41:51 -07:00
John Bender
67e76a072b
removed options from shared, move theme determination to method
2011-08-09 13:47:40 -07:00
Rick Waldron
45ab6a9ddc
Core Style Conformance: jquery.mobile.init.js
2011-08-09 11:16:41 -04:00
John Bender
fd8fb03205
segregate native and select
2011-08-08 16:47:53 -07:00
John Bender
974e4d0801
moved to event model for custom overrides, still need to centralize shared file
2011-08-08 16:19:52 -07:00
John Bender
ff8a1ceefa
.call on shared
2011-08-08 13:53:53 -07:00
John Bender
426da8f495
centralizing options
2011-08-08 13:33:24 -07:00
John Bender
76adbc9293
minimize extension in individual widgets
2011-08-08 13:31:50 -07:00
John Bender
5c76de355a
shared components moved to shared init function
2011-08-08 12:52:32 -07:00
John Bender
9eec8df520
moved native shared component into shared, will do the same for custom
2011-08-08 12:07:37 -07:00
John Bender
64a9b595d3
start of seperation of native select
2011-08-08 11:40:26 -07:00
John Bender
bac747498f
small refactor before final split
2011-08-07 21:04:53 -07:00
scottjehl
0253e67fbb
fixed an error in the array reference that was causing support tests to not test properties as they should.
2011-08-07 13:19:20 -04:00
scottjehl
e1fbaf9cce
updated to support deep links to nested lists and dialog parent pages. Still battling a 2x back history issue on those.
2011-08-05 18:49:16 -04:00
scottjehl
e564eb1c5f
first pass at implementing pushstate support from an external file.
2011-08-05 18:49:16 -04:00
John Bender
d293e968f9
moved _buildList into custom
2011-08-05 15:35:13 -07:00
John Bender
7494e398a5
moved open to custom and added a test for native select change removing the button down class
2011-08-05 14:45:08 -07:00
John Bender
3133ccbc3a
moved close to custom, and disable/enable methods common with tests for enable/disable
2011-08-05 12:21:45 -07:00
John Bender
c739597755
core style guide
2011-08-05 09:37:55 -07:00
John Bender
7e09b9af28
ghetto cherry pick of custom dialog fix for chrome redraw issue and height calculation stability
2011-08-05 09:32:40 -07:00
scottjehl
d120404ead
Merge remote branch 'origin/master'
2011-08-05 09:58:30 -04:00
scottjehl
28eebc25de
Brought back the page content div theme inheritance from b1. Thanks to abdulqadir for the suggestion. Fixes #2221
2011-08-05 09:58:25 -04:00
Ghislain Seguin
b23d444c71
Merge pull request #2216 from johnbender/listview-filter-callback
...
Listview filter callback
2011-08-04 16:12:53 -07:00
John Bender
8660befda8
removed global from listview
2011-08-03 17:50:48 -07:00
John Bender
6bbf830da8
simple filterCallback in the options to delegate complex search to end users
2011-08-03 17:10:44 -07:00
John Bender
bda2358e6c
Merge branch 'fcheslack-footer-control-group-buttons'
2011-08-03 13:39:22 -07:00
John Bender
6529dc7f8c
Merge branch 'footer-control-group-buttons' of https://github.com/fcheslack/jquery-mobile into fcheslack-footer-control-group-buttons
2011-08-03 13:19:28 -07:00
John Bender
3dbb018e82
Merge pull request #2173 from SamuelKC/selecthidefix
...
Fix issue of the select menu not closing on Chrome - Fixes 2198, 2194, 2197
2011-08-03 11:52:17 -07:00
gseguin
cce89cb91d
Merge remote-tracking branch 'upstream/master'
2011-08-03 11:16:20 -07:00
gseguin
6da588c394
Coding standards
2011-08-03 11:15:03 -07:00
Rick Waldron
953f0cdf97
Core Style Conformance updates; jquery.mobile.support.js
2011-08-03 13:19:53 -04:00
scottjehl
a48128f9a3
wrapped in parens for clarity
2011-08-03 12:15:04 -04:00
scottjehl
d42db4d4ee
This change moves the ajax navigation opt-out list (which contains, mainly, browsers that have broken history tracking of hash changes) over to the support.js file, and added a multi-tierd Nokia condition that checks a number of UA conditions to try and pinpoint Nokia + Symbian + Webkit + 7.3-or-older. Big thanks to Bryan and Stephanie at Yiibu for their helpful article on Nokia device detection. That said, we would LOVE to find a non-UA based way to handle this detection. Reluctantly, this seems to do what we need at the moment, while assuming hash history will be improved in any post-7.3 release.
...
Also included in this commit is a Nokia-specific condition that re-appends existing stylesheets to force them to render, as all pre-7.3 devices we tested would not render the CSS if it was referenced before the JavaScript (as we'd recommend doing). There may be a non-JS way to work around this problem, but for now, this seems to do the trick.
2011-08-03 12:15:04 -04:00
John Bender
58631807d4
moved common refresh functionality up
2011-08-02 16:00:37 -07:00
John Bender
edfef386b1
moved refresh to individual widgets, still some duplication to be moved into the common
2011-08-02 14:08:42 -07:00
John Bender
1d00ee316e
forgotten bind on pagehide to fix height calculation issues
2011-08-02 12:38:53 -07:00
John Bender
be0dbb9b10
fixed some minor whitespace issues
2011-08-02 09:30:28 -07:00
John Bender
3950542884
made sure the dialog test fails many times, added an extra todo for moving the functionality to find the current theme if its not specified to a generic location
2011-08-02 09:30:28 -07:00
John Bender
b8451c5557
moved element creation and propertie declaration into the common object
2011-08-02 09:29:01 -07:00
John Bender
6e343c20cb
fixed double wrap from local variables
2011-08-02 09:26:31 -07:00
John Bender
30c2e6c6a4
moved most of the build functionality to delegate objects
2011-08-02 09:26:31 -07:00
John Bender
0e7ded7709
create -> build, and list build up moved
2011-08-02 09:26:31 -07:00
John Bender
9014e243fb
custome menu select creation begun
2011-08-02 09:26:31 -07:00
John Bender
4aa32698de
move native menu creation to delegate object
2011-08-02 09:26:30 -07:00
John Bender
89e6f59bb3
Revert "removed the custom menu portions of the selectmenu, which will be moved to select.custom.js, which is non-functional in this commit"
...
This reverts commit c318c5b7cf7d51a69438071cbfbcf307a27c7b7d.
2011-08-02 09:26:30 -07:00
scottjehl
db22dfa111
removed the custom menu portions of the selectmenu, which will be moved to select.custom.js, which is non-functional in this commit
2011-08-02 09:21:21 -07:00
Scott Jehl
b7a19b604c
Merge pull request #2184 from rwldrn/jquery.mobile.fixHeaderFooter.js
...
Core Style Conformance updates; jquery.mobile.fixHeaderFooter.js
2011-08-02 07:24:08 -07:00
John Bender
f1d964e9e9
fix for cached page removal breaking dialog sized select menus Fixes #2181
2011-08-01 18:08:28 -07:00
Rick Waldron
627b9189d6
Core Style Conformance updates; jquery.mobile.fixHeaderFooter.js
2011-08-01 18:34:49 -04:00
scottjehl
faf26d8f6d
namespaced $.fixedToolbars to $.mobile. Kept a deprecated pointer to $.fixedToolbars that we'll want to remove later. This feature can now be documented. Addresses Issue #2024
2011-07-31 20:35:18 -04:00
scottjehl
ee17b4f05c
Ensure that navigating backwards through dialogs works as expected when domCache is false (which is the default now).
2011-07-31 10:03:22 -04:00
scottjehl
be74405b49
Added a configurable timeout to $.mobile.loadPage to give pages that are being fetched from cache a little time to load before a loading message appears. We'll need to tweak this timer based on device testing to determine how long it takes on average to fetch a cached page. If the delay ends up needing to be longer than 300ms or so to suit some devices, it's probably not worth having this feature at all.
2011-07-30 08:33:04 -04:00
scottjehl
bdba60efd5
removed urlHistory references to (and use of) each entry's "page" property, which kept a reference to the DOM elements of each page that had been loaded. This fixes leaking memory on removed pages, and outsources page requests to the browser cache (for real this time :) ).
2011-07-29 19:51:17 -04:00
John Bender
50acf2eb7c
fix to use options defined on page widget to determing domCache settings
2011-07-29 12:55:40 -07:00
John Bender
27b4ba1691
ajaxDomCaching -> domCache
2011-07-29 10:10:26 -07:00
John Bender
180243e9ad
added a todo for the subpage tracking
2011-07-29 10:10:26 -07:00
John Bender
85114be097
use childPages method to abstract method for finding child pages, hopefully we can find something better than the url selector
2011-07-29 10:10:25 -07:00
John Bender
3035387446
first test for nested page removal/caching
2011-07-29 10:10:25 -07:00
John Bender
d716f3e9e7
moved dom cache check above the enhance to let widgets unbind parent page hide behaviour. added parent removal to listview special remove
2011-07-29 10:10:25 -07:00
John Bender
57a1e9abf7
whitespace and log statement in listview
2011-07-29 10:10:25 -07:00
scottjehl
115f1710b1
remove entire list when parent page is hidden and next page is not a sub list. Note: the unbind of the "pagehide.remove" does not appear to be preventing the parent page from removal, and it regenerates its sublists when revisiting that parent, since it was removed.
2011-07-29 10:10:25 -07:00
scottjehl
a8c3859d84
using regular data method to access widget
2011-07-29 10:10:25 -07:00
scottjehl
dc054a10e7
implemented ajax dom caching option of the page plugin, which can be overridden by page options or data attribute. Includes unit test to support feature.
2011-07-29 10:10:25 -07:00
Samuel Padou
f097630a71
Fix issue of the select menu not closing on Chrome when we click out out of the menu or on the selected option
2011-07-29 17:39:53 +02:00
Ghislain Seguin
30e8ea8e09
Coding standards
2011-07-28 15:25:57 -07:00
Ghislain Seguin
29c408f32a
Merge remote-tracking branch 'upstream/master'
2011-07-28 15:25:10 -07:00
Ghislain Seguin
703d31073e
Merge pull request #2102 from kpozin/patch-6
...
Cache option indices in <li>s in custom select menus instead of doing linear search on every click
2011-07-28 15:21:52 -07:00
Faolan C-P
86824432e4
fix control group button selector in any .ui-bar instead of just .footer
2011-07-28 14:41:31 -04:00
Faolan C-P
21c8ce2989
add selector for links inside control groups in buttonMarkup
2011-07-28 14:35:47 -04:00
scottjehl
263193f490
Moved autoinit calls to after widgets. Made it so auto init selectors use the initSelector option, so that it can be configurable.
2011-07-27 18:42:16 -04:00
Ghislain Seguin
6ff9d9a06a
Coding standards
2011-07-27 11:22:13 -07:00
Ghislain Seguin
d1e8083f15
Merge pull request #2152 from webmynd/master
...
Consider data-role when picking page transition in changePage
2011-07-27 10:04:39 -07:00