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
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
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
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
John Bender
591593dd49
misplaced semicolon
2011-01-31 00:13:01 -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
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
scottjehl
29fbc9c3c5
removed the Position plugin and modified selectmenu to position its menu without it. Removes off about 3-4kb after minify.
2011-01-29 07:15:40 -08:00
scottjehl
58cb69788c
bound slider drag event handling to touch and mouse events, which allows us to support Opera Mobile and others. Fixes #852
2011-01-28 15:47:03 -08:00
scottjehl
b4c8e2f98e
moved search input clear buttons over to "tap" event
2011-01-28 15:20:56 -08:00
scottjehl
1b72203096
checks and radios no longer check when a scroll starts on top of them. Fixes #893
2011-01-28 14:39:58 -08:00
scottjehl
b10c5c04c2
don't destroy dialogs on close. Now same-page dialogs can be reopened after close, and selects don't need to unbind dialog change events to override the destroy.
2011-01-28 14:30:24 -08: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
John Bender
b1d356bfd7
Merge branch 'nativeselectmenu'
2011-01-27 09:50:40 -08:00
Jesse Streb
d3077b491c
[455] Am now setting the min-height of a page so that the address bar can always be hidden on a silent scroll. This helps our transitions feel smoother as the page does not jump down if the page is not taller then 100% of the window. On orientation change we also update this value.
2011-01-27 12:28:04 -05:00
Jesse Streb
378fb51225
[ #455 ] For the transitions we now have overflow: hidden in order to limit the flickering. We always scroll to the top before we start our transitions in order to make it scroll. The CSS changed to have overflow: hidden during transitions and have a height that is larger enough to keep the address bar hidden.
2011-01-27 12:28:04 -05:00
scottjehl
e2c66fad49
Merge remote branch 'origin/master'
2011-01-26 22:15:10 -08:00
John Bender
d94e25acd6
merge from origin selectmenu fixes
2011-01-26 21:35:00 -08:00
John Bender
b81248f238
fixed android select menu failure with a delay. I'm doubtful that this is the best solution to the problem but the cause was the click being passed through to the screen or the select menu itself a split second after opening. Open to alternatives. Fixes #873
2011-01-26 21:20:40 -08:00
scottjehl
9a492d06fd
allow form data to be passed to $.mobile.changePage as a query string or object.
2011-01-26 22:04:36 -05:00
scottjehl
61bee4e276
fixed issue with select menus not opening again after you close them.
2011-01-26 21:02:08 -05:00
scottjehl
d1976fa265
removed click handler on back button - used data-rel='back' instead.
2011-01-26 18:57:14 -05:00
scottjehl
fa2b1903de
only add a back button when there's a history entry to return to.
2011-01-26 17:56:20 -05:00
Kin Blas
63a82967fa
Temporary workaround for Issue 785 - jQM text input forces use of iOS auto-correction.
...
- Added code to enhanceControls() that sets the autocorrect and autocomplete attributes on all inputs of type="text" to "off". This basically disables the use of autocorrection on iOS.
- Modified the code in enhanceControls() to cache the form controls query to reduce the number of times we search for controls in the current page.
2011-01-26 14:31:47 -08:00
scottjehl
700ca984bb
finished up some navigation changes. Also added and documented a data-rel="back" attribute, which can be applied to links to enhance them to mimica the browser's back button (good for closing dialogs). In these changes, dialogs now create a history hash entry, and the back button works better for closing dialogs. Also, nested list deep-linking is restored after a recent regression. Tests in Navigation and Listview are passing. Fixes #885 . Fixes #866 .
2011-01-26 14:38:17 -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
John Bender
244e46b8ed
data-native attribute check for native select menus Fixes #847
2011-01-25 23:12:20 -08:00
John Bender
aa234961cc
whitespace correction on rebase fix
2011-01-25 22:50:55 -08:00
scottjehl
0cdf9df11c
added option for useNativeMenu. Should be updated so, when set, the custom menu markup is never created.
2011-01-25 22:43:53 -08:00
scottjehl
9ed13f86c8
hashchange event handler should still load the first url, even if Ajax is disabled. Fixes #879
2011-01-25 22:39:29 -05:00
John Bender
bc473f48a7
comments for added clarity on bindings
2011-01-24 23:55:52 -08:00
John Bender
0cdd401f3a
removed commented code from refactor
2011-01-24 23:54:22 -08:00
John Bender
23807769ac
refactor off slider to move value retrieval to closure for _create method
2011-01-24 23:53:17 -08:00
John Bender
442e4b19b0
updated slider refresh function with an extra param for preventing validation on its input Fixes #468
2011-01-24 23:38:50 -08:00
scottjehl
3df24fab6d
fixed a regression in safari where images wouldn't load properly because base was being set after html was appended.
2011-01-25 00:29:19 -05:00
scottjehl
5d5336d8b0
fixed firefox regression. check if base is set/supported before setting.
2011-01-24 23:56:53 -05:00
scottjehl
0ba9acfc33
added support for URL updating via a preset data-url on the page div when it is sent from the server.
...
If data-url is set on a page div when it returns from the server, it's value will be used to replace the url in the hash, and as the base url for future requests if it adds additional segments (such as a trailing slash). This will enable developers to work around the limitation of directory links requiring a trailing slash, and will also allow developers to specify a new url after a redirect occurs (such as after a login). Fixes #867
2011-01-24 19:35:45 -05:00
scottjehl
a5b8e42fc1
updated jQuery to 1.5rc1. This update includes Nokia support in jQuery core, which is getting closer in JQM itself.
2011-01-24 17:56:32 -05:00
scottjehl
80b0d9ef4b
Merge branch 'master' of github.com:jquery/jquery-mobile
2011-01-24 13:05:04 -05:00
scottjehl
4a9b374eea
make sure change events fire whenever custom checks/radios change.
2011-01-24 13:04:41 -05: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
977e075ece
improved tap event and added a quick event logger page so we can get these neglected events in order.
2011-01-23 19:34:17 -05: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
2ebf659fbd
made sure linking to the same page from within a dialog closes the dialog.
2011-01-23 18:26:48 -05:00
scottjehl
be8eb3d0c6
deprecated data-back attribute on links in favor of data-direction="reverse". Updated docs and relevant demos.
2011-01-23 18:12:46 -05:00
scottjehl
9b57c46349
Refactored urlStack and updated dialog and page plugins to match. jQuery Mobile's internal history now attempts to follow the history menu when urls change from hashchange, even for changes that go multiple steps forward or back. The internal history stack is now pruned based on whether a user goes back and then changes direction, whereas before a back-button click would result in a pop off the history. Instead we now maintain an active index number in the history stack, which allows us to maintain references to transitions that are saved on pages reached through clicking the forward button as well. This fixes #636 .
...
In the process, some other small changes should be noted:
urlStack is now urlHistory, a hash of methods and properties used for history stack management (stack, activeIndex, getActive, getPrev, getNext, addNew, clearForward, and listening Enabled). All these are documented inline and exposed on $.mobile.urlHistory (I'm not sure these will be publicly documented, but just exposed internally for plugins for now).
$.changePage has two argument changes: the "back" argument is now called "reverse"; this results in no change from an end-user standpoint, but reflects the fact that it only reverses the direction of a transition without affecting the internal history stack, and second, a new argument at the end defines whether changePage was called from a hashChange which makes that url open to history menu guessing.
2011-01-23 17:33:36 -05:00
John Bender
b671753039
moved page above core in the makefile, build xml, and manifest under js. Fixes #619
2011-01-22 22:31:16 -08:00
scottjehl
9e4b0a484c
Overhauled path object and exposed it and the base object via $.mobile. Form and Link handlers now use the path methods internally. Unit tests adjusted, but more are needed to fully cover the path and base propeties and methods. Fixes #566 .
2011-01-22 17:42:07 -05:00
scottjehl
6fb50fd289
use inArray instead of indexOf. Fixes #828
2011-01-22 14:04:04 -05:00
scottjehl
fbb2fc2c60
lengthened timer for Android, and added a check to let through the same event type for double-taps.
2011-01-21 18:29:28 -05:00
scottjehl
aa0a61c407
followup on previous commit. made sure devices with both touch and mouse events work with either input type. Also fixed regression with radio inputs.
2011-01-21 18:13:02 -05:00
scottjehl
38c1c24e5d
moved check/uncheck event on label to touchend/mouseup. Fixes #753
2011-01-21 17:45:22 -05:00
scottjehl
a1cb31a2c7
navbar removes active state but doesn't apply new one. Now it does. Useful in js-generated links. Fixes #669
2011-01-21 16:20:33 -05:00
scottjehl
37f9680c0f
only the first image should be an icon/thumb. Fixes #699
2011-01-21 15:33:40 -05:00
John Bender
e5d2bf1b66
added target check to $.mobile.isExternalLink
2011-01-20 23:05:37 -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
scottjehl
52f86f2f9a
make sure first textnode of li is used in listview title, regardless of newline chars. Test included. Fixes #715
2011-01-20 17:48:44 -05:00
scottjehl
bfa6f6a3af
Merge remote branch 'origin/master'
2011-01-20 16:28:28 -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
Kin Blas
e4042266fb
Fix for issue 841 - Persistent footers persist even when going to other pages that don't have footers or don't have footers with the same data-id.
...
This was a regression I caused with my previous checkin. The fix is to simply null out stickyFooter in the pagebeforeshow callback.
2011-01-20 12:51:28 -08:00
Kin Blas
161f5e6ae3
Removed jquery.js from js/index.php and updated all html doc/experiments/test files that incuded "js/" so that they also include jquery.js manually.
...
This makes our include model match the include model on the CDN, and allows devs to make use of mobileinit for debugging some of the samples since that must be set up after jquery.js, but before jquery-mobile.
2011-01-20 11:26:12 -08:00
John Bender
8a5060de13
fixed issue with dialog click handler breaking transitions on external links Fixes #642
2011-01-19 23:48:30 -08:00
John Bender
dcf9a19c31
whitespace issues in mobile core
2011-01-19 21:43:36 -08:00
scottjehl
f85e4c916b
small workaround to get media query function to work on Nokia
2011-01-19 16:35:15 -05:00
Kin Blas
02c9264f0d
Fix for issue 613 - Jquery Mobile ignores original 'base' tag defined in HTML
...
- Fixed baseTagTest() in jquery.mobile.support.js, so that it uses any pre-existing base tag for testing. This fixes the bug on Webkit (Safari) where the relative paths for links were being resolved/expressed with the document path instead of the original base path.
- Modified the base code in jquery.mobile.navigation.js so that it uses the initial path of a pre-existing base tag, instead of always using the document path. This means that a document with a URL such as:
http://foo.com/a/b/c#docs/pages/index.html
That uses a base tag like:
<base href="http://foo.com/bar/ ">
Will resolve properly:
http://foo.com/bar/docs/pages/index.html
so the mobile page gets loaded properly.
- Reduced the path.get() function down to a couple of regexp replace() calls.
2011-01-18 09:18:22 -08:00
John Bender
b9bfa41846
poorly written comment
2011-01-15 23:36:59 -08:00
John Bender
f850311935
force previously created dialog for long menus. Fixes #807
2011-01-15 22:47:44 -08:00
John Bender
d4f4d474d1
whitespace cleanup for mobile forms select
2011-01-15 22:44:00 -08:00
Kin Blas
fde3aaaad5
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-01-14 13:40:04 -08:00
Kin Blas
cd344f0440
Fix for Issue 811 - All resolution breakpoint classes added to <html> element, throws off label and form element flow on narrow screens.
...
- We were firing off our fake orientationchange event before the viewport meta tag is injected. This causes us to get the default document width for the device which is much wider than the actual device-width. We now fire off the event after the dom ready event fires.
2011-01-14 13:37:47 -08:00
maggiewachs
b6ec29a7e5
Fixed bug 676 where the switch toggle (slider) wasn't updating on select change:
...
https://github.com/jquery/jquery-mobile/issues/labels/5%20-%20Critical#issue/676
2011-01-14 16:06:18 -05:00
scottjehl
7cf5aea8e3
fixed up those busted select menu headers. Fixes #810
2011-01-14 15:49:21 -05:00
scottjehl
3b92410ff3
some additional changes to make scrolling from a select button work ok.
2011-01-14 15:16:03 -05:00
scottjehl
288fe45ff1
added option for useNativeMenu. Should be updated so, when set, the custom menu markup is never created.
2011-01-14 13:02:24 -05:00
Pavel Karoukin
5b4c23b67d
add data-url to dialog 'pages' as well
2011-01-14 23:44:25 +08:00
Pavel Karoukin
794adfeca0
Click on form in dialog prevents exit from dialog
2011-01-14 23:44:24 +08:00
scottjehl
87c7b57da9
allow scroll to work when touch start begins on a select button. Fixes #804
2011-01-14 10:35:26 -05:00
Jonathan Hinkle
0413542753
rename selectmenu's exposed "options" to "optionElems" to avoid conflict with existing variable containing configuration options
2011-01-14 22:48:51 +08:00
ehynds
9e6a3df6b1
make sure the options cache is updated after a refresh, and that the click handler reads from this cache.
2011-01-12 22:01:50 +08:00
Jesse Streb
924c2c3e9b
updated select to no longer wrap the input element as it is already jQuery object. Thanks ehynds.
2011-01-12 08:01:37 +08:00
Jesse Streb
5b238ea1ce
https://github.com/jquery/jquery-mobile/issues#issue/578 Updated to use the selector that Scott suggested in order to make checkboxes not dissappear. One issue I noticed is that the page still transitions to the 'new' page even though it is really the same page. I have a fix for this that will post in a separate drop.
2011-01-12 08:01:36 +08:00
D. Elmo Peele
1a21b0581c
Avoid triggering a 'tap' event if the event target on touchStop differs from the original touchStart target.
2011-01-12 07:47:17 +08:00
Kin Blas
5617d0c8d3
Merge branch 'delay_duplicateCachedPage' of https://github.com/medovob/jquery-mobile into pull662
...
Had to fix merge conflicts in:
js/jquery.mobile.navigation.js
2011-01-11 14:12:07 -08:00
ehynds
95819c8c60
same fix in a few other places
2011-01-12 05:30:56 +08:00
ehynds
b71cc32d78
"this" in this context is already a jquery object
2011-01-12 05:30:56 +08:00
scottjehl
44d6064fb6
Merge branch 'no_enhance_for_hidden' of https://github.com/hynkle/jquery-mobile into hynkle-no_enhance_for_hidden
2011-01-11 13:42:30 -05:00
Kin Blas
8a70cdb3de
Initial patch from pull 672 had incorrect check for backbtn data value. Changed it from $this.data("backbtn") === false to $this.data("backbtn") !== false to match the original logic that was in place prior to the patch.
...
Original patch missed a nobackbtn reference in jquery.mobile.forms.select.js.
2011-01-11 09:34:50 -08:00
Kin Blas
8050fb0d01
Merge branch 'master' of https://github.com/walkingeyerobot/jquery-mobile into pull672
2011-01-11 09:04:32 -08:00
John Bender
96d941ebe9
added the ability to disable ajax forms with data-ajax=false, attribute up for debate, Fixes #519
2011-01-08 23:47:07 -08:00
Jonathan Hinkle
6b799dad71
added 'hidden' to the types of inputs not to be enhanced by textinput
2011-01-07 12:33:59 -05:00
Kin Blas
c910f4b01f
Fix for issues:
...
470 - Multiple Footers when using data-position=fixed and data-id=[someid]
773 - The fixHeaderFooter pagebeforeshow live function is not triggered for the initial page shown
- Removed the findStickyFooter() function.
- Reworked the logic in the pagebeforeshow live function. We now add a ui-sticky-footer class to the sticky footer element. This will guarantee that we find the sticky footer if it already exists. We may at some point want to consider the use of ids on the sticky footers so that we don't have to crawl the entire document.
- Moved the live pagebeforeshow and pageshow calls outside of the DOMReady function so that they get registered as soon as the plugin is loaded. This guarantees that they will be triggered when the core plugin's DOMReady function fires.
- This fix makes issue/pull-request 765 obsolete.
2011-01-07 01:07:22 -08:00
maggiewachs
926982b4f0
Fixed bug 595, where form elements were not properly inheriting the theme. Form controls need to be enhanced after the page containers so they'll pick up on the containers' theme classes.
2011-01-05 11:55:41 -05:00
John Bender
3a9652c9cc
slider switch keyboard access tests Fixes #632
2010-12-26 23:09:11 -08:00
John Bender
06b83ad67a
slider switch now keyboard enabled
2010-12-26 17:45:25 -08:00
scottjehl
53392bc7ca
Merge branch 'issue_723' of https://github.com/ehynds/jquery-mobile into ehynds-issue_723
2010-12-23 14:34:17 -05:00
ehynds
edfafe0c01
if the close icon in a full-page select is clicked on, fire the selectmenu close handler instead of the dialog close handler
2010-12-23 13:19:34 -05:00
scottjehl
e9b076bcc0
Merge branch 'master' of https://github.com/louy/jquery-mobile into louy-master
2010-12-23 09:20:55 -05:00
John Bender
b2d58c1f30
slider keypress tests, comments, and style addition to navigation test page
2010-12-22 23:18:14 -08:00
John Bender
39729becd6
standard keyboard interaction working with slider, tests to come
2010-12-22 22:40:54 -08:00
John Bender
8ec3ae594d
added keyCodes, Home and End working for range slider
2010-12-22 16:30:55 -08:00
Louy Alakkad
4dcb65fc7a
fixing spaces
2010-12-22 07:53:07 -08:00
Louy Alakkad
59e8ee3137
Matching the jQuery code style guidelines.
2010-12-22 07:52:08 -08:00
scottjehl
fd821b7440
Merge branch 'select_multi' of https://github.com/ehynds/jquery-mobile into ehynds-select_multi
2010-12-22 10:05:40 -05:00
louy
ba99290480
Merge branch 'master' of git://github.com/jquery/jquery-mobile
2010-12-18 16:06:55 +02:00
louy
d435979daf
Allow developer to apply themes on checkboxes/radio-buttons.
2010-12-18 15:20:15 +02:00
John Bender
b8babd1003
removed console log and added test for default transition
2010-12-16 19:12:58 -08:00
John Bender
7ffec259c5
added tests for explicit transition on back
2010-12-16 18:21:46 -08:00
John Bender
67aed1320b
prefer explicit transition even when the url is popped of the stack Fixes #627
2010-12-16 18:20:17 -08:00
jzaefferer
e70c17d625
Extend nested listviews to accept more then just the title in parent list item. Currently requires predefined anchor to be present, based on discussion in ticket. Extended lists-nested.html to test both variants. Fixes #253 - only text nodes allowed in nested listview
2010-12-15 15:54:13 +01:00
Mitch Foley
ad757718c4
actually reversing backbtn logic this time.
2010-12-13 11:11:21 -05:00
Mitch Foley
df3bc91f80
renaming nobackbtn to backbtn.
2010-12-13 10:54:26 -05:00
John Bender
95ef08b269
perspective class only added on flip page transition or any transition added to the perspectiveTransitions local var in the transitionPages function Fixes #568
2010-12-13 02:21:40 -08:00
scottjehl
9420083a7b
quick update to set the base.href back to the starting path, just in case, as some browsers may retain the base href after the element is removed from the DOM. Explained better here: b2add677f0
2010-12-11 13:50:07 -05:00
Kin Blas
3062199ac6
Some tweaks to kptdobe's patch from:
...
https://github.com/jquery/jquery-mobile/pull/649
- Changed hideOnTouchEnabed to touchToggleEnabled.
- Fixed problem that would allow the toolbars to show on touchstop, if the starting state was "inline" to begin with.
- Moved the touchToggleEnabled checks in touchstart/touchstop so that they wrap the entire code in the function. We don't want to do any work if we don't need to.
- Removed the forced hide() call in touchstart.
Added the missing fadeout animation reference inthe fade.in transition rule.
2010-12-10 10:17:16 -08:00
Richard Stutfield
0a87b59a04
Navigation: delay removal of duplicateCachedPage
2010-12-10 12:27:14 +00:00
kptdobe
9c3762978e
Allow to disable headers hide on touch behavior
2010-12-09 15:02:45 +01:00
John Bender
553b58567f
added protection for nested links to ui-bar selector with tests
2010-12-09 00:16:48 -08:00
John Bender
970f46c5e0
header and footer links will now remain unstyled, Fixes #524
2010-12-08 22:16:45 -08:00
ehynds
c982b93794
fixed a bug in single selects where clicking on a selected option would un-select it. this logic should only apply to multiple selects.
2010-12-08 15:45:23 -05:00
Kin Blas
4882c068b0
Modified loadComplete() so that it always fires off the "show" event. The idea here is that calling preventDefault() on a "hide" event shouldn't prevent the "show" event from being dispatched. Calling preventDefault() on the "show" event still prevents the "to" page from becoming the active page.
...
Removed redundant target delcaration in the <a> live click callback.
2010-12-08 12:40:21 -08:00
ehynds
1d2ef4f606
removed console.log statement
2010-12-08 09:43:24 -05:00
ehynds
43a6a3bb1b
refactored header create logic to be consistent with the rest of the widget; fixed bug when using optgroups within a multiple select
2010-12-08 09:41:00 -05:00
ehynds
94ac0a88be
fix placeholder logic
2010-12-07 18:05:26 -05:00
ehynds
9e30e54159
removed extraneous comment
2010-12-07 15:49:54 -05:00
ehynds
8eb553f884
multiple select functionality
2010-12-07 15:45:20 -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
91a5b8c098
Changed the way submit buttons work. Now, form input/button elements are appended to a div-based "button", invisibly filling its width and height. The user now interacts directly with the native control, rather than having to trigger a click from another anchor (which formerly prevented some native submit event handling from working).
...
A workaround is still included to ensure the input's name/value is submitted along with the form when it's not a type=reset, as this is necessary for the button data to appear in the serialized form data.
2010-12-06 11:40:28 -05:00
scottjehl
2931fffb91
blur the active/focused element on changepage sooner. Thx @goulvench
2010-12-04 14:46:41 -05:00
scottjehl
74ebc360ca
make sure hashchange event never causes additional hash changes to occur when responding with a page change
2010-12-04 13:13:55 -05:00
Jesse Streb
b725ff8f6a
https://github.com/jquery/jquery-mobile/issues#issue/493 If changePage is called with to parameter that matches the current page we simply return out of the function
2010-12-04 13:13:55 -05:00
scottjehl
b01478a5e7
make sure forms can submit via ajax AND pass the clicked button's name/value in the serialized data. Fixes #605
2010-12-03 13:08:08 -05:00
scottjehl
6dce87a2ac
hide placeholder options in selectmenu overlays. Fixes #607
2010-12-03 11:32:48 -05:00
ehynds
68150b5bec
adding optgroup support. Fixes #567
2010-12-03 10:57:21 -05:00
ehynds
8062bf0a80
finish merge of select_event_bubbling or whatever i called that branch
2010-12-03 10:47:25 -05:00
ehynds
e2eb9e9298
add disabled option support. fixes #350
2010-12-03 22:30:08 +08:00
ehynds
12f011b7cc
swap return false for event.preventDefault
2010-12-03 07:40:58 -05:00
scottjehl
9423bc199d
fixed issue with listview corner rounding when listviews have only a couple items.
2010-12-01 16:35:17 -05:00
scottjehl
ce5ea07780
don't set hash if back is true. Fixes #582
2010-12-01 12:41:27 -05:00
scottjehl
54568271d9
pageshow and pagehide now fire after the location hash is updated. Fixes #583
2010-12-01 09:52:07 -05:00
scottjehl
17f0340a0a
improved keepNative option so that it's additive on top of data-role=none and data-role=nojs.
2010-12-01 09:52:07 -05:00
scottjehl
efe4c38ad4
added the keepNative option to page plugin, which defaults to this selector "[data-role='none'], .ui-nojs". Add the attribute data-role="none" to any form control or anchor and it will not be auto-enhanced. Thx @pharaoh for the syntax suggestion. Fixes #544 , Fixes #528 , Fixes #529
2010-11-30 18:18:53 -05:00
scottjehl
419787affe
make sure submit button name/value is submitted with form values. Fixes #551
2010-11-29 10:09:26 -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
3cb0e3c2d0
fixed typo in propExists. thx @johnbender
2010-11-22 15:48:14 -05:00
scottjehl
a0596434bc
moved the ID creation string escape function from core to listview. No other plugins use it.
2010-11-19 23:21:16 -05:00
scottjehl
ba5fea7f1e
removed theme option from fieldcontain. ish didn't make no sense
2010-11-19 22:52:05 -05:00
scottjehl
93179f9a3d
updated comment about license to match other jQuery projects - MIT "or" GPL
2010-11-19 22:47:47 -05:00
scottjehl
6711e11e97
made sure collapsible doesn't cause the address bar to show up on ios when clicked. Fixes #500
2010-11-19 21:32:17 -05:00
scottjehl
2ed21499d1
made sure address bar doesn't appear when opening select menu
2010-11-19 21:28:38 -05:00
scottjehl
d1c839613d
made sure corners are removed on list items that used to be first or last when new items are appended. Fixes #400
2010-11-19 21:07:34 -05:00
scottjehl
a731e48e68
made sure select button gets active button class while open
2010-11-19 19:19:51 -05:00
scottjehl
76f5c26624
cleaned up css styles - ui-selectmenu instead of ui-listview
2010-11-19 19:15:48 -05:00
scottjehl
b2e306c667
removed theme coloring for selectmenu screen when in overlay mode.
2010-11-19 17:32:09 -05:00
scottjehl
b56939faf7
updated selectmenu to use position plugin for overlay version
2010-11-19 17:31:20 -05:00
scottjehl
23ea598b83
added jquery ui position plugin
2010-11-19 17:30:22 -05:00
John Bender
d0cca83be8
tests for default resolution break points, some missing semicolons, and element reference in each loop
2010-11-19 01:20:55 -08:00
scottjehl
ea8545928e
shifted the order a little
2010-11-18 22:52:35 -05:00
scottjehl
9ff89b7115
renamed jquery.mobile.js jquery.mobile.core.js. updated build files, etc to match
2010-11-18 22:50:33 -05:00
scottjehl
909a0d0f08
removed transitions property from the configuration and updated docs to match.
2010-11-18 22:18:20 -05:00
scottjehl
e7269f4df2
moved orientationchange event trigger over to media js file. Cleaned up event bindings where orientation and breakpoint classes are applied.
2010-11-17 11:55:15 -05:00
scottjehl
82c48b2311
sorted breakpoints ascending after addition
2010-11-17 11:55:15 -05:00
scottjehl
2ade27bdcf
removed old manifest files - index.php is now used in their place.
2010-11-17 11:55:15 -05:00
scottjehl
28a10ec74d
Moved all of the media query and responsive design related scripting to jquery.mobile.media.js. This plugin can run independent of mobile core, with the exception that it does bind to orientationchange, which is defined in the events js. Fixes #388
2010-11-17 11:55:15 -05:00
scottjehl
5e90786374
added enable and disable methods to form buttons
2010-11-17 10:27:35 -05:00
Yuki KODAMA
2dea6cd721
implemented 'refresh' method for slider widget
2010-11-17 19:34:46 +09:00
Yuki KODAMA
d1e37647b8
added 'enable' and 'disable' methods to slider widget
2010-11-17 19:34:08 +09:00
scottjehl
2b226d05ce
make sure pop'd page is defined before using.
2010-11-16 12:18:42 -05:00
Richard Stutfield
6603c84ef5
remove empty line
2010-11-16 22:56:49 +08:00
Richard Stutfield
d7a9d832db
Fix form submit within a dialog.
2010-11-16 22:56:48 +08:00
Richard Stutfield
791f7aa61e
Dialog: fixed links not working in dialogs. Fixed #448 - Dialog: clicking link in dialog closes dialog and doesn't do anything else
2010-11-16 22:56:48 +08:00
scottjehl
14b4c9a167
moved $.media function over to $.mobile object
2010-11-11 21:45:17 -05:00
scottjehl
e89ebc126e
Input types can now degrade to alternate types, instead of text. First such example is type=range degrades to type=number. Fixes issue #415 , Fixes #404
2010-11-11 21:43:01 -05:00
John Resig
573db6ab28
Just compare the nodes directly to each other.
2010-11-11 19:38:20 -05:00
John Resig
67174b8966
Updating jQuery to 1.4.4.
2010-11-11 19:21:03 -05:00
Kin Blas
1b12c54bcf
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2010-11-11 16:16:03 -08:00
Kin Blas
a77ca291e6
Fixed 59 - Fixed footer is anchored to the end of the page content instead of the view port.
...
- If content is less than the view port height, the footer is always anchored at the bottom of the view port.
- If the content is greater in height than the view port, then in inline mode itrests in flow, and in "fixed" mode it snaps to the bottom of the view port.
2010-11-11 16:08:45 -08:00
scottjehl
7a37d2507d
fixed error in selectmenu close function
2010-11-11 19:01:02 -05:00
scottjehl
d3a0d33791
fixed up grids and navbar again - this time to automate the column count to number of children, or 'a' when greater than 5. data-grid attribute can be set to any grid letter to trump the automated counting.
2010-11-11 17:33:07 -05:00
scottjehl
78f342b5e0
fixed up the navbar and grid plugin logic. now supports up to 5 cols
2010-11-11 17:17:45 -05:00
scottjehl
5aa980fdb4
fixed a bug with icon positioning
2010-11-11 17:17:45 -05:00
John Resig
c9a34f1da2
Add versioning information to the headers of the CSS and JS files.
2010-11-11 17:02:45 -05:00
Kin Blas
dfa1a689a4
Fixed 432 - Fullscreen positioning don't work iPhone/Android/Desktop
...
- $.mobile.activePage isn't being set till *AFTER* the "pageshow" notification, so pass in the page from our pageshow callback into the show() method.
- Also added missing getOffsetTop() call that I missed in my previous checkin.
2010-11-11 13:39:54 -08:00
scottjehl
6502377d57
just comments
2010-11-11 15:08:57 -05:00
scottjehl
b7b553da84
missed a few files in that last commit.
2010-11-11 15:08:48 -05:00
scottjehl
055bf14e3f
moved changePage, pageLoading, and silentScroll methods to $.mobile obj.
2010-11-11 15:03:40 -05:00
scottjehl
30c8a4cd5e
removed $.mobile.headExtras - useless
2010-11-11 13:38:05 -05:00
scottjehl
d498e20aca
typo on the data-iconpos check
2010-11-11 13:33:19 -05:00
scottjehl
25327445e0
null rather than undefined. woops
2010-11-11 13:33:19 -05:00
Kin Blas
1261fbc828
Bring iPad iOS 3.2.1 up to par with other platforms in terms of footer positioning.
2010-11-11 09:27:11 -08:00
scottjehl
f3c9716b52
extend rather than define
2010-11-11 11:28:02 -05:00
scottjehl
a24196e550
dolla dolla bills y'all.
...
Fixes #126 , Fixes #346
2010-11-11 10:50:28 -05:00
scottjehl
aca0062ac0
workaround that seems to get selects returning to their proper place after making a selection. Needs tuning, but works for now.
2010-11-11 00:16:54 -05:00
scottjehl
dab3cbee34
changed to null for allowing override through data-theme
2010-11-10 23:58:38 -05:00
scottjehl
3a3953cd3f
made sure text inputs / areas worked with data-theme
2010-11-10 23:54:01 -05:00
scottjehl
d03f3c6a33
nested lists were getting way small. This made em stop.
2010-11-10 23:50:14 -05:00
scottjehl
e8bd78bd27
fixed theming so data-theme and data-track-theme attrs work
2010-11-10 23:40:09 -05:00
scottjehl
0702e26221
added menuPageTheme and overlayTheme options. overlayTheme defaults to "a" to use the black stroke.
2010-11-10 23:39:48 -05:00
scottjehl
563169def9
made sure data-icon attrs work on radio and checks. Fixes #423 , Fixes #424
2010-11-10 23:19:41 -05:00
scottjehl
bf3730550f
used null where appropriate in options
2010-11-10 23:08:22 -05:00
scottjehl
049afd4568
improved defaults and added a demo page showing that all button data attrs work on selects too
2010-11-10 23:04:10 -05:00
scottjehl
532c918a26
updated data attribute support
2010-11-10 22:54:57 -05:00
scottjehl
91f287b3c6
improved enable/disable implementation
2010-11-10 22:48:31 -05:00
scottjehl
679094621f
changed to button reference
2010-11-10 22:43:30 -05:00
scottjehl
691752afd2
added aria-disabled attrs
2010-11-10 22:42:50 -05:00
scottjehl
129b68741f
moved menu building logic into _rebuild method, which is called by refresh if the option length is different than the list length (or if a true argument is passed to refresh(). Also moved mousedown events to "click", which dramatically improves keyboard navigation.
2010-11-10 22:31:05 -05:00
scottjehl
5716b89097
refactored select menu a bit to use new open and close methods
2010-11-10 21:40:20 -05:00
scottjehl
cc8c05091d
changed transition to pop and make sure history change is false
2010-11-10 19:13:36 -05:00
scottjehl
b1bded6dde
changed hideBrowserChrome function to "silentScroll". Scrolls to a particular location while disabling scroll event listening.
...
Function accepts a Y positioning argument, or defaults to 0 if undefined.
Now page transitions cache their previous scroll position when leaving, and that position will be remembered when revisting that page.
This change also includes a fix for webOS to use this new feature and set the previous scroll to the location of the clicked selectmenu (so after using the select, it'll scroll back to its location, even though webOS doesn't support scrolltop)
Fixes #355
2010-11-10 19:06:57 -05:00
scottjehl
ad2c894a74
Target attrs trigger now open a new window. Fixes #427
2010-11-10 18:12:18 -05:00
scottjehl
12b1bb4fa2
only degrade input types that conflict with our replacement UI control. For now, just search and range. Fixes #415 , Fixes #420
2010-11-10 11:22:56 -05:00
scottjehl
3b5d12a207
shifting things around - mostly whitespace
2010-11-10 08:42:34 -05:00
scottjehl
6108ac90aa
fixed issues with slider handle positioning when min isn't 0. Fixes #397
2010-11-10 08:37:04 -05:00
scottjehl
356308e6b7
updates to comments
2010-11-09 19:55:52 -05:00
scottjehl
f80428b1c6
updated slider to use widget factory. Fixes #370
2010-11-09 19:49:04 -05:00
scottjehl
812e4c6978
fixed support for back button closing of dialogs, utilizing new $.mobile.updateHash method. Fixes #412
2010-11-09 19:10:54 -05:00
scottjehl
f03e59b0b3
exposed $.mobile.updateHash to allow plugins to update the hash without triggering hashchange (when closing a dialog from back button for instance)
2010-11-09 19:08:57 -05:00
scottjehl
44d78d4853
changed so that nonHistorySelectors looks for both data-rel and data-role, meaning hash changes won't trigger hashchange handlers when dialogs are open
2010-11-09 18:58:09 -05:00
Kin Blas
6e9f8af1b3
Rule #1 , when you change a file name, update its references. Fixing bustage from my previous checkin. Sorry 'bout that.
2010-11-09 14:09:04 -08:00
Kin Blas
d5a2ed2f10
Fixed 413 - Dev issue: our .htaccess file on the server is doing a 301 redirect which is causing css and image loading issues.
...
- Switch to using a combine.php library and index.php scripts within each directory for combining files. This works around the iOS webkit bug that prevents images from being displayed the next time the page is loaded.
2010-11-09 13:58:28 -08:00
scottjehl
58aa705391
updated comment
2010-11-09 16:08:15 -05:00
scottjehl
b02fc9f5e2
fixed filter listviews. wrong method name
2010-11-09 13:42:32 -05:00
D. Elmo Peele
97cc95dd0d
Allow 'none' as a transition value.
2010-11-09 23:17:16 +08:00
scottjehl
734fb4d9b5
fixed theming of dialog body so it'll get C if no theme specified. Fixes #398
2010-11-08 22:20:09 -05:00
scottjehl
ca25127469
added refresh method and theme inheritance to selectmenu widget. Fixes #371
2010-11-08 21:24:44 -05:00
scottjehl
3b8067151e
toggle ui-disabled class on disable/enable
2010-11-08 19:37:01 -05:00
scottjehl
f7a29fc201
converted selectmenu widget to the widget factory.
2010-11-08 19:33:45 -05:00
scottjehl
39c4b7b53b
prepend to head immediately, instead of in a chunk later on
2010-11-08 19:26:30 -05:00
scottjehl
4b058096cf
scoped to window
2010-11-08 19:23:27 -05:00
scottjehl
4b862bb114
triggered mobileinit event
2010-11-08 19:19:45 -05:00
scottjehl
0bb86f685f
removed extend
2010-11-08 19:17:28 -05:00
scottjehl
32af18d59b
added class ui-mobile-rendering to HTML el during initial build - will be used to prevent fouc
2010-11-07 15:20:35 -05:00
scottjehl
a405eda53f
moved up top
2010-11-07 15:18:28 -05:00
scottjehl
facef32f3a
changed to event.preventDefault
2010-11-07 15:17:59 -05:00
scottjehl
0972d65e04
prefixed var with $
2010-11-07 15:03:40 -05:00
scottjehl
02e6e5f26b
added $.mobile options: ajaxLinksEnabled, ajaxFormsEnabled. Both default to true.
2010-11-07 14:31:04 -05:00
scottjehl
1f7be112c8
make base options extendable via jQuery.mobile obj.
2010-11-06 16:04:59 -04:00
scottjehl
a1bef030dc
filled out some comment documentation
2010-11-06 15:29:00 -04:00
scottjehl
294daf4008
cleaned up <head> markup insertion logic and added to new options to $.mobile hash:
...
- metaViewportContent: "width=device-width, minimum-scale=1, maximum-scale=1",
- headExtras: undefined
If metaViewportContent is undefined, no viewport meta tag will be added to the dom.
headExtras is undefined by default, but allows for additional markup to be injected into the head element, such as meta tags used for enabling iOS local app features
Also, the <base> tag is defined as $base (undefined if support test is false), so setting its value no longer uses an ID selector to find it.
2010-11-06 15:14:10 -04:00
scottjehl
95ff242b13
updated cssTransitions support test - was formerly failing in webkit, as it was checking for type of object, rather than function. Needs to be filled out with other css transitions events, along with our CSS itself.
...
Also updated the animationComplete callback and got rid of a pointless timeout.
2010-11-06 14:36:15 -04:00
scottjehl
3f703ce1e8
fixed regression where first page visited was using a transition.
2010-11-06 14:24:29 -04:00
scottjehl
f4b785a9e7
added loadingMessage to $.mobile hash, for i18n. Defaults to "loading". If set to false, loading message whill not appear during ajax requests, but ui-loading class will still apply to html element.
2010-11-06 14:18:03 -04:00
scottjehl
c707f63918
cleaned up vars for transition and back conditions - removed a couple unnecessary vars. Added $.mobile.defaultTransition, which defaults to "slide" but can be set to other transition names, or false, to disable default transitions (note: this won't prevent data-transition attrs from working when manually applied).
2010-11-06 14:04:59 -04:00
scottjehl
b0d1063ee8
moved device support conditions to $.mobile hash's gradeA property. Not terribly sophisticated yet, but least for now this allows for configuring device support conditions, which has been requested by users.
2010-11-06 13:45:09 -04:00
scottjehl
cec0939a61
changed comment
2010-11-06 13:45:09 -04:00
scottjehl
c0b37ec97d
moved transitions to $.mobile hash, changed to array
2010-11-06 13:45:09 -04:00
scottjehl
72f3ca5765
move active page and button classes to the $.mobile hash
2010-11-06 13:45:09 -04:00
scottjehl
0c7860e7ed
removed startPageId setting - not necessary
2010-11-06 13:45:09 -04:00
scottjehl
cdbccc2802
moved page-plugin-related options to the page plugin (backBtnText, addBackBtn, degradeInputs).
2010-11-06 13:45:09 -04:00
scottjehl
f7ce344578
moved configurable selector for non-history tracked links to the $.mobile hash. Renamed to $.mobile.nonHistorySelectors
2010-11-06 13:45:09 -04:00
scottjehl
925ac2b57a
opened $.mobile to be extendable through $.mobileDefaults
2010-11-06 13:45:09 -04:00
Ben Alman
69e1e32c88
rewrote the orientationchange special event to allow both binding and unbinding of single or multiple event handlers as well as manual triggering. jQuery.event.special.orientationchange.orientation might not need to be public (which could save a few bytes).
2010-11-05 19:25:26 +00:00
scottjehl
0aa7fe6454
fixed listview splitbutton theming
2010-11-05 15:08:21 -04:00
scottjehl
c9bc4880a9
removed trailing comma.
2010-11-05 14:46:25 -04:00
scottjehl
a0815daf48
Fixed a few listview split button regressions. Fixes #387
2010-11-05 00:06:39 -04:00
D. Elmo Peele
95bac6f5a0
Fix tap event to ignore small movements.
2010-11-05 11:14:53 +08:00
scottjehl
aa6f842acc
changed selector from [href] to link[href] for elements that need url-remapping in Firefox. This ensures only stylesheets, but not anchors, are being remapped. Fixes #381
2010-11-04 23:11:35 -04:00
scottjehl
3392be05d3
Added close() method to dialogs: $('.ui-dialog').dialog('close') . Also, links clicked within a dialog will now close the dialog on their way to their destination, just as if the dialog were a normal page. For links that are meant only for closing the dialog, such as a "cancel" link, just link to the page that triggered the dialog to open. This pattern of linking to the previous page happens to be meaningful in non-js browsing as well. If you are generating that link on the fly, just set its href to location.href. Fixes #383
2010-11-04 22:49:28 -04:00
scottjehl
b1f7ff9c2d
made textinputs and textareas inherit theming when possible, or fall back to "c"
2010-11-04 21:59:03 -04:00
scottjehl
ffa682cbfe
Converted textinput plugin to use widget factory. Also added enable and disable methods. Fixes #369
2010-11-04 21:32:28 -04:00
scottjehl
f29b85a149
converted collapsible to the widget factory. API change: data-state="collapsed" is now data-collapsed="true". Updated markup in demos to support change. Fixes #372
2010-11-04 21:32:28 -04:00
Kin Blas
b3ec50b2e3
Removed redundant setting of $.activePage that I added in my previous checkin.
...
Updated lists-performance.html so that it is a list of 1000 items per Todd.
2010-11-04 15:15:49 -07:00
scottjehl
64e0c1dc47
removed a timeout - reset hashListener to false within hashchange event handler
2010-11-04 11:50:17 -04:00
scottjehl
29a60d3c3e
changed arg name to triggered
2010-11-04 11:24:39 -04:00
scottjehl
34283c04ed
changed hashchange args to use array
2010-11-04 11:24:13 -04:00
scottjehl
81fe1d2aea
Used documentElement.clientWidth/Height. Fixes #313
2010-11-04 10:44:35 -04:00
scottjehl
c45b0e3560
make sure "to" arg is an object, and has a url property before setting isFormRequest to true.
...
Fixes #377
2010-11-04 09:56:04 -04:00
scottjehl
3cc1c76d9d
improved check for activePageLink existence
2010-11-04 09:56:04 -04:00
Kin Blas
bb5708e543
Some tweaks to make page scrolling faster.
...
- Prevent the fixed header/footer code from traversing the entire document for each touchstart, touchend and scrollstart event.
- Make sure $.activePage is initialized with the startPage.
2010-11-04 00:27:21 -07:00
scottjehl
a138877864
removed broad rule for rounding corners of thumbnail images in first and last slots of listviews. Now this only happens for inset listviews. Fixes #362
2010-11-03 22:26:09 -04:00
scottjehl
ea12c75940
Make sure that Ajax form submissions (both get and post) always make a new request, even if it's identical to a previous submission. When a duplicate cached result page is present, it'll be removed from the DOM after the page change is complete . Thanks @medovob for the ideas and feature request. Fixes #368 , Fixes #366
2010-11-03 22:01:01 -04:00
scottjehl
fae3a93f26
remove active link class before leaving to an external page. Fixes #375
2010-11-03 18:56:21 -04:00
scottjehl
4036aa97e9
added an forceRemoval argument to make sure active states are removed when a page load error occurs. Fixes #364
2010-11-03 12:20:44 -04:00
scottjehl
f66047f410
added class 'ui-mobile-viewport-transitioning' to page parent container during transitions, and applied css to give perspective and proper dimension to the container and child pages. Also set overflow to hidden.
...
Fixes #347
2010-11-02 16:29:12 -04:00
scottjehl
edc1b81ba4
added ui-mobile-viewport class to parent of page element ( body in most cases). Updated css to style this class instead of body
2010-11-02 16:00:23 -04:00
scottjehl
cf4c1f858c
Merge branch 'checkbox_selector' of http://github.com/mlins/jquery-mobile into mlins-checkbox_selector
2010-11-02 15:09:48 -04:00
Matt Lins
e66997b794
Use existing inputtype var
2010-11-02 13:31:09 -05:00
scottjehl
6700721437
added php to <? opening tags - thx @TechIsCool. Fixes #308
2010-11-02 14:24:17 -04:00
Dave Penfold
ae342659df
Increase y axis threshold on swiping from 20 to 75
2010-11-03 02:12:05 +08:00
scottjehl
52f834cb8f
post requests update the hash with url only - but no params
2010-11-02 01:23:27 -04:00
scottjehl
fa794ca0ee
made sure external form actions are submitted through http
2010-11-02 00:57:27 -04:00
scottjehl
73e006d0e6
fixed a bug in relative url handling of form submissions
2010-11-02 00:48:46 -04:00
scottjehl
5e5f9387bf
implemented simple automated form submission handling for get and post requests. added demo page which includes more information about how it works.
2010-11-01 23:56:42 -04:00
scottjehl
a4ae3b9c4c
removed ajaxform plugin and experiments
2010-11-01 23:53:52 -04:00
scottjehl
9352d75487
removed ajaxform role
2010-11-01 23:53:35 -04:00
scottjehl
88a3c9ae57
updated to trigger a submit if the type is submit
2010-11-01 23:53:06 -04:00
scottjehl
f733dbb518
revised last commit - only header and footer inherit theming. content is left unthemed unless specified.
2010-11-01 22:54:41 -04:00
scottjehl
9ff1a1be6d
allow header, content, and footer to inherit theming from the page element, if unspecified on the elements themselves. Fixes #282
2010-11-01 22:43:51 -04:00
scottjehl
1110f78659
additional normalization to urls for getting base url - now better accommodates starting urls that contain a filename
2010-11-01 21:28:10 -04:00
scottjehl
4f908e2c22
fixed closure arg - jQuery should have been $
2010-11-01 14:34:39 -04:00
scottjehl
e4e8f1ddc4
added closures to event and support
2010-11-01 14:33:54 -04:00
scottjehl
4af621fd9d
removed an old comment
2010-11-01 14:32:42 -04:00
Matt Lins
ea0470f099
Ensure more specific selector works for radio
2010-10-30 15:12:37 -05:00
Matt Lins
7e49a8f648
Use more specific selector for checkbox refresh
2010-10-30 14:47:03 -05:00
Jeffrey Way
aa4ff18e22
Small improvement to keep from querying the DOM more than once for the data-role=pages elements.
2010-10-29 02:21:24 +08:00
scottjehl
2e86ed1425
added support for enable and disable methods
2010-10-27 23:11:36 -04:00
scottjehl
7d03d097bf
rewrote checkboxradio to use widget factory. renamed method checkboxradio and updated page plugin to match
2010-10-27 22:38:02 -04:00
scottjehl
c242604ec0
rewrote navbar with widget factory
2010-10-27 21:58:00 -04:00
scottjehl
c8d29fb6b2
added check to make sure active link isn't in the new activepage (such as when it's appended to the new page for persistence), before removing class
2010-10-27 21:57:37 -04:00
scottjehl
e202a72776
converted customButton plugin to widget factory (note: this is just the plugin for native button elements, not to be confused with the buttonMarkup plugin).
...
renamed method to "button" and updated page.js to match
2010-10-27 20:43:27 -04:00
scottjehl
77b1c3a758
moved line where # is removed to prevent base url prefixing on local anchor links
2010-10-27 16:56:03 -04:00
scottjehl
4c2a9591dc
moved active class removal code into function - now called after ajax error as well as successful page change
2010-10-27 16:52:53 -04:00
scottjehl
096467e4eb
made sure local # urls go through the regular page nav path, and only update the hash on success
2010-10-27 16:46:51 -04:00
scottjehl
d42aace51c
removed a few chars from condition. Thx @jeffreyway for suggestions on the last few commits.
2010-10-27 16:27:10 -04:00
scottjehl
d26877fc22
used cached version of $this
2010-10-27 16:22:40 -04:00
scottjehl
f84daa9cd3
removed nullLink var
2010-10-27 16:21:27 -04:00
scottjehl
86f2d1f90a
updated regexp to test for protocol or # at beginning of url.
2010-10-27 16:13:11 -04:00
scottjehl
07108b8809
simplified attr get/check
2010-10-27 15:00:56 -04:00
scottjehl
e709a37514
commented-out the call to _numberItems, as it doesn't yet exist in the listview rewrite
2010-10-27 12:19:24 -04:00
scottjehl
d299bfb087
moved append to before the buttonMarkup call, to make theming work as expected
2010-10-27 12:19:01 -04:00
scottjehl
1c79129dd6
removed title attr, as aria role handling seems to be descriptive enough
2010-10-27 09:49:45 -04:00
Alexander Dimitrov
1858844105
this keyword gets overwritten by jQuery.each
2010-10-26 22:53:28 +08:00
Karan Bhangui
f78d110339
fixed aside elements being displayed multiple times per list item
2010-10-26 22:53:11 +08:00
scottjehl
a382295724
removed a console.log
2010-10-25 11:06:43 -04:00
scottjehl
f12872c783
add/remove active class on clicked link.
2010-10-25 11:06:20 -04:00
scottjehl
4d3020d414
added px suffix to all media-min/max classes. Updated CSS usage to match.
2010-10-25 10:45:30 -04:00
scottjehl
a601db164d
fixed typo in where the blank space was added.
2010-10-25 10:31:36 -04:00
scottjehl
13db7886df
made sure empty min/max breakpoint classes aren't added
2010-10-24 09:43:34 -04:00
scottjehl
d7d43db120
made default breakpoints non-overrideable and exposed function $.mobile.addResolutionBreakpoints (accepts number or array of numbers) which can be used to add widths to be used in min/max media classes on HTML element.
2010-10-24 09:39:21 -04:00
scottjehl
0dcb2f2971
whitespace
2010-10-24 09:13:33 -04:00
scottjehl
e736caebfe
Removed the ajaxClick function and moved its logic into the live click event handler, where it is now refactored and simplified. Thx to Jeffrey Way for ideas that went into this refactor.
...
Also, clicks that are triggered on anchors will now be able to make a new http request, which improves listview behavior when clicking LIs that resolve to external urls.
Included in commit is a new demo/test page with various link types to make sure they behave as expected.
Fixes #272 , Fixes #264
2010-10-23 17:24:06 -04:00
scottjehl
6f5ce29175
typo
2010-10-23 17:16:49 -04:00
scottjehl
25c2ce5ce6
added support for grouped collapsibles that make accordions. Parent element just needs a data-role of collapsible-set. Fixes #87 , Fixes #178
2010-10-23 10:20:06 -04:00
scottjehl
538a56caf6
Used triggerHandler instead of trigger to allow collapsibles to be embedded. Fixes #255
2010-10-23 08:57:54 -04:00
scottjehl
f32d9dddc1
click instead of tap
2010-10-22 19:00:22 -04:00
scottjehl
fe468ccc9e
used click in place of tap
2010-10-22 18:59:42 -04:00
scottjehl
cf700ecfc1
e vs event. Fixed.
2010-10-22 18:59:14 -04:00
scottjehl
521b8e5eb7
moved the base tag check call to within the support extend.
2010-10-22 16:45:47 -04:00
scottjehl
e58c833f8c
used indexOf instead of match.
2010-10-22 16:41:56 -04:00
hochi
dfaeae34bd
fixed is() selector
2010-10-23 04:30:10 +08:00
scottjehl
6d54740f41
set max-width breakpoint classes as well.
2010-10-22 14:46:27 -04:00
scottjehl
38eb8aecc7
added - to prefix
2010-10-22 14:46:27 -04:00
scottjehl
e0f9c24b94
should have been minwidth prefixes, and now adding all that apply, rather than just the greatest.
2010-10-22 14:46:26 -04:00
John Resig
a5b4fdbaaa
Fix typos.
2010-10-22 14:33:10 -04:00
John Resig
4f9d2e8ac8
Merge branch 'master' of github.com:jquery/jquery-mobile
2010-10-22 14:31:31 -04:00
John Resig
a8f8beaf74
Minor formatting and performance tweaks to the page plugin.
2010-10-22 14:31:24 -04:00
scottjehl
732b66057a
resize and orientationchange now auto-add maxwidth classes to HTML element for common width breakpoints (defaults: 320,480,768,1024), which can be used in css targeting in place of media queries (for shorthand, and more importantly, to support IE, which may be opted-in to A support).
2010-10-22 13:58:08 -04:00
John Resig
d55fce4a47
Merge branch 'master' of github.com:jquery/jquery-mobile
2010-10-22 12:42:33 -04:00
John Resig
62623ca68e
Made a bunch of tweaks to checkbox/radio.
2010-10-22 12:42:24 -04:00
scottjehl
70bba7064a
Added a support test $.support.dynamicBaseTag and workaround for browsers that don't support dynamically updating BASE tag (Firefox is the only one I've seen so far. In those browsers, when a new page is fetched, any elements with href and src attributes will have their attribute prefixed with a proper base url (if they don't already start with an external site http address, "/", "#", or any protocol such as "mailto:, etc).
...
In the process, the BASE element and related functions are only implemented if that support is true, and BASE urls now use a full URL path when set, to avoid issues with browsers that may need that.
Fixes #263 , Fixes #221
2010-10-22 12:31:25 -04:00
John Resig
8208b6b986
Minor tweaks to page formatting.
2010-10-22 12:22:57 -04:00
John Resig
a07bcbaa8b
Minor tweaks to page logic.
2010-10-22 12:17:14 -04:00
John Resig
87106e4e61
Make sure that listview classes are only set per row.
2010-10-22 11:48:54 -04:00
John Resig
c8b5728c21
Fix issues with button rendering.
2010-10-22 11:39:26 -04:00
John Resig
170b02d795
Pull in updated version of jQuery.
2010-10-22 11:38:07 -04:00
John Resig
683d73243c
Reduced number of calls to addClass.
2010-10-21 18:36:17 -04:00
John Resig
f91b2523ff
Merge clickable into buttonMarkup. Improve performance of the Button Markup plugin.
2010-10-21 17:18:59 -04:00
scottjehl
21a7b0a2ba
updated to reflect new changes in pageChange function and dialog behavior
2010-10-21 17:02:59 -04:00
scottjehl
e71cb716a2
Merge branch 'master' of github.com:jquery/jquery-mobile
...
Conflicts:
js/jquery.mobile.js
2010-10-21 16:47:32 -04:00
scottjehl
ef3fd116dc
refactored to use widget factory and not be tracked via hash/history. Fixes #176
2010-10-21 16:29:05 -04:00
scottjehl
5ad3d04084
several changes that allow for changing pages without hash changes:
...
- allowed prevention of hash listening during a particular hash change
- allowed $.activePage to remain set on previous page when an untracked page is open (return pageshow event false to use this feature)
- moved setting and resetting to base urls and made sure they update at the right moment for both new pages and those previously visited.
- changePage now accepts an array as first argument, allowing you to specify both [from,to] pages, whereas non-array types would refer to the "to" page, assuming "from" should be the currently viewed page
- error requests never generate a hash change now
- edited the ajax error to appear in the right location when scrolled
Essentially, plugins can now create page changes that are not tracked in history, which is a dialog critical bug.
2010-10-21 16:28:17 -04:00
scottjehl
6f90c3aa17
changed to use click event.
2010-10-21 15:59:44 -04:00
John Resig
1128ff16ca
Rewrote some of the logic for numbering items and creating sub-pages.
2010-10-21 14:56:10 -04:00
John Resig
89a5f47065
Updated some queries to make sure more of them hit querySelectorAll/matchesSelector.
2010-10-21 14:30:42 -04:00
John Resig
9a38d8a0d1
Rewrite of listview logic for performance.
2010-10-21 14:07:28 -04:00
scottjehl
06e6ceb519
moved $activePage to $.activePage, so it's exposed for external plugins
2010-10-21 14:04:47 -04:00
scottjehl
b8cf201a88
ajaxClick only updates the hash if the clicked element doesn't match the new unHashedSelectors var. So far, this only includes [data-rel=dialog]
2010-10-21 13:16:48 -04:00
scottjehl
cb13c2f84a
updated to use new changePage function, which no longer has a "from" arg
2010-10-21 13:12:25 -04:00
scottjehl
0d8956cf0c
big refactor of hashchange event handler - moved logic over to changePage function.
2010-10-21 13:11:46 -04:00
scottjehl
afcf8fb0e8
made sure the inner corners on listview buttons are rounded.
2010-10-21 09:34:29 -04:00
scottjehl
2f38d99d45
moving the slider handle triggers change event on the input or select.
2010-10-20 19:08:56 -04:00
scottjehl
b15b9153a4
changed ajax response injection to avoid filtering-out script elements that are included in the page div. Fixes #145
2010-10-20 18:32:00 -04:00
scottjehl
ebfcc40e39
if a nested list is created on a page that contains a persistent footer, that footer should persist across all generated sub-pages. Fixes #247
2010-10-20 17:46:16 -04:00
scottjehl
b211de4bb3
updated triggered events to pagebeforeshow / pagebeforehide
2010-10-20 16:01:38 -04:00
scottjehl
73be0bb64b
removed extra $ causing error in direct-url scenarios
2010-10-20 14:20:38 -04:00
scottjehl
2c17000bfc
fixed up rounded corners on inset lists
2010-10-20 14:16:34 -04:00
scottjehl
62f0754c6b
removed console log
2010-10-20 14:08:01 -04:00
scottjehl
33052b7349
expose after domready
2010-10-20 12:48:05 -04:00
scottjehl
a0b814e26a
moved appends over to use $.pageContainer
2010-10-20 12:09:03 -04:00
scottjehl
b27e9e6d51
exposed pageContainer via $.pageContainer, for other plugins to append
2010-10-20 12:00:18 -04:00
scottjehl
863e971cd9
created $pageContainer reference - for appending pages. Fixes #260
2010-10-20 11:49:08 -04:00
scottjehl
8f78c67b1b
gave startPage a $ prefix
2010-10-20 11:48:00 -04:00
jzaefferer
6651fcf016
Listview: Replace live tap event handler with delegate.
2010-10-20 16:21:05 +02:00
jzaefferer
962d5a137b
Listview: Finishing up refresh refactoring. Fixes #249
2010-10-20 15:55:05 +02:00
jzaefferer
1cbdc76d08
Listview: Code cleanup and refactoring, introducing refresh method. Partial fix for #249
2010-10-20 06:28:35 +02:00
scottjehl
df93b9ec57
needed a g flag. Thx @naton. Fixes #252
2010-10-19 16:22:04 -04:00
Matt Curry
e5bd32c2d9
put input name in quotes to prevent issue with [,] chars
2010-10-19 23:27:16 +08:00
wuyuntao
205364620d
Modified to allow for pages to have a data-back attribute which provides a way to use backward transition manually.
2010-10-18 18:17:10 -04:00
Brandon Aaron
946f9d72ca
Updates to textarea autogrow. Use keyUp event so that changes are reflected in the DOM (in theory), buffer the keyUp event (100ms), and use clientHeight instead of offsetHeight for a better comparison to scrollHeight. Fixes #4 .
2010-10-18 15:51:49 -04:00
scottjehl
f8524f2e0c
Rolling back changes from commit #ea4db95b3c4d296c2719 as it didn't accommodate controlgroups used in radios/checkboxes. Further testing needed on those.
2010-10-18 12:44:44 -04:00
scottjehl
c282234548
Make sure mailto links do not get picked up by ajaxClick functionality. Fixes #206
2010-10-18 12:13:02 -04:00
imjoshdean
ea4db95b3c
flipClasses would not work properly when there is only one list-divider at the top or bottom. Now works properly in any case.
2010-10-17 23:02:25 -07:00
scottjehl
c1e41e2f7a
took the transitions off the select menus when they go to full page - still having trouble with the changePage function when not used in combination with a hashchange.
2010-10-15 21:34:55 -04:00
scottjehl
14ecf6f0da
just comments
2010-10-15 20:37:30 -04:00
scottjehl
7c7fffabcf
removed the "MORE" nav functionality - too buggy. Maybe later. or not.
2010-10-15 20:07:52 -04:00
scottjehl
193a400476
changed logic for auto-adding back btns. Hoping this Fixes #143
2010-10-15 18:25:54 -04:00
scottjehl
f5468482f8
fixed up theme inheritance
2010-10-15 16:40:06 -04:00
scottjehl
dd2f2a2672
fixed issue with configuring a solo right button in a header.
2010-10-15 16:19:55 -04:00
scottjehl
f35bd06b75
removed a call to hide browser chrome
2010-10-15 15:57:37 -04:00
scottjehl
ad5470e29c
loosened the scope for ui-links.
2010-10-15 15:55:46 -04:00
scottjehl
6b86edb327
removed transition names that won't be in alpha
2010-10-15 15:47:45 -04:00
scottjehl
0bee3fc585
made fixed headers an opt-in, until we can work the bugs out
2010-10-15 14:58:08 -04:00
scottjehl
53b3d6828b
added the other transitions from jQtouch.
2010-10-15 13:37:49 -04:00
scottjehl
26bbb233b8
Merge branch 'master' of github.com:jquery/jquery-mobile
2010-10-15 12:18:54 -04:00
scottjehl
5679fc7d2b
hopefully improved scroll-to-top vs. loader positioning
2010-10-15 11:34:33 -04:00
John Resig
ba50fe094f
Add in jQuery 1.4.3.
2010-10-15 11:10:27 -04:00
John Resig
d1d3d5c2d2
Add in jQuery 1.4.3.
2010-10-15 11:04:32 -04:00
scottjehl
00bd6ac7da
set top of loader to scrollTop+75
2010-10-15 10:46:58 -04:00
scottjehl
a4e9594857
no more body theme - just ui-br
2010-10-15 10:36:43 -04:00
jeresig
c91b00fb09
Mobile Ajaxform plugin isn't going into the alpha release.
2010-10-14 20:46:46 -04:00
John Resig
de17e335ef
char is not valid
2010-10-14 17:37:18 -04:00
John Resig
9f0cd7a104
Make some tweaks to the loading error dialog.
2010-10-14 15:37:35 -04:00
John Resig
92327e899f
Make sure that the page loading error message is displayed correctly and the back button still works properly.
2010-10-14 15:31:50 -04:00
John Resig
5680234fce
Handle pages that aren't found and display an error message to the user.
2010-10-14 14:41:31 -04:00
John Resig
23263a967b
Make sure the document body exists before determining orientation change, at least.
2010-10-14 13:12:47 -04:00
John Resig
57e2eb6619
Updating copies of jQuery to 1.4.3rc2.
2010-10-14 13:06:52 -04:00
scottjehl
4a3e4ec427
added option trackTheme, which uses the btn-down state and defaults either a data-tracktheme attr, finding a themed parent, or 'd'.
...
Button "theme" option defaults to "b", and can be set through the data-theme attr.
Fixes #168
2010-10-14 09:24:51 -04:00
scottjehl
af9508481c
Removed correct side of rounded corners on buttons in listviews that either precede or follow dividers.
...
Note that this will also make sure there's no bottom corners on a button that predes a divider that comes last, if that ever happens. Fixes #139
2010-10-13 20:16:50 -04:00
scottjehl
2f497bc06e
select menus only use the overlay style if $.support.scrollTop is true. This makes selectmenus usable on Palm
2010-10-13 18:36:10 -04:00
scottjehl
3ad6166991
scroll to top before page transition as well. That way the loading screen will show up without having to position it.
2010-10-13 18:30:01 -04:00
scottjehl
58ddf30bb6
add class to html when box-shadow is not supported.
2010-10-13 18:05:02 -04:00
scottjehl
3150f40064
Returns if $.support.scrollTop is false. Fixes #66
2010-10-13 17:30:51 -04:00
scottjehl
47e35832a9
Added two properties to support:
...
- boxShadow (tests that the property is defined and window.blackberry is false, as BB's shadows have no feathering)
- scrollTop (tests that the property is defined and that a webos property or two isn't defined, as Palm always reports 0)
Added an existence test for CSS properties, which is used for cssPseudoElement and boxShadow).
2010-10-13 17:25:14 -04:00
scottjehl
7470e376ad
changed to trigger click instead of ajaxClick. This should help the whole "clicks getting eaten" issue a bit.
2010-10-13 16:08:41 -04:00
scottjehl
52113e8b97
fixed up list count bubbles in split button listviews. Fixes #165
2010-10-12 17:37:43 -04:00
scottjehl
a35cd511bd
fixed default split button icons
2010-10-12 17:24:39 -04:00
scottjehl
dda81a4b83
implemented icon theming
2010-10-12 17:09:06 -04:00
scottjehl
fd6d7b52f2
rafactored the buttons in collapsibles. uses an inner button for styling the icons.
2010-10-12 16:36:32 -04:00
scottjehl
759adbf675
missed a comma
2010-10-12 16:35:31 -04:00
scottjehl
2521dc2ffb
implemented setting of theme and icon for split buttons at the list and link level.
2010-10-12 16:29:16 -04:00
scottjehl
4278d61c96
changed body to bar in list divider theming. Fixes #163
2010-10-12 15:10:17 -04:00
scottjehl
c59dafd616
added support for icon, in addition to thumb, image sizes. Fixes #146
2010-10-12 15:09:42 -04:00
scottjehl
c92e9f3eea
Merge branch 'master' of github.com:jquery/jquery-mobile
2010-10-12 14:28:00 -04:00
scottjehl
930430ab2e
removed the event logger from core. Fixes #159
2010-10-12 14:27:48 -04:00
Scott González
cf4e3969f0
Removed console.log() calls.
2010-10-12 13:57:14 -04:00
scottjehl
0a7a9d8721
added support for data-counttheme attr
2010-10-12 13:40:06 -04:00
scottjehl
9843e9f7a1
reverting the polling interval
2010-10-12 11:59:23 -04:00
scottjehl
a9e984a062
made sure inner shadow is applied differently on search inputs
2010-10-12 11:43:52 -04:00
scottjehl
7339965765
polling setTop on an interval to test for improvements.
2010-10-12 11:43:52 -04:00
scottjehl
ddd18e5ec7
send focus to first page title, not any old page title. Just in case - prevents page jumps
2010-10-12 11:43:51 -04:00
scottjehl
c99b047333
only apply show/hide to first header, last footer on page
2010-10-12 11:43:51 -04:00
scottjehl
b83885d281
brought back active scope - didn't help to remove it
2010-10-12 11:43:51 -04:00
Scott González
2ac5e0a755
Wait for 750ms before triggering taphold. Trigger tap even if a taphold occurs.
2010-10-12 11:34:31 -04:00
scottjehl
6c3c308de1
removing scope on headerfooters to see if it helps positioning
2010-10-11 19:48:43 -04:00
scottjehl
3428753aa6
cleaned up theme inheritance logic a bit
2010-10-11 19:32:19 -04:00
scottjehl
faf0b66868
improved inherited theming of buttons, and controlgroup orientation
2010-10-11 19:15:02 -04:00
scottjehl
d8977cf937
made listviews default to C theme, now that any button theme will work
2010-10-11 18:59:03 -04:00
scottjehl
0f40e2d28a
fixed button initialization for regular role=button buttons so they can be used in controlgroups.
2010-10-11 17:48:20 -04:00
scottjehl
855961ee2d
apply theming to inputs using data-theme. background image is set to none, but color is used, along with ui-shadow-inset
2010-10-11 17:26:51 -04:00
scottjehl
4b08e0fc9d
enabled theming of sliders through data-theme. Fixes #152 Fixes #153
2010-10-11 16:55:10 -04:00
scottjehl
16ee84fd94
apply theming to checkboxes and radios through data-theme attr. Fixes #150 Fixes #151
2010-10-11 16:47:08 -04:00
scottjehl
35e97cc5df
enabled theming of select menu buttons through data-theme attr on select el. Fixes #149
2010-10-11 16:41:30 -04:00
scottjehl
4ff7738dbe
improved keyboard handling for desktop use. Now uses ARIA listbox role with option sub roles.
2010-10-11 16:35:24 -04:00
scottjehl
00567105c9
moved focus for buttons over to hover state. no ui-focus class, no outline (hover state provides visual affordance)
2010-10-11 16:32:49 -04:00
scottjehl
ddccb3bc4f
"content" divs no longer get auto-themed, but data-theme attrs will work
2010-10-11 15:50:15 -04:00
scottjehl
a26e0a0d6a
added "inline" option to buttons and button links. data-inline="true". Fixes #148
2010-10-11 15:47:30 -04:00
scottjehl
fe07a8d802
changed up the transitions
2010-10-11 14:56:16 -04:00
scottjehl
d960370138
annnnd one more. :) now we're good.
2010-10-11 14:44:51 -04:00
scottjehl
c4e0f5c19e
whoops typo ruined everything
2010-10-11 14:44:09 -04:00
scottjehl
effbaa9f58
Refactored select plugin.
2010-10-11 14:41:17 -04:00
scottjehl
01b9924f0b
behavior for auto-focusing title or first focusable element can now be disabled by returning pageshow or pagehide events false.
2010-10-11 14:40:58 -04:00
scottjehl
c09e92d7de
moved direction over to controlgroup plugin. This should be updated to use data-direction rather than type
2010-10-11 14:39:32 -04:00
scottjehl
1bd8e94227
First pass at convering selectmenu over to new page model. Now time for cleanup
2010-10-11 10:33:52 -04:00
scottjehl
afaf411bc2
enabled setting of icon type in regular listviews
2010-10-11 10:33:27 -04:00
scottjehl
70a07b9a4b
abstracted out the scripting for sending focus to the page title, or first focusable element. reFocus function - now called at page load and pageChange.
2010-10-10 21:50:11 -04:00
scottjehl
29913434bf
changed name of list grouping to list "divider". Affects class names, css applied, data-attr for configuration.
2010-10-10 21:28:22 -04:00
scottjehl
0ec600c1b3
Improved and expanded ARIA coverage to more components, including landmarks on common top-level page elements. Fixes #137
2010-10-10 21:17:49 -04:00
scottjehl
bc2363100c
scroll to top before page change. Fixes #133
2010-10-10 20:48:57 -04:00
scottjehl
f5ebfbcbd2
Fixed check for relative vs. absolute positioning of fixed toolbars. Now fullscreen toolbars will work as expected. Fixes #132
2010-10-10 20:43:00 -04:00
scottjehl
00d8f6b62d
Fixes #136
2010-10-10 20:36:53 -04:00
scottjehl
734e21816a
groupingtheme option is now exposed as data-groupingtheme. This should probably be renamed to "dividertheme", but for now, this Fixes #128 , Fixes #134 (duplicate bugs)
2010-10-10 18:17:26 -04:00
scottjehl
edaa43c479
on page show, focus directs to page title, or first focusable element if no title present. Improves a11y experience.
2010-10-10 18:06:29 -04:00
scottjehl
580c140311
added tabindex attr to page titles so we can direct focus there when pages are shown.
2010-10-10 17:57:35 -04:00
scottjehl
9aba756295
constrained toolbar show/hide to ui-page-active. Fixes #96
2010-10-10 16:43:19 -04:00
scottjehl
fb30ab9580
used new $.mobile.idStringEscape to create more meaningful urls and ids for generated sub-pages in nested lists. Fixes #81
2010-10-10 16:22:39 -04:00
scottjehl
8f48125a1d
added a generic string formatter $.mobile.idStringEscape for strings to be used in both IDs and URLs. The regexp may be overly simplified now, but it'll allow us to create more semantic identifiers from content in generated pages.
2010-10-10 16:17:45 -04:00
scottjehl
e18631800d
added ability to set data-icon on split buttons. Fixes #124
2010-10-10 15:43:58 -04:00
scottjehl
ead866636e
Added support for data-role="list-divider", and for readonly li's (those that have no child anchor). Fixes #121 , Fixes #122
2010-10-10 15:38:25 -04:00
scottjehl
8cbb6186dc
added data-nobackbtn attr to override auto-add of back buttons at the header level. Fixes #131
2010-10-10 15:15:45 -04:00
Scott González
5b2bbd7b9f
Allow preventing the default initialization for pages by canceling the pagebeforecreate event. Fixes #105 .
2010-10-09 14:45:16 -04:00
Scott González
74a66af37b
Converted $.mobilize to $.fn.page (and $.mobile.page via widget factory).
2010-10-09 14:34:21 -04:00
scottjehl
5dbda8eb25
buttons now inherit theming from bar,body,and list (TBD) containers.
...
Consequently, when designing themes, button-A should be designed to pair well with bar,body,and list A.
This page shows a nice example of it in action:
http://jquerymobile.com/test/#_containers-states.html
Fixes #44
2010-10-09 09:22:27 -04:00
scottjehl
b6c482255e
whoa - that commit where I removed all the meta was a tad agressive (base tag was removed by mistake).
...
Re-added our base tag!
2010-10-09 08:29:01 -04:00
scottjehl
a8f1edc106
remove hash-setting functionality. Now expanded globalnavs are not deep-linkable.
...
Fixes #84
2010-10-09 01:08:13 -04:00
scottjehl
85c063eb94
If a [data-role="page"] div has an ID already when it is loaded, mobilize will wrap the page in a new div, transferring page-related data attrs to the wrapper (role,theme,fullscreen).
...
This prevents a ID from being overwritten for use in our page navigation model, which would have prevented css and scripting from applying.
Fixes #93
2010-10-09 00:41:01 -04:00
scottjehl
dc3ff3b67e
Input sliders can now be created using type="range". No data- attr necessary, though you can also use data-role="slider" with an input type of number (and on a select element as well).
...
Range Inputs will degrade to type=text, along with other shoddy input types.
Fixes #106
Fixes #118
2010-10-08 23:49:41 -04:00
scottjehl
8d8675dd84
updated to use $.mobilize for page building. Fixes issues with nested list styling as well.
2010-10-08 23:32:41 -04:00
scottjehl
702173eaae
renamed navlist to navbar.
...
Fixes #117
2010-10-08 23:26:04 -04:00
scottjehl
29a7daee60
mobilize now:
...
* applies data-themes appropriately to header,footer,page,and content roles
* finds first link in header or footer, applies left button class
* finds second link in header or footer, applies right button class
* if no left button, a back button is auto added (this can be disabled through $.mobile.addBackBtn)
* back buttons will not auto-add on the first page visited.
* all headings h1-6 are given ui-title class for constent styling in header and footer
* buttons in ui-bar,ui-header,ui-footer now all have consistent sizing and styling
Fixes #109
Fixes #114
Fixes #28
Fixes #116
2010-10-08 23:10:13 -04:00
scottjehl
daa76e00fa
enabled an opt-out for headers or footers that shouldn't follow on scroll. Just add [data-position="inline"]
2010-10-08 22:52:36 -04:00
scottjehl
7850c16e69
brought back the min/max scale so orientation change is clean. Still uncomfortable with choice between smooth orientation changes and ability to zoom...
2010-10-07 19:46:15 -04:00
scottjehl
194a76796a
removed auto-append meta tags except for viewport.
2010-10-07 18:35:17 -04:00
scottjehl
d50e73d7fc
made sure relative positioning never lets a header go higher than it's place in the document flow, or a footer lower than its place. Helps with dialogs.
2010-10-07 18:16:02 -04:00
scottjehl
ab48e7cce4
fixed transitions - one comma should have been a ;, and updated data usage in the process.
2010-10-07 17:49:51 -04:00
scottjehl
220673e973
Merge branch 'master' of github.com:jquery/jquery-mobile
2010-10-07 17:48:24 -04:00
scottjehl
01214855b6
added ui-page class
2010-10-07 17:32:45 -04:00
Scott González
e788abe889
Improved input type degradation.
2010-10-07 17:26:33 -04:00
scottjehl
090d3256f1
removed appendto body - costly and we should be covered with z-index anyway
2010-10-07 16:47:37 -04:00
scottjehl
d0ea6f28db
removed noCache option. We'll need a better implementation that won't interfere with local dialogs (in dom at load)
2010-10-07 16:45:51 -04:00
scottjehl
7b37d7a7ab
removed support tests for display, position, overflow, floatClear, as media query support infers these are all good to go!
2010-10-07 15:46:46 -04:00
scottjehl
de53cfb930
Made all css and JS rely upon media query support. ("only all"). We can go back to the previous system, but so far, this seems to create a better divide than our previous support tests provided. 1-person discussion here: https://github.com/jquery/jquery-mobile/issues/#issue/29
2010-10-07 15:15:59 -04:00
scottjehl
4db915a3c3
if a button's iconpos is "notext" and it has no title attr, set its title attr to its text content
2010-10-07 11:39:23 -04:00
Scott González
5c3d35574f
Renamed files.
2010-10-07 11:30:48 -04:00
Scott González
3888ff81b6
Renamed files so case changing will hold.
2010-10-07 11:24:44 -04:00
Scott González
e5e115a925
Revert "Moving files so the case chaning will hold."
...
This reverts commit dacb03383f .
2010-10-07 11:19:34 -04:00
Scott González
d4c904eecb
Revert "Renaming files."
...
This reverts commit ae6bfba68f .
2010-10-07 11:19:21 -04:00
Scott González
ae6bfba68f
Renaming files.
2010-10-07 11:13:14 -04:00
Scott González
dacb03383f
Moving files so the case chaning will hold.
2010-10-07 11:09:00 -04:00
Scott González
d2538d645b
Merge branch 'master' of github.com:jquery/jquery-mobile
2010-10-07 10:51:02 -04:00
Scott González
6f10fe2459
Renamed files from jQuery.* to jquery.*. Fixes #33 .
2010-10-07 10:50:10 -04:00
scottjehl
2ec76dffe4
Merge branch 'master' of github.com:jquery/jquery-mobile
2010-10-07 10:48:54 -04:00
scottjehl
d3e9e590e7
Fixed #64
2010-10-07 10:48:39 -04:00
Scott González
711148c782
Re-number list views during filter. Fixes #112 - listview filter: re-apply JS-based OL numbering for fallback browsers.
2010-10-06 22:45:52 -04:00
Scott González
50b65063b9
List view filtering is now case insensitive.
2010-10-06 22:31:47 -04:00
scottjehl
c076f220dc
bound to change event and keyup
2010-10-06 18:34:09 -04:00
scottjehl
6a34c9b835
clicking the clear button will focus on the input and trigger change event.
2010-10-06 18:33:55 -04:00
scottjehl
61df062cc0
needed quotes on class - reserved word
2010-10-06 18:13:25 -04:00
scottjehl
28868f41dd
removed a couple vars referencing previously deleted code
2010-10-06 17:37:58 -04:00
scottjehl
f5ff30b681
removed the appended "results showing" text
2010-10-06 17:36:47 -04:00
scottjehl
c6318a1478
added some attributes and called customTextInput plugin
2010-10-06 17:07:52 -04:00
scottjehl
9e756ea9c1
enabled data-theming
2010-10-06 17:07:17 -04:00
Scott González
c45bb79619
Added filter option to listview.
2010-10-06 16:32:28 -04:00
Scott González
3be99ed98f
Converted listview over to the widget factory.
2010-10-06 15:14:59 -04:00
scottjehl
72b1ba48ab
added radio and checks to the input type blacklist and added an option $.mobilize to degradeHTML5inputs or not
2010-10-06 11:52:23 -04:00
scottjehl
795a5293ff
whitespace
2010-10-06 11:47:12 -04:00
scottjehl
3d5f22ab13
refactored to use a blacklist. Removed type as well.
2010-10-06 11:46:27 -04:00
jblas@adobe.com
8eae0124f3
My previous checkin for Issue 107 busted *all* back buttons. This checkin fixes things.
...
- Modified back button selectors in mobilize so they must be under a ui-header but not under a ui-listbox-header. This seems to keep everything working and allow the back button on customSelect listboxes to work as expected.
2010-10-06 01:01:23 -07:00
jblas@adobe.com
f1f84ce77d
Fixed #107
...
Back button for customSelect listbox causes navigate to previous page.
- Added return false to the click handler attached to the back button in the select code.
- Modified the selectors for ui-back in mobilize so they only find back buttons in ui-header that are direct descendants of the ui-page.
2010-10-06 00:22:25 -07:00
scottjehl
5e34201ddc
fixed some things with dialog's css and classes
2010-10-06 01:10:30 -04:00
scottjehl
c5ceff745c
inputs with type=search now get turned into search widgets. Their type then degrades to "text" . Demos updated to match changes.
2010-10-06 00:44:03 -04:00
scottjehl
160777a83a
replace HTML5 inputs that have crap browser implementations with type=text. data-type attribute retains initial type. Fixed #issue/71
2010-10-06 00:36:32 -04:00
scottjehl
76cf9845ef
moved datepicker demo to experiments
2010-10-06 00:16:43 -04:00
scottjehl
a9c352eb59
removed datepicker sample code
2010-10-06 00:11:02 -04:00
scottjehl
e1f661e1c2
fixed regression where no-js buttons were still being enhanced
2010-10-06 00:01:38 -04:00
scottjehl
540e1f3fb8
added a "clear" button to search input types
2010-10-05 23:54:51 -04:00
scottjehl
9a9d47e550
removed an unnecessary wrapper
2010-10-05 23:00:33 -04:00
scottjehl
71763d3dfa
pretty rough, but here's a functional attempt at rounded-corner switches
2010-10-05 22:57:13 -04:00
scottjehl
69f446d945
preliminary support for tap switching
2010-10-05 21:24:59 -04:00
scottjehl
0128ee46a1
trigger beforepageshow on first pageload as well
2010-10-05 21:24:36 -04:00
scottjehl
50f9c363e7
brought the corners back on regular sliders
2010-10-05 19:23:58 -04:00
scottjehl
6a885f88d4
refactored switch sliders to be more iPhone like.
2010-10-05 19:18:39 -04:00
scottjehl
82c041b23d
controlgroup only gets innerwrapped if there's a controlgroup label (legend element)
2010-10-05 18:34:41 -04:00
scottjehl
e5207475a9
renamed the classes to "switch". For sliders built from selects with more than 2 options, we can use the name "select". currently, only 2 options are supported for select sliders
2010-10-05 18:28:03 -04:00
scottjehl
722fb14f5b
needed a .length in the condition
2010-10-05 18:17:27 -04:00
scottjehl
e03d33ac9e
added inner wrapper for toggling layout in wider resolutions
2010-10-05 17:33:56 -04:00
scottjehl
4a7b7a0b2e
made sure icons aren't present in horizontal groups
2010-10-05 17:12:54 -04:00
scottjehl
03292aad53
brought back the check radio icons
2010-10-05 17:08:37 -04:00
scottjehl
83f6ff9eef
added support for fullscreen data attr on pages. When present, child headers and footers will be absolute positioned and invisible when hidden
2010-10-05 16:08:11 -04:00
scottjehl
0de4e457be
changed setTop logic so it works for abs or rel positioning for both headers and footers (rather than just footers)
2010-10-05 15:36:10 -04:00
scottjehl
b5eca5bd2a
Renamed Globalnav "Navlist". Fixed #95
2010-10-05 14:06:28 -04:00
scottjehl
55f9a18cce
changed to use both touchmove and scroll. Sometimes scroll is triggered without a touchevent, such as tapping the top chrome on iPhone.
2010-10-05 13:49:36 -04:00
scottjehl
deaf0d94d9
refactored the event handling for touch and scroll
2010-10-05 11:58:55 -04:00
scottjehl
6a12dcc3be
iconPos to iconpos.
2010-10-05 10:58:58 -04:00
scottjehl
f1f5102a23
removed resize and orientationchange event handler, as it fired all the time on iPhone. geez.
2010-10-04 20:18:32 -04:00
scottjehl
60d256c4b2
fixed toolbars are fixed toolbars are fixed
2010-10-04 20:09:10 -04:00
scottjehl
9b810283a6
triggered pageshow on first page load (prevPage will be an empty jq obj)
2010-10-04 19:17:54 -04:00
scottjehl
ecbe18d809
make sure stickyfooter is defined before checking length
2010-10-04 19:14:19 -04:00
scottjehl
dbd5e6cfb7
removed calls to jQuery.fixedToolbars.show(). to be moved to fixedheaderfooter plugin
2010-10-04 19:05:22 -04:00
scottjehl
ced22f6962
Sticky footers
...
Tag a footer div with data-id="foo" and it'll stay visible when transitioning to another page that has a footer of the same data-id.
Fixed #72
All proposed changes above are either implemented, or covered through alternate means.
2010-10-04 19:00:30 -04:00
scottjehl
9c49ae13fd
moved the portion where the TO page is appended to body to before the "beforepageshow" event is fired.
2010-10-04 18:25:11 -04:00
scottjehl
113f09f6c9
added two events: beforeload and load.
...
These are triggered on a ui-page before and after mobilize is executed on a newly loaded page.
Fixed #75
2010-10-04 18:00:31 -04:00
scottjehl
9be9ab6612
Added 4 events regarding page show and hide:
...
* beforepageshow
* beforepagehide
* pageshow
* pagehide
All are triggered before and after the pageChange function runs.
The event.target will always be a "ui-page" div, triggered on either the showing or hiding page.
The second argument passed to the callback function contains either a prevPage or nextPage property, referencing a jQuery object containing the opposite page.
2010-10-04 17:46:58 -04:00
scottjehl
faef8e6300
Comment no longer relevant. Could be thx @paulirish tho!
2010-10-04 17:01:14 -04:00
Kin Blas
02571b1945
Fix for issue 90 - customSelect displays value in button control instead of the option label.
...
- Added code to extract text for the currently selcted option index.
2010-10-04 13:35:59 -07:00
Kin Blas
349bcb190f
Added textfield types tel, url, and email to the selector list of customTextInput(). The HTML5 spec says these are also represented by textfields.
2010-10-04 13:11:41 -07:00
Kin Blas
83c46b1f79
Fix for issue 83 - customSelect() expects its containing page to be mobilized before it is invoked.
...
- Added code to mobilize that processes page and content roles prior to form element processing. I left the code that processes page and content roles in the main processing loop just in case pages/content are injected dynamically by other roles.
2010-10-04 13:03:54 -07:00
scottjehl
2e4c537783
a little refactor to improve support for icons, text-only, among other things. Demo page has 3 different globalnav variations now.
2010-10-04 12:50:25 -04:00
scottjehl
00e68353fa
shuffled the logic around a bit so specifying an iconPos will leave room for the icon, even if no icon is passed. This is useful when aligning items that don't all have icons
2010-10-04 12:48:32 -04:00
scottjehl
c484629e84
reworked the timing and styles for the pageLoading sequences in attempt to reduce blinky behavior. Small improvements...
2010-10-03 16:43:50 -04:00
scottjehl
1317c57863
whitespace only
2010-10-03 16:01:10 -04:00
scottjehl
9d342f4d9e
removed a superflous statement
2010-10-03 14:51:34 -04:00
scottjehl
14ba228989
nested lists can now use OL, in addition to UL.
2010-10-03 11:24:50 -04:00
scottjehl
13c10d4862
links with any target attr will not use ajaxClick (not just _blank)
2010-10-03 11:20:14 -04:00
scottjehl
762341fc52
moved the resetBaseURL call into the hashchange, instead of in ajaxClick
2010-10-03 09:58:26 -04:00
scottjehl
8a35ec8e37
make sure base url is reset for cached pages, in addition to newly loaded ones.
2010-10-03 09:48:52 -04:00
scottjehl
04cb593fc3
refactored base url logic to work in combination with a <base> element, so assets referenced in loaded pages have proper base paths.
2010-10-03 09:41:45 -04:00
scottjehl
71d1c7272a
made sure trailing slash is only added to baseURL when it's not an empty string.
2010-10-03 08:18:57 -04:00
scottjehl
592236d915
moved a variable to local scope
2010-10-02 15:54:47 -04:00
scottjehl
6297306a5b
Big overhaul of ajaxClick functionality so it'll support a base URL and properly fix relative URLS to be absolute to the page from which requests are made (both by http or xmlhttprequest)
2010-10-02 15:41:57 -04:00
scottjehl
dfb7942ea6
prevent triggering of ajaxclick when bubbling up from clicking an anchor
2010-10-02 15:29:46 -04:00
scottjehl
aeb2643bdc
Ajaxclick function will now detect if it's an external link, and if so, it won't use Ajax.
2010-10-02 12:18:45 -04:00
scottjehl
91c5b90c82
moved jquery.tmpl.js to converter demo folder, as the script is not part of mobile proper
2010-10-02 11:57:43 -04:00
scottjehl
22eecd11dc
refactored. globalnavs can now be generated on any div, and all they do is the "more" nav behavior. Plugin may need renaming...
...
in these demos, the globalnavs are inside a footer div.
2010-10-01 23:37:43 -04:00
scottjehl
ed96011a28
major refactor - now uses relative positioning.
...
Interactions still aren't perfect, but the code is cleaner!
2010-10-01 23:36:25 -04:00
scottjehl
b6239c02f7
removed references to globalnavs, as they'll need to be managed in a different way.
2010-10-01 18:45:46 -04:00
scottjehl
3f2c23b66d
added theming for headers and footers to switch statement
2010-10-01 18:45:21 -04:00
jzaefferer
f148dbdd69
Refactored $.mobilize further to optimize form and controlgroup init. Added some notes
2010-09-30 14:08:59 +02:00
jzaefferer
6eee755ab7
Added TODO comment, as custom select doesn't work on desktop browsers
2010-09-30 14:00:01 +02:00
Douglas Neiner
b2656c28a6
Fixed regression with radio and checkboxes
2010-09-29 13:32:36 -07:00
Douglas Neiner
e83fea8ddc
Fixed variable name on button changes
2010-09-29 13:11:48 -07:00
Douglas Neiner
61f3c3341f
Updated button to optimize readablity
2010-09-29 11:56:41 -07:00
scottjehl
012d79eb58
selector for datepicker hackaround was too broad.
2010-09-29 09:21:31 -07:00
scottjehl
7fe3d9a22f
Merge branch 'master' of github.com:jquery/jquery-mobile
2010-09-28 08:57:31 -07:00
scottjehl
bfae696a58
removed some icon cruft from ui
2010-09-27 16:58:05 -05:00
scottjehl
75413a992b
unused selector
2010-09-27 16:55:03 -05:00
scottjehl
ad9165caa7
killed the shadow
2010-09-27 16:41:20 -05:00
scottjehl
0511300702
added super sketchy workaround for a datepicker demo. We can toss these out once we figure out how we'll properly include a datepicker.
2010-09-27 16:33:37 -05:00
scottjehl
43f3656a92
added datepicker js and css files (datepicker includes ui) for a temporary datepicker demo.
2010-09-27 16:30:56 -05:00
Kin Blas
0717106b94
Fixed issue 62: Multiple data-role="page" elements in a single document results in multiple markup insertion passes.
...
The function used to iterate over all pages was making reference to th e$el variable passed into mobilize(). This meant it was executing the same operation over *ALL* pages several times, once for each page in the document.
- Redefined $el in the funciton passed to the each() method.
2010-09-27 11:39:57 -07:00
Kin Blas
0a2a82102e
Fixed Issue 58 Fixed Headers/Footers Scroll with the document occassionally.
...
The bug seems to be caused by the fact that code inside show() is triggering a scrollstart event while still in the midst of handling the scrollstop event. This threw off the setting of showAfterScroll causing the currentstate to be stuck at "inline", so no hide/show code is ever triggered after that.
- Modified the scrollstart and sccrollstop callbacks to set showAfterScroll prior to calling show()/hide().
- movied the hide() call in scrollstart handler underneath the check for 'overlay'.
2010-09-24 11:09:45 -07:00
scottjehl
92c49bf97e
extended slider to support simple toggle switches based on select menus.
...
The logic will actually support multi-option selects as well, but the labels are flipped in order for switch-style controls, so if we want to support regular sliders from selects, the labels will have to be in forward order and beneath the slider bar.
2010-09-23 12:51:23 -04:00
Scott González
1a3b0131d4
Use touchend instead of touchmove for touch support - saves a byte.
2010-09-23 10:13:20 -04:00
Scott González
c106b7cb07
Use touchmove event for jQuery.support.touch detection. Fixes #57 .
2010-09-23 10:07:28 -04:00
scottjehl
149b071af1
added meta tags for fullscreen, bookmarking, etc. These will need some configurable options like jQtouch has
2010-09-22 13:54:52 -04:00
scottjehl
517e07059a
updated swipe event detection to use 30px minimum distance and 20px tolerance
2010-09-22 13:20:13 -04:00
scottjehl
218855357b
removing file in favor of previous changes.
2010-09-22 11:12:48 -04:00
scottjehl
da29904834
Replaced expandable plugin with basic scrollHeight vs. offsetHeight check that uses CSS transitions. Shaves about 4kb.
2010-09-22 11:09:06 -04:00
Scott González
cdac24a168
Don't treat right/middle clicks as taps.
2010-09-22 10:47:15 -04:00
Scott González
641aa54c11
Listview: Use .data() instead of .attr() for reading config values.
2010-09-22 10:26:04 -04:00
scottjehl
a78d5efbc5
made sure form controls with a role of nojs are not enhanced
2010-09-22 09:49:36 -04:00
Scott González
51bb4c9224
Updated jQuery.
2010-09-22 09:46:26 -04:00
jzaefferer
037729415c
Refactored slider code a bit, just a first pass.
2010-09-21 23:31:25 +02:00
Scott González
9c6f03ca00
Only listen to mousemove/touchmove and mouseup/touchend events after mousedown/touchstart is triggered. Improves performance by not listening to all move events.
2010-09-21 17:29:43 -04:00
jzaefferer
0cb179e9fe
Fixed collpsible typo.
2010-09-21 23:18:00 +02:00
jzaefferer
71a80f413a
Refactored mobilize to iterate over dataEls just once, removing about 10 filter calls.
2010-09-21 22:56:48 +02:00
scottjehl
8b5a1b0a1f
moved the percent fixer logic out of the if/else
2010-09-21 16:45:45 -04:00
scottjehl
a66fd2f296
Merge branch 'master' of github.com:jquery/jquery-mobile
2010-09-21 16:43:24 -04:00
scottjehl
e6707af667
added aria support
2010-09-21 16:43:07 -04:00
jzaefferer
176dfcebab
Adding converter-demo. Not yet actually using cache.manifest, as that screws up testing on mobile devices. At least on Mobile Safari there is no way to clear that offline cache - none that I found so far.
2010-09-21 22:33:06 +02:00
scottjehl
3b7a717e92
more updates to slider css and js. Should have itemized commits, but this thing's still in first-pass status.
2010-09-21 16:07:23 -04:00
scottjehl
9ec0823443
needed to pass the event arg
2010-09-21 15:33:51 -04:00
scottjehl
8e3aa35931
return clicks false on handle
2010-09-21 15:32:35 -04:00
scottjehl
3d8ad26463
added slider auto-init code to mobilize function
2010-09-21 15:25:52 -04:00
scottjehl
4992d7b168
First pass at a simple slider plugin. Can be called on an input element with data-role="slider". Controls communicate both ways during use.
2010-09-21 15:25:23 -04:00
scottjehl
d35881628c
removed swipe event always bound to body.
2010-09-21 15:21:28 -04:00
scottjehl
53771bbb68
rewrote mobilize function to pre-fetch elements and filter based on the results. Avg time running mobilize function on home page went from ~120ms to ~85ms.
2010-09-21 12:24:12 -04:00
scottjehl
9e37d2c1e9
added a few lines to the $mobilize function to convert the roles of header/content/footer to classes.
...
updated ajaxform and globalnav to accommodate change
2010-09-21 10:56:50 -04:00
scottjehl
5ca0d616ad
updated both plugins to use the new nested hash URL scheme for deep-linking.
2010-09-20 18:22:19 -04:00
scottjehl
af585dc8c7
Added support for nested urls through the following additions:
...
1. added the $.mobile object, for storing public options used in core and other plugins that should be made configurable externally, somehow.
2. With this change comes the first property $.mobile: subPageUrlKey, which defaults to "ui-page" and becomes the URL parameter for denoting a generated sub-page of a particular URL. For example, you can now deep-link to sub-levels of a nested listview like this:
jquerymobile.com/test/#_listview.html&ui-page=listview-2
...in which "listview-2" refers to a generated page created by _listview.html when mobilize() runs on it.
Note that this &ui-page parameter is used for splitting the hash to find the right part to use for the ajax request for the real url (_listview.html), while the ID of the actual subpage div really uses the whole thing: "_listview.html&ui-page=listview-2".
The other idea is that after the "&ui-page=" part, plugins should use an ID that reflects their widget name. For example, &ui-page=listview-2 or &ui-page=globalnav.
Before this change, subpages would use the whole hash without mentioning their parent page url, so you'd end up with blank pages if you hit refresh while viewing a generated sub-page.
2010-09-20 18:21:53 -04:00
John Resig
2484c41900
Use jQuery instead of $ to match the core style guideline.
2010-09-20 16:48:45 -04:00
scottjehl
2cafd2dc00
renamed autoform to ajaxform. All dependencies that use it are updated.
2010-09-20 10:47:49 -04:00
scottjehl
0726fe484c
added search icon
2010-09-19 19:03:16 -04:00
scottjehl
51f3fa2e2b
default to no auto-submit events.
2010-09-19 19:02:21 -04:00
scottjehl
845549949c
don't add ui-body class to form
2010-09-19 18:37:51 -04:00
scottjehl
ee001d1338
added logic for applying different classes and behavior to search inputs
2010-09-19 18:34:50 -04:00
scottjehl
c16dee657b
new attribute: data-role="nojs" can be applied to any element that should be accessibly hidden from the page for A browsers.
2010-09-19 18:21:09 -04:00
scottjehl
02a76c3f48
added the auto-init for autoforms to mobilize function
2010-09-19 18:15:02 -04:00
scottjehl
cc58c6e0f5
added jQuery.mobile.forms.autoform.js to the manifest
2010-09-19 18:14:40 -04:00
scottjehl
5c3ab41cf3
adding autoform plugin
2010-09-19 18:12:36 -04:00
scottjehl
14436257f6
made sure ui-page class is only added if there's no closest('.ui-page') present on it during mobilize call
2010-09-19 18:11:39 -04:00
scottjehl
8c7205c3ad
added 4 functions to $ namespace for use in external plugins
2010-09-19 18:09:05 -04:00
scottjehl
0782029b12
made $.mobilize available for externals
2010-09-19 17:57:06 -04:00
scottjehl
a3c1a3a57f
uncommented line to fade in content after loading finishes
2010-09-19 15:21:28 -04:00
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
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
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
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
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
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
6fa401276a
renamed files with jQuery.mobile. prefixes
2010-09-18 09:59:33 -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
Scott González
fa04e2e661
Don't clear the pageTransition variable until after the hashchange.
2010-09-17 17:24:37 -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
9f1a28ab70
auto-add the dark theme class to ui-page
2010-09-17 17:05:01 -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
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
Scott González
0479ff5239
Refactored $.media and moved to jQuery.mobile.support.js
2010-09-17 14:19:53 -04:00
scottjehl
a056d4636b
clarified comment
2010-09-17 13:54:28 -04:00
scottjehl
0d36d2aa2e
cleaned up ajax page retrieval code
2010-09-17 13:52:28 -04:00
scottjehl
d676524863
edited a comment - local urls work fine
2010-09-17 13:41:11 -04:00
scottjehl
0586c6e444
removed old comments
2010-09-17 13:30:50 -04:00
scottjehl
aa5031f24c
replaced prevUrl with urlStack array, which should improve the back/forward transitions between pages.
2010-09-17 11:29:12 -04:00
Scott González
1c5b60dc3a
Added orientationchange special event.
2010-09-16 17:20:31 -04:00
scottjehl
2da19049ce
changed default for grouping theme
2010-09-16 16:58:52 -04:00
scottjehl
780786c0d2
updated listview with demos for groupings
2010-09-16 16:44:06 -04:00
scottjehl
8e5e6dd8b6
changed option fillWidth to inset. Can be overidden with data-inset="true" as well
2010-09-16 16:13:54 -04:00
scottjehl
a39b366df4
added logic and example for "ui-li-aside" content within listview
2010-09-16 16:10:31 -04:00
Scott González
8f0c9f53b1
Updated listview to conform to coding standards and made some small tweaks.
2010-09-16 14:55:46 -04:00
Scott González
5cc3747bfc
Enable binding to scrollstop without scrollstart, taphold without tap and swipeleft/swiperight without swipe.
2010-09-16 14:01:48 -04:00
scottjehl
633b4ed45b
Updates to allow for fill-width or inset style lists.
...
The fillWidth option defaults to true, and can be overridden through data-fill-width attr.
2010-09-16 12:37:45 -04:00
scottjehl
7d72bb407b
needed some each() scopes
2010-09-16 12:21:08 -04:00
scottjehl
d0b1cb425d
added theming options with data-theme support for headers and footers
2010-09-16 12:17:28 -04:00
scottjehl
28f19ba8b3
updated to allow the count spans to adopt the parent theme unless overridden with a data-count-theme attr
2010-09-15 18:07:56 -04:00
scottjehl
a7bc486403
removing these demos and plugins! :)
2010-09-15 17:04:31 -04:00
scottjehl
2662bb2abf
removed references to tree and tabs in mobilize function. added auto-init for listview widgets
2010-09-15 16:54:47 -04:00
scottjehl
4d62dde078
adding listview widget
2010-09-15 16:51:15 -04:00
scottjehl
927637ffbd
added reference to listview js
2010-09-15 16:50:54 -04:00
scottjehl
6c53e9792c
removed references to tree and tabs js files
2010-09-15 16:50:25 -04:00
scottjehl
d6dde4b211
added support for shadows on controlgroups. Defaults to no shadow.
2010-09-15 16:43:56 -04:00
scottjehl
52d8b00d2e
removed the preventDefault at the end of touchStartEvent. It was disabling pretty much everything.
2010-09-15 16:40:19 -04:00
scottjehl
31804c73cc
added a wrapperEls option to allow the generated wrapper elements to be divs rather than spans. This will be useful in listview, when button-like elements may have block-level hierarchy inside them.
2010-09-15 14:04:44 -04:00
scottjehl
5d2f713a00
Merge branch 'master' of github.com:jquery/jquery-mobile
2010-09-15 10:51:41 -04:00
scottjehl
094d9b109b
added support property for history.pushState
2010-09-15 10:50:09 -04:00
Scott González
0304159f63
Fixed event binding for fixed toolbars.
2010-09-14 22:37:46 -04:00
Scott González
c2beace760
Updated to jQuery nightly.
2010-09-14 17:58:08 -04:00
Scott González
f035d06c50
Removed calls to $.scrollY().
2010-09-14 17:37:22 -04:00
Scott González
88e43a8d9e
Added jQuery.mobile.events.js to the manifest.
2010-09-14 17:35:38 -04:00
Scott González
8acc5258a4
Refactored events and split out into a separate file.
2010-09-14 17:35:04 -04:00
John Resig
3ac820c671
Switched from using BBQ to Hashchange. Fixes #15 .
2010-09-14 15:37:20 -04:00
John Resig
bc280df60e
Renaming expandable.
2010-09-14 14:54:15 -04:00
scottjehl
1e7ed8c5d2
removed dependency on jQuery bbq in this file.
...
Now we only really need the hashchange plugin, unless plugins like tabs and tree end up needing to track their state via hash params. (Currently, jQuery.tabs.js uses bbq for tracking state under the "tab" parameter.)
For now, this fixes #6
2010-09-14 13:16:55 -04:00
scottjehl
04af5885fe
set default for fixedAs option to "footer"
2010-09-14 12:57:03 -04:00
scottjehl
cfe571e94f
commented out hideAfterDelay methods - now header/footers will not hide on a timeout after page load.
2010-09-14 12:55:50 -04:00
scottjehl
ad25e2d6ea
moved classname to parent div
2010-09-14 12:55:09 -04:00
scottjehl
15dec632df
updated comment referencing tabs
2010-09-14 12:27:27 -04:00
scottjehl
8d07b57b8a
added option for fixedAs, which will allow for fixing a globalnav as header or footer
2010-09-14 12:26:48 -04:00
scottjehl
34b3dcaabc
moved $.support if statement back to mobile.js so it'll work for now.
2010-09-14 11:48:06 -04:00
scottjehl
eb2805f9d9
fixed up globalnav.js plugin and demo page. This could potentially replace the tabs plugin...
...
CSS updates for globalnav styling.
small changes to mobile.js to make globalNav demo init once at domready, not per ui-page.
2010-09-14 11:44:16 -04:00
Scott González
54c0c0929c
Small refactor of support tests for file size.
2010-09-13 21:58:37 -04:00
Scott González
aee5e02740
Split support tests into jQuery.mobile.support.js and refactored tests.
2010-09-13 21:46:20 -04:00
Scott González
f584e3385f
Merge branch 'master' of github.com:jquery/jquery-mobile
...
Conflicts:
js/jQuery.mobile.js
2010-09-13 18:28:07 -04:00
Scott González
c9c1f30025
Updated header comment.
2010-09-13 18:22:51 -04:00
John Resig
4a129a8eb2
Removing unnecessary jQuery.support.ajax that's now in jQuery core. Fixes #1 .
2010-09-13 18:04:48 -04:00
scottjehl
cdcc31e794
removed comment regarding a FF4 bug that's now fixed in nightly
2010-09-13 17:29:13 -04:00
scottjehl
5740e59819
removed commented code - no longer needed
2010-09-13 16:21:11 -04:00
scottjehl
9c759b804d
commented out matchMedia logic for later
2010-09-13 16:20:06 -04:00
scottjehl
142cffdfc2
mobilize func had a few unscoped selectors to fix up. thx Doug.
2010-09-13 15:57:12 -04:00
scottjehl
ed0faf004f
changed :focus to document.activeElement. Thx Paul Irish :)
2010-09-13 15:55:38 -04:00
scottjehl
5d11ae2779
more rewriting to get the toolbars working better. this change separates the toolbar markup builder portion from the controller portion, which can now be called globally to show,hide,toggle all at once. This seems to be an improvement.
2010-09-12 11:33:23 -04:00
scottjehl
2eef9f4e5d
attempts to make the header footer transitions work better with multiple pages
2010-09-12 08:39:32 -04:00
scottjehl
8b3c27de37
removed a flag I didn't end up needing
2010-09-11 12:37:16 -04:00
scottjehl
ea63c773c6
rearranged the places where overlays are first shown, and where the auto-hide timer is called
2010-09-11 12:34:47 -04:00
scottjehl
117cb3b78e
fixed logic so overlayOnly makes it always use transitions
2010-09-11 12:08:20 -04:00
scottjehl
6b8921250f
edited to make other transitions work better, aside from slidedown/up. Fade looks particularly nice. Others.... not so much.
2010-09-11 11:48:07 -04:00
scottjehl
2407f20959
some modifications to make the header footers work better with transitions.
2010-09-11 11:40:12 -04:00
scottjehl
5678650342
added slidedown,slidebackup transitions. modified slideup transitions' naming to accommodate.
...
updated transitions demo with new variation, added new transition name to array in mobile.js
2010-09-11 08:49:54 -04:00
scottjehl
8cde8a084b
moved $body swipe to domready
2010-09-11 08:24:36 -04:00
scottjehl
2bf43990ba
changed body swipe to swipe right and namespaced it as swiperight.jqm
2010-09-11 07:26:07 -04:00
scottjehl
1d0fd4a7d8
committing all the mobiley goodness.
2010-09-10 18:23:13 -04:00