Commit graph

34 commits

Author SHA1 Message Date
Ghislain Seguin
079324cf56 Use jQuery tag inserter instead of pointing directly at jquery.js 2012-01-22 23:15:30 -08:00
Ghislain Seguin
17164d28c4 Move require.js to first tag so it can catch jquery module registration
Otherwise jquery may be loaded twice
2012-01-12 21:58:42 -08:00
jrburke
73a8d24134 Move require.js to first tag so it can catch jquery module registration, otherwise jquery may be loaded twice. 2012-01-12 21:35:46 -08:00
Ghislain Seguin
ff9b742723 Use css/themes/default/jquery.mobile.css instead of css/themes/default/index.php 2012-01-10 14:49:52 -08:00
John Bender
95073892f0 Merge branch 'amd' 2012-01-04 12:24:33 -08:00
Mat Marquis
9b3aefae84 Moved .ui-dialog to element wrapping dialog header/content/footer, switched overlay non-theming class to .ui-dialog-page. 2012-01-03 18:16:29 -05:00
Ghislain Seguin
0bd10de3e8 Added require.js 1.0.3 as a submodule 2011-12-24 00:48:08 -08:00
John Bender
5158cbf4ce remove base url juggling in favore of .js convention provided by requirejs 2011-12-21 11:30:46 -08:00
John Bender
dc203029a3 update dialog tests to use amd 2011-12-21 08:13:24 -08:00
Ghislain Seguin
3da8e0d171 Added tests for dialog theming and overlayTheme 2011-11-04 22:34:58 -07:00
Eddie Monge
8bc5e42fb3 2700: Step 5 Update all doc references 2011-10-17 13:51:45 -07:00
Jörn Zaefferer
0ed1460279 Add swarminject.js to prepare for TestSwarm integration 2011-10-04 15:02:17 -04:00
John Resig
0b83cf8d60 Tweak some more stylesheet formatting. 2011-09-08 21:35:28 -04:00
John Bender
f352f05cc9 core style guide 2011-08-10 17:10:31 -07:00
John Bender
c41c65a1cf quote consistency 2011-08-10 17:07:34 -07:00
John Bender
6ebaf991a8 moved dialog test to pageSequence helper, and small cleanup 2011-08-10 17:06:56 -07:00
BradBroulik
bf4db8dae1 Added unit tests for dialog theme inheritance. 2011-08-05 17:49:47 -05:00
BradBroulik
d5cf4fc29a Unit tests for dialog theme inheritance 2011-08-05 16:56:42 -05:00
scottjehl
8ba4c27300 Ya'll can scale your pages now. Fixes #1645. Note: we originally disabled user zooming to work around a bug in iOS that automatically zooms the page beyond the constraints of the viewport on orientation change. We are not working around this bug at all now, but you are free to include any meta tag you'd like, or better yet, consider this polyfill: http://www.blog.highub.com/mobile-2/a-fix-for-iphone-viewport-scale-bug/ 2011-05-17 17:28:19 -04:00
scottjehl
d97a964884 been meaning to do this for a while. 2011-04-14 16:04:47 -04:00
scottjehl
b950f1c319 changed to just call dialog close method 2011-03-26 15:01:25 -04:00
John Bender
63e8f6bfcb resolved merge conflicts and fixed 2 tests 2011-03-15 23:57:17 -07:00
scottjehl
0d9627d54e 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
0bf5ce8a37 set unit test pages namespace to "nstest-" 2011-03-09 23:16:48 -05: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
John Bender
421dc352c0 corrected js test includes and simplified to prevent further breakages 2011-02-20 18:07:17 -08:00
John Bender
05e7bbac45 fixed broken listview test in chrome and dialog test redirect 2011-02-14 23:19:56 -08:00
John Bender
487e04af02 removed useless test in for dialogs added simple replacement 2011-02-06 22:55:29 -08:00
John Bender
cbd1eb7ac9 moved page and dialog styling to qunit css to remove repition and make sure that its consistent across pages 2011-02-05 21:22:50 -08:00
scottjehl
4c4ccbd971 removed the position plugin script references 2011-01-31 23:48:13 -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
b2817375f4 altered innacurate test result message 2011-01-20 22:22:47 -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