scottjehl
c16dee657b
new attribute: data-role="nojs" can be applied to any element that should be accessibly hidden from the page for A browsers.
2010-09-19 18:21:09 -04:00
scottjehl
02a76c3f48
added the auto-init for autoforms to mobilize function
2010-09-19 18:15:02 -04:00
scottjehl
14436257f6
made sure ui-page class is only added if there's no closest('.ui-page') present on it during mobilize call
2010-09-19 18:11:39 -04:00
scottjehl
8c7205c3ad
added 4 functions to $ namespace for use in external plugins
2010-09-19 18:09:05 -04:00
scottjehl
0782029b12
made $.mobilize available for externals
2010-09-19 17:57:06 -04:00
scottjehl
a3c1a3a57f
uncommented line to fade in content after loading finishes
2010-09-19 15:21:28 -04:00
scottjehl
b351290a9c
modified manageglobalnav function to work based on a passed element argument
2010-09-19 11:10:02 -04:00
scottjehl
456d754a87
changed initial selector to find first page so it doesn't use ui-page class
2010-09-19 10:49:28 -04:00
scottjehl
843f5810ee
moved initial mobilize call after ID is set
2010-09-19 10:47:27 -04:00
scottjehl
12773bc925
changed to use classes for toggling globalnav visibility
2010-09-19 10:35:48 -04:00
scottjehl
c3d95d5fd0
changed to make sure mobilize is called on any pagechange (to accommodate generated globalnav pages. Made sure it can only be run once on a page.
...
also added manageGlobalnav function to show/hide globalnavs depending on whether the active page is an expanded globalnav.
2010-09-19 10:32:46 -04:00
scottjehl
1c1dc1d94f
append globalnav to end of body after page change
2010-09-18 14:02:49 -04:00
scottjehl
f9f236fb8b
Big update:
...
In starting markup, pages should now be identified with the attribute data-role="page". This allows us to then add ui-page programatically, hiding all non-active pages, and apply ui-page-active to one page at a time to show it.
mobile.js is updated to find pages by this attribute now, instead of ui-page class.
fixes issue 32
2010-09-18 12:20:35 -04:00
scottjehl
37f16c3022
undo that last change for binding swiperight to ui-page with live. Namespaced unbinding didn't seem to work.
2010-09-18 11:15:24 -04:00
scottjehl
36dba04c6b
changed automated swiperight binding to ui-page instead of body.
2010-09-18 11:12:50 -04:00
scottjehl
125cb6c156
changed globalnav logic to do the following:
...
- globalnav elements can now be included at the end of any ui-page div
- mobilize will create the globalnav when it finds one, append outside of ui-page to persist across pages
- when a new page is loaded that includes a globalnav, old globalnav will be replaced with the new one.
2010-09-18 10:55:37 -04:00
scottjehl
abef220bef
made some updates to fix support for globalnav plugin. Now you identify a globalnav with data-role="globalnav".
2010-09-17 18:44:55 -04:00
Scott González
fa04e2e661
Don't clear the pageTransition variable until after the hashchange.
2010-09-17 17:24:37 -04:00
Scott González
3961ce4754
Refactored page loading code.
2010-09-17 17:13:53 -04:00
scottjehl
bb56e1ea02
var wasnt being set globally. fixed now
2010-09-17 16:56:03 -04:00
scottjehl
f14be1c1d3
updated to make sure both local and new pages get role updates from links.
2010-09-17 16:32:14 -04:00
scottjehl
1c8b7f959d
Merge branch 'master' of github.com:jquery/jquery-mobile
2010-09-17 16:27:48 -04:00
scottjehl
7c5bc0148d
modified to allow for links to have a data-rel attribute, which specifies the role of the linked page (it sets data-role="FOO" on the linked page's ui-page div.
...
This value is set via ajaxClick and nulled out after use in a hashchange. Also, added a global var to specify ui-page selectors that should be removed from the page when the hash changes. Default is just '.ui-dialog'
2010-09-17 16:27:10 -04:00
Scott González
0479ff5239
Refactored $.media and moved to jQuery.mobile.support.js
2010-09-17 14:19:53 -04:00
scottjehl
a056d4636b
clarified comment
2010-09-17 13:54:28 -04:00
scottjehl
0d36d2aa2e
cleaned up ajax page retrieval code
2010-09-17 13:52:28 -04:00
scottjehl
d676524863
edited a comment - local urls work fine
2010-09-17 13:41:11 -04:00
scottjehl
0586c6e444
removed old comments
2010-09-17 13:30:50 -04:00
scottjehl
aa5031f24c
replaced prevUrl with urlStack array, which should improve the back/forward transitions between pages.
2010-09-17 11:29:12 -04:00
Scott González
1c5b60dc3a
Added orientationchange special event.
2010-09-16 17:20:31 -04:00
scottjehl
2662bb2abf
removed references to tree and tabs in mobilize function. added auto-init for listview widgets
2010-09-15 16:54:47 -04:00
Scott González
8acc5258a4
Refactored events and split out into a separate file.
2010-09-14 17:35:04 -04:00
scottjehl
1e7ed8c5d2
removed dependency on jQuery bbq in this file.
...
Now we only really need the hashchange plugin, unless plugins like tabs and tree end up needing to track their state via hash params. (Currently, jQuery.tabs.js uses bbq for tracking state under the "tab" parameter.)
For now, this fixes #6
2010-09-14 13:16:55 -04:00
scottjehl
cfe571e94f
commented out hideAfterDelay methods - now header/footers will not hide on a timeout after page load.
2010-09-14 12:55:50 -04:00
scottjehl
34b3dcaabc
moved $.support if statement back to mobile.js so it'll work for now.
2010-09-14 11:48:06 -04:00
scottjehl
eb2805f9d9
fixed up globalnav.js plugin and demo page. This could potentially replace the tabs plugin...
...
CSS updates for globalnav styling.
small changes to mobile.js to make globalNav demo init once at domready, not per ui-page.
2010-09-14 11:44:16 -04:00
Scott González
aee5e02740
Split support tests into jQuery.mobile.support.js and refactored tests.
2010-09-13 21:46:20 -04:00
Scott González
f584e3385f
Merge branch 'master' of github.com:jquery/jquery-mobile
...
Conflicts:
js/jQuery.mobile.js
2010-09-13 18:28:07 -04:00
Scott González
c9c1f30025
Updated header comment.
2010-09-13 18:22:51 -04:00
John Resig
4a129a8eb2
Removing unnecessary jQuery.support.ajax that's now in jQuery core. Fixes #1 .
2010-09-13 18:04:48 -04:00
scottjehl
cdcc31e794
removed comment regarding a FF4 bug that's now fixed in nightly
2010-09-13 17:29:13 -04:00
scottjehl
5740e59819
removed commented code - no longer needed
2010-09-13 16:21:11 -04:00
scottjehl
9c759b804d
commented out matchMedia logic for later
2010-09-13 16:20:06 -04:00
scottjehl
142cffdfc2
mobilize func had a few unscoped selectors to fix up. thx Doug.
2010-09-13 15:57:12 -04:00
scottjehl
ed0faf004f
changed :focus to document.activeElement. Thx Paul Irish :)
2010-09-13 15:55:38 -04:00
scottjehl
5d11ae2779
more rewriting to get the toolbars working better. this change separates the toolbar markup builder portion from the controller portion, which can now be called globally to show,hide,toggle all at once. This seems to be an improvement.
2010-09-12 11:33:23 -04:00
scottjehl
2eef9f4e5d
attempts to make the header footer transitions work better with multiple pages
2010-09-12 08:39:32 -04:00
scottjehl
8b3c27de37
removed a flag I didn't end up needing
2010-09-11 12:37:16 -04:00
scottjehl
ea63c773c6
rearranged the places where overlays are first shown, and where the auto-hide timer is called
2010-09-11 12:34:47 -04:00
scottjehl
2407f20959
some modifications to make the header footers work better with transitions.
2010-09-11 11:40:12 -04:00