Commit graph

153 commits

Author SHA1 Message Date
scottjehl
458e7b5d2f edited globalnav expanded button styles 2010-09-19 12:07:49 -04:00
scottjehl
b351290a9c modified manageglobalnav function to work based on a passed element argument 2010-09-19 11:10:02 -04:00
scottjehl
ad7b3a2293 edited globalnav expanded layout a little bit 2010-09-19 11:09:25 -04:00
scottjehl
62507c5c5e took the font size down a bit on global nav expanded buttons 2010-09-19 10:53:33 -04:00
scottjehl
08f1ec9bf8 rewrite of globalnav plugin. Anything beyond 3 links auto-generates a "more..." button and creates a fully navigable, scrollable page with all the links in a grid view. 2010-09-19 10:51:21 -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
8d0f0ea9b8 fixed up min-height to stretch background to fill screen 2010-09-19 10:44:08 -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
682595628f updated to use grid plugin for column layouts 2010-09-19 08:24:25 -04:00
scottjehl
b500be9657 added new grid plugin for adding classes to create flexible column layouts. 2010-09-19 08:14:48 -04:00
scottjehl
8f26170f6a changed class names to 'grid' instead of 'config' 2010-09-19 08:13:52 -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
9e35f60620 content edit 2010-09-18 12:03:24 -04:00
scottjehl
d6e17cafdd removed a couple brackets in attr() methods. 2010-09-18 11:47:07 -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
db30109223 added a quick tip about setting up MAMP for Mac OSX users who don't have a webserver already set up. 2010-09-18 11:07:52 -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
e016cfa6b7 make sure globalnav is only called once on a div 2010-09-18 10:44:46 -04:00
scottjehl
60deedf499 set ui-bar to be 16px font size 2010-09-18 10:29:14 -04:00
scottjehl
6fa401276a renamed files with jQuery.mobile. prefixes 2010-09-18 09:59:33 -04:00
scottjehl
2e9c5914e6 split CSS files out into individual components 2010-09-18 09:53:00 -04:00
scottjehl
b14ae8bc16 added support for a JS fallback for auto-numbering in listviews made from OL elements. If supported, numbering is pure CSS, otherwise, the script will generate numbering.
In both the css and the js, the counters will restart whenever a list grouping header is encountered.
2010-09-18 08:21:51 -04:00
scottjehl
a1d69628c8 added support property for cssPseudoElement. Test will allow plugins to use CSS generated content while providing a fallback for cases where it's unsupported.
First use case is the auto-numbering of OL elements in the listview plugin.
2010-09-18 08:18:53 -04:00
scottjehl
bd1a5159d2 added support for auto-numbering in listviews made from OL elements.
Note: currently uses CSS :before gen content, so we'll need to test support for that. listview.js includes a JS fallback, currently commented out.
2010-09-18 07:42:10 -04:00
scottjehl
87e8fcf9b5 simplified tap binding to any list items that contain anchors 2010-09-18 07:14:36 -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
scottjehl
779c79c917 removed extra rule 2010-09-17 17:47:23 -04:00
scottjehl
691e5c4ddc updated classes 2010-09-17 17:35:52 -04:00
Scott González
fa04e2e661 Don't clear the pageTransition variable until after the hashchange. 2010-09-17 17:24:37 -04:00
scottjehl
ffd864dc70 Merge branch 'master' of github.com:jquery/jquery-mobile 2010-09-17 17:15:14 -04:00
scottjehl
ba54aee4d8 updated link in demo page 2010-09-17 17:15:06 -04:00
scottjehl
1c70a9937a fixed up padding on toolbars 2010-09-17 17:14:06 -04:00
Scott González
3961ce4754 Refactored page loading code. 2010-09-17 17:13:53 -04:00
Scott González
933ec027d7 Cache jQuery object instead of creating new objects for each call. 2010-09-17 17:11:48 -04:00
scottjehl
b7e2166cf8 removed extra class from demo 2010-09-17 17:05:10 -04:00
scottjehl
9f1a28ab70 auto-add the dark theme class to ui-page 2010-09-17 17:05:01 -04:00
scottjehl
c360b1eeac class switch up 2010-09-17 16:56:11 -04:00
scottjehl
bb56e1ea02 var wasnt being set globally. fixed now 2010-09-17 16:56:03 -04:00
scottjehl
d013b660d6 fixed some class issues 2010-09-17 16:55:30 -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
d00e0e03c1 updated index page to link to dialog demo properly. 2010-09-17 16:27:29 -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
scottjehl
d06c22e8d9 added dialog plugin and css, added it to the manifest file, updated some of the content on the _dialog.html demo page 2010-09-17 16:24:12 -04:00
scottjehl
2b62ad506d made some edits to make sure sure fixpos class is only added if the placeholder is at least partially out of view, and it's only animated in if it's completely out of view 2010-09-17 14:42:58 -04:00
Scott González
706f580531 Fixed bad variable reference. 2010-09-17 14:34:03 -04:00