Commit graph

1663 commits

Author SHA1 Message Date
toddparker
cd17ceda97 Updated the status of alpha 3 borwser support page 2011-02-01 22:30:45 -05:00
toddparker
4faa48288f Merge remote branch 'origin/master' 2011-02-01 22:04:53 -05:00
Jesse Streb
e15ce80702 moved the setTimeout within the transition to be in the success handler of the ajax response. We now wrap the transitionPages that we call after injecting the new page into the DOM within the setTimeout which fixes the same issue but limits to pages that are injected into the DOM and makes it more clear why we have the setTimeout 2011-02-01 21:44:23 -05:00
Kin Blas
179061a4c9 Fix for Issue #678 - Select list offset above top of screen.
- Wait for the "silentscroll" event before setting focus. This avoids the "feature" where the browser will automatically offset rendering of a container to make sure whatever has focus is visible.
2011-02-01 17:14:15 -08:00
scottjehl
18f349bf37 make sure non-created pages are hidden. Fixes #946 2011-02-01 20:03:49 -05:00
scottjehl
70f4acdd04 selectmenu: moved the list building logic over to use an arrays and joins to speed things up. 2011-02-01 19:28:30 -05:00
scottjehl
698f7fd255 updated attribute for new option name 2011-02-01 15:50:40 -05:00
scottjehl
aad8ac174a Removed the extra ways to set nativeMenu option in select plugin. Now like other plugins, the option is both available through the plugin's options (nativeMenu) or through a data-attribute (data-native-menu), which is automated through the camelcase option name. Unit tests updated 2011-02-01 13:27:35 -05:00
scottjehl
3f938fd2f9 fixed bug where a preset data-url was being prefixed by the base url, rather than replacing the whole hash. Fixes #591 2011-02-01 12:32:02 -05:00
scottjehl
6855363375 changing this selector to be more specific prevents an error in IE 7 (and win mobile). Support is coming :) 2011-02-01 11:53:32 -05:00
scottjehl
5e6e6019eb updated to jQuery 1.5 2011-02-01 11:37:00 -05:00
scottjehl
ae8964f7de fixed a bug in the class syntax 2011-02-01 10:41:46 -05:00
scottjehl
4930a42873 moved over to our class-based media query 2011-02-01 10:40:18 -05:00
John Bender
992fba1e7c fix for core tests. Note: pages can only be one level below the mobile viewport or bad things happen 2011-01-31 23:09:36 -08:00
scottjehl
e0d419d001 updated some docs pages to mention data-ajax="false" attribute on links. 2011-02-01 01:20:47 -05:00
Mark Schuette
f640646877 added the ability to use the default behavior of links with data-ajax=false 2011-02-01 14:13:04 +08:00
scottjehl
0572757af3 updated docs to describe new listview li-level data-theme option 2011-02-01 01:07:17 -05:00
chrisvire
d3376b7b5c Allow for data-theme attribute on list item 2011-02-01 14:03:36 +08:00
scottjehl
a5c8f86d10 links with no href attribute will not throw an error when clicked. Fixes #932 2011-02-01 01:01:41 -05:00
scottjehl
e00f007792 missed a name change in the unit test 2011-02-01 00:52:31 -05:00
scottjehl
da1c615c8a inset listviews with a single item will get appropriate visual treatment. Fixes #469 2011-02-01 00:37:24 -05:00
scottjehl
eb2845d1dc fixed one additional back button condition mentioned in issue #930 where the back button is added to a page that is directly linked with no hash. All navigation tests passing. https://github.com/jquery/jquery-mobile/issues/issue/930 2011-02-01 00:32:59 -05:00
scottjehl
6eefb23406 changed the name of urlHistory.listeningEnabled to urlHistory.ignoreNextHashChange. The name more accurately reflects the purpose of this internal toggle. Unit tests included. Also Fixes #930 2011-01-31 23:56:56 -05:00
scottjehl
92f863d062 typo in test description 2011-01-31 23:49:30 -05:00
scottjehl
4c4ccbd971 removed the position plugin script references 2011-01-31 23:48:13 -05:00
scottjehl
35b1df81e7 changePage was firing more than once because hash listening was not disabled long enough to prevent listening of the resulting async hashchange event after setting location.hash. This change makes urlHistory.listeningEnabled act as an internal toggle (as it used to), so it is only meant for ignoring a single hashchange event. A future change might be appropriate to change its name to something more like "ignoreNextHashChange".
Unit test included.

Fixes #930
2011-01-31 23:47:01 -05:00
scottjehl
3162428558 added hashListeningEnabled global flag. This is meant as a global config option for end users to disable hashchange listening (as opposed to urlHistory.listeningEnabled, which is an internal toggle). Unit test included. Fixes #748 2011-01-31 23:25:36 -05:00
scottjehl
3b5b615451 whitespace and code style 2011-01-31 22:43:17 -05:00
scottjehl
c11bdcca0d Merge remote branch 'origin/master' 2011-01-31 22:11:32 -05:00
scottjehl
a51adb98c4 updated the readme with more helpful information 2011-01-31 22:11:28 -05:00
Jesse Streb
34260225a7 Removing height: 120% as it appears to have caused unnecessary flickering and by setting the min-height of each page creation is unnecessary. 2011-01-31 21:42:38 -05:00
scottjehl
d509404b72 Merge remote branch 'origin/master'
Conflicts:
	js/jquery.mobile.navigation.js
2011-01-31 17:33:25 -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
scottjehl
f842b46474 added data-rel attrs to close buttons 2011-01-31 17:05:41 -05:00
scottjehl
44806bcf58 added a dialog to the demo 2011-01-31 16:51:20 -05:00
scottjehl
b112b6ea84 updated doc version # 2011-01-31 16:45:41 -05:00
toddparker
9337a3acc9 Deleting design files. 2011-01-31 11:05:44 -05:00
toddparker
3420389be8 Removing some design source files from Git b/c it's slowing down the repo. 2011-01-31 10:57:00 -05:00
John Bender
591593dd49 misplaced semicolon 2011-01-31 00:13:01 -08:00
John Bender
770ff8edfb added test to check that changePage is called when a embedded page is referenced and rel=external is defined 2011-01-31 00:01:17 -08:00
adammessinger
cb4f540645 Fixes #900 - buttons with rel attribute set to external don't show active state 2011-01-30 23:43:53 -08:00
John Bender
8b5f083974 whitespace and missing semicolon in setTimeout for non webkit animationComplete 2011-01-30 22:03:30 -08:00
Alex Kovar
4830ac9e9b tweak for animationComplete 2011-01-30 23:00:51 -06:00
Alex Kovar
62af59983f made $.fn.animationComplete behave more consistently between webkit/non-webkit. Closes gh-918 2011-01-30 17:06:33 -06:00
scottjehl
c470278a62 added data-direction to "back" link in content, in case the deep-linked page is opened first. 2011-01-30 16:54:33 -05:00
scottjehl
c0585948bb set a max width on the datepicker for desktop preview 2011-01-30 15:57:47 -05:00
scottjehl
2f9d1bce33 position loading message either center screen (if scrollTop supported), above active clicked button (if defined), or 100px off the top. Fixes #892 2011-01-30 13:34:45 -05:00
John Bender
badefe1ee1 whitespace and missing semicolon fix 2011-01-30 00:19:15 -08:00
John Bender
202ed5ff2c corrected failing tests in navigation 2011-01-29 22:50:48 -08:00
scottjehl
db422561f7 Merge remote branch 'origin/master' 2011-01-29 10:30:53 -05:00