Commit graph

54 commits

Author SHA1 Message Date
John Bender
6487eb684f spaces to tabs in core 2011-05-19 15:36:22 -07:00
scottjehl
adf3808e84 Removed the dynamically-appended Meta tag, which was deprecated in Alpha 4, and scheduled for removal in beta. jQM users must provide their own meta viewport tag in the head of jQM apps. 2011-05-17 18:03:54 -04:00
scottjehl
04cb9c1850 followup to previous change, this time for dynamically appended meta viewport tags. 2011-05-17 17:30:13 -04:00
John Bender
74d13ee034 whitespace in mobile core 2011-03-31 23:39:09 -07:00
scottjehl
4a45d8d96b Added pageLoadErrorMessage option. Defaults to "Error Loading Page". Documentation included. Fixes #1258 and Fixes #363 2011-03-27 11:45:03 -04:00
scottjehl
665e87dd5b make sure an undefined prop stays undefined 2011-03-26 17:48:21 -04:00
scottjehl
8880ceb431 jqm coding style 2011-03-26 14:17:19 -04:00
scottjehl
e8cee23744 major simplification of jqmData method, while adding new methods for jqmRemoveData, and also their $-namepaced utility methods, including $.jqmHasData. Commit includes 20 new unit tests included to test compatibility with jQuery core's data methods, and docs are updated as well. 2011-03-26 14:14:02 -04:00
scottjehl
7503f62a10 changed our two new custom data helper names to jqmData() and :jqmData() 2011-03-25 17:50:40 -04:00
jeresig
29c0471cca Make sure that the :jqdata() selector also works for filtered items. 2011-03-22 14:35:11 -04:00
John Bender
018609fa32 removed mass of duplication from core of functionality that was moved to init, fixed init tests 2011-03-22 00:26:24 -07:00
Kin Blas
882c27c03f Tweaked the jqdata selector regexp so that it wasn't so greedy. This will allow for multiple jqdata() and other pseudo selectors that use parens withinthe same selector string. 2011-03-18 08:42:24 -07:00
John Bender
63e8f6bfcb resolved merge conflicts and fixed 2 tests 2011-03-15 23:57:17 -07:00
John Resig
42c1271963 Adding in a new :jqdata() selector for filtering data- attributes within the proper jQuery Mobile namespace. 2011-03-15 15:08:02 -04:00
scottjehl
f69c98caf0 gradeA adjusted to IE7 and up rather than 6 and up ( this still includes Windows Phone 7). Unit test adjusted to match 2011-03-14 00:20:26 -04:00
scottjehl
d3a170db09 moved the IE test to support.js, added a workaround to the listview refresh method to prevent default on mousedown, which makes the tap highlight color look right in Windows Phone 7. Without this workaround, it still works fine, but the entire listview is highlighted when an LI is clicked. 2011-03-14 00:20:25 -04:00
scottjehl
8cb9923055 gradeA test was missed in the update. back in now, with IE 6+ enabled. 2011-03-14 00:20:24 -04:00
scottjehl
aa31e01d63 updated to latest core js, with deprecation note 2011-03-14 00:20:24 -04:00
scottjehl
5b1f586cdb added meta back. This is now deprecated for A4 in favor of putting the viewport meta directly in the markup. 2011-03-14 00:20:24 -04:00
scottjehl
dcbe844f5c brought back meta definition. This is now deprecated in A4 2011-03-14 00:20:23 -04:00
scottjehl
dfe7cf6593 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
1370d5a48e add IE version check to gradeA qualifier. 2011-03-14 00:20:22 -04:00
scottjehl
ea60207c1b changed custom data method to $.fn.mobileData() and updated plugins that use it. 2011-03-09 23:27:21 -05:00
scottjehl
19f5fd7cae changed the default namespace to "" and updated the docs/demos as such 2011-03-09 22:36:14 -05:00
scottjehl
77ac0f009a a few more non-namespaced attrs to bring over 2011-03-09 21:03:40 -05:00
scottjehl
bc0f1e02f3 better var names 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
cee4c617ba first pass at extending data() to either return a) if no arguments, return non-namespaced versions of any namespaced properties in the data hash, or b) if getting a data property, try getting the namespaced version if the first is undefined. If it's defined, return that instead 2011-03-09 20:49:43 -05:00
scottjehl
ce34ece257 namespaced data- attrs to $.mobile.ns (defaults to "jq-") throughout the JS 2011-03-09 20:47:44 -05:00
John Bender
a4a8d859ca small refactor of core to unify call to extend 2011-03-04 22:25:33 -08:00
John Bender
608b39ed39 moved loading message after init to account for customization 2011-03-03 18:06:07 -08:00
John Bender
a64a44504b moved page additions after gradeA check in init and removed from core 2011-02-20 18:07:17 -08:00
John Bender
b21531a0ac left gradeA in core, added todo for page element addition refactor 2011-02-20 18:07:17 -08:00
John Bender
891f9b1b07 moved initialization down in the build order, still requires some small refactoring 2011-02-20 18:07:17 -08:00
John Bender
a025c0bffc backed out autoInitialize moving to feature request backlog 2011-02-06 21:18:51 -08:00
scottjehl
67987925b4 property should not be defined in $.mobile. 2011-02-02 20:02:04 -05:00
John Bender
107fc25838 minor simplification to the on ready init 2011-02-01 22:04:05 -08:00
John Bender
0a7bdfd632 whitespace in mobile core 2011-02-01 22:04:05 -08:00
unknown
9caaa9cfde Added ability to control if $.mobile will automatically load first page/pages on dom ready using $.mobile.autoInitialize. 2011-02-01 22:04:05 -08: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
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
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
e5fd56985c added global native select configuration, docs to follow. Also corrected selector error when reloading a lib in tests 2011-01-27 23:20:57 -08:00
John Bender
1afb3a08f0 whitespace corrections in core 2011-01-27 22:53:17 -08:00
Kin Blas
1dad50e536 Fix for the header/footer positioning problem, mentioned in issue 58, that is caused by the browser url/nav bar scrolling offscreen due to the silentScroll() call triggered when the document is first loaded.
- Modified silentScroll() to trigger a "silentscroll" event. This was necessary because programatically scrolling the window does not generate "scroll" events.

- Got rid of the hideAfterDelay() function that was not used.

- Added startShowTimer() and clearShowTimer() functions.

- Added event handlers for "resize" and "silentscroll" events. This causes headers/footers to be positioned properly as "scroll" and "orientationchange" events cause the visual viewport to resize.

Issues this fix causes:

- On some Android platforms, clicking in textfields/textareas trigger a "resize" event. This causes the footer to show up in the minimized visual viewport, right above the keyboard.
2011-01-24 07:11:19 -08:00
scottjehl
2e6a396278 added ajaxEnabled option. ajaxLinksEnabled and ajaxFormsEnabled are deprecated and will be removed by 1.0. Fixes #851 2011-01-23 19:03:35 -05:00
scottjehl
48b69b7a71 loading message opens above offset of active button, when possible. This makes it visible on devices that don't support scrollTop (webOS, etc) 2011-01-20 16:28:23 -05:00
John Bender
dcf9a19c31 whitespace issues in mobile core 2011-01-19 21:43:36 -08:00
Pavel Karoukin
5b4c23b67d add data-url to dialog 'pages' as well 2011-01-14 23:44:25 +08:00