Commit graph

21 commits

Author SHA1 Message Date
scottjehl
06020201fc fixed up the themeswitcher 2011-06-17 19:25:35 -04:00
scottjehl
77ac0f009a a few more non-namespaced attrs to bring over 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
237db243dd updated the experiments dir to use data-jq namespaces 2011-03-09 20:59:28 -05:00
scottjehl
c7fe048016 updated to use namespaced data attrs 2011-03-09 20:49:42 -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
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
1c5236be6c fixed the themeswitcher 2010-12-03 18:12:44 -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
4db0734008 fixed themeswitcher a little bit 2010-11-11 20:31:17 -05:00
scottjehl
bffd9a991b needed $.mobile.activePage 2010-11-11 18:54:50 -05:00
scottjehl
055bf14e3f moved changePage, pageLoading, and silentScroll methods to $.mobile obj. 2010-11-11 15:03:40 -05:00
scottjehl
f6dbe5554c Welcome back, Valencia. Fixes #352 2010-11-04 18:50:43 -04:00
scottjehl
a0b814e26a moved appends over to use $.pageContainer 2010-10-20 12:09:03 -04:00
John Resig
6381413192 We'll have to go with the old URL for the demo, for now, jsut so that something works. 2010-10-15 18:06:11 -04:00
scottjehl
6cc749023e renamed Dobson theme "Valencia" 2010-10-15 17:10:38 -04:00
John Resig
053808fe7b Make the themeswitcher URL relative. 2010-10-15 16:30:04 -04:00
scottjehl
a424e4428d edits to themeswitcher 2010-10-15 11:34:33 -04:00
scottjehl
1fa820f85f don't remove themes on switch. 2010-10-13 14:22:02 -04:00
scottjehl
18a17dd6d9 changed themeswitcher listview to inset 2010-10-13 13:37:33 -04:00
scottjehl
0651d90ead Added a theme switcher widget. Written as a bookmarklet, but only used in a new "switch theme" button on the index page. 2010-10-13 13:29:18 -04:00