Steven Black
ab76ac33ac
jquery.mobile.dialog.js: Whitespace changes and string delimiters, bringing this up to jQuery coding standards. Renamed one memory variable for legibility and clarity.
...
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-26 10:01:39 -04:00
scottjehl
76fe9ca3fd
moved previous logic to the init file so it's not overridden by defaults.
2011-05-24 17:39:53 -04:00
scottjehl
7b578f7873
Disabled ajax navigation in BlackBerry 5 and Opera Mini, for a more usable overall experience (and in some cases, due to insufficient native history implementations that don't track hash changes). Fixes #1644 and Fixes #1276
2011-05-24 17:08:29 -04:00
scottjehl
8929ac33b9
Removed the ajaxLinksEnabled and ajaxFormsEnabled settings. These were deprecated in a4 and scheduled for removal. Automated link and form ajax handling can still be globally disabled via the ajaxEnabled option.
2011-05-24 16:08:30 -04:00
Kin Blas
368d3e55b4
Merge branch 'master' into navigation
2011-05-23 17:00:32 -07:00
Kin Blas
786ef25e0a
Changes to get the navigation unit tests green again.
...
- Modified changePage() to set isPageTransitioning earlier.
- Modified pageSequence() to allow the current changepage callback stack to unwind before firing off the next function in the sequence.
2011-05-23 14:30:40 -07:00
John Bender
dc530ea751
page sequence helper added, nav tests in a somewhat better state. the event trigger spot, namespace, and general setup are all up for debate
2011-05-21 22:15:12 -07:00
Kin Blas
5ba2cc975e
Inverted the logic around ignoreNextHashChange so that it actually matches the name of the variable.
...
Modified the hashchange callback so that it specifies a "none" transition, instead of a false boolean, for the case where the hash changed and there is nothing on the urlHistory stack.
2011-05-20 15:19:54 -07:00
John Bender
fe7ba3f6c6
jquery style compliance for nsNormalize
2011-05-20 12:32:08 -07:00
Kin Blas
3c792c58f0
Merge branch 'master' into navigation
...
Fixed Conflicts:
js/jquery.mobile.init.js
js/jquery.mobile.navigation.js
2011-05-20 09:39:19 -07:00
John Bender
4c299a600b
moved nsNormalize from replace to jquery camelCase function
2011-05-20 09:20:15 -07:00
John Bender
ad6279dd8a
small optimization to prevent unnecessary recompilation of normalization regex
2011-05-20 01:09:39 -07:00
John Bender
3520e77dc4
comment for clarity on function purpose
2011-05-20 00:48:41 -07:00
John Bender
118599748b
comment whitespace
2011-05-20 00:43:53 -07:00
John Bender
7eb1085764
data attribute namespace normalization to comply with spec and jquery 1.6 changes
2011-05-20 00:31:27 -07:00
Kin Blas
edc94fb6ec
The dialog "pop" unit test was failing because the active variable in changePage() was being dereferenced. The unit test clears the urlHistory.stack array manually so we just need to make sure we don't dereference active if it doesn't exist.
2011-05-19 17:01:26 -07:00
John Bender
6487eb684f
spaces to tabs in core
2011-05-19 15:36:22 -07:00
Kin Blas
59afbda49b
Added a pageContainer option to changePage and loadPage.
2011-05-18 18:06:15 -07:00
Kin Blas
3a047112a0
Removed debug try/catch block I accidentally checked in.
...
Made lots of whitespace changes to bring file up to jquery core style guidelines.
2011-05-18 16:38:04 -07:00
Kin Blas
cafb6acef9
Separated changePage() into 2 functions:
...
- loadPage() now loads all pages into the DOM.
- changePage() only functions on pages that are in the DOM. If you call it with a URL instead of an element, it will call loadPage() which will then trigger a call to changePage() with the resulting page at a later time.
2011-05-18 15:58:15 -07:00
scottjehl
ae7d62a1bc
code style & repetition cleanup
2011-05-18 18:32:59 -04:00
Scott Jehl
24fff18186
Merge pull request #1656 from VTWoods/bug_1635
...
#1635 Collapsible not triggering resize event. Fixes #1635
2011-05-18 15:30:11 -07:00
vtwoods
5918e5ad9f
Moved the resize event into the fixed toolbar plugin.
2011-05-18 18:17:41 -04:00
scottjehl
fd0819f379
turned auto back button additions off by default. Fixes #1657 . To turn auto backbuttons on, you can set the page plugin's autoBackBtn option to true per page, or globally via its configuration prototype. You can also use the data-auto-back-btn attribute on a page div.
2011-05-18 17:17:13 -04:00
vtwoods
18c7d590ce
Merge branch 'master' of https://github.com/jquery/jquery-mobile into bug_1635
2011-05-18 16:20:21 -04:00
vtwoods
7022c19322
Fixed the bug where collapsing or expanding a collapsable did not cause a resize event to be triggered
2011-05-18 16:12:57 -04:00
gnikibog
1b49245489
Missing space in generated page markup
2011-05-18 07:02:06 -07:00
scottjehl
adf3808e84
Removed the dynamically-appended Meta tag, which was deprecated in Alpha 4, and scheduled for removal in beta. jQM users must provide their own meta viewport tag in the head of jQM apps.
2011-05-17 18:03:54 -04:00
scottjehl
04cb9c1850
followup to previous change, this time for dynamically appended meta viewport tags.
2011-05-17 17:30:13 -04:00
Kin Blas
b96310eedf
- Externalize some of the nested functions in changePage().
...
- Modified changePage() so that it can take an options object. Updated all references throughout the framework.
- Split $.mobile.pageLoading() into 2 functions $.mobile.show/hidePageLoadingMsg(). Updated docs accordingly.
- Renamed $.mobile.defaultTransition to $.mobie.defaultPageTransition. Updated docs accordingly.
- Added $.mobile.defaultDialogTransition so that it isn't hard coded in the changePage/transitionPages and select code.
- Hand integrated jquery.mobile.navigation.js checkins from master: 4b4ee54a , e775f5e8 , e597ccb3 , 084bbbd8 .
2011-05-16 16:02:26 -07:00
Todd Parker
877651a7cd
Merge pull request #1631 from joshiabk/master
...
jQuery Search Textbox change to add new focus event which will show clear button when some item gets pasted directly without key event to search text box. Thanks joshiabk
2011-05-14 03:25:23 -07:00
Abhishek Joshi
cb645ede22
Add new focus event which will show cross button on search textbox when some item get paste directly without key event to search text box
2011-05-13 22:44:47 -07:00
Kin Blas
7df38d9abf
Upgrade to jQuery 1.6.1 to pick up :checked fixes.
2011-05-13 15:27:09 -07:00
Steven Black
f8516d4dbe
jquery.mobile.support.js: Whitespace changes only. Bring code up to jQuery coding standards in anticipation of adding Opera Mini feature detection. Passes jsHint except for the James Padolsey/ jdalton non-UA-based IE version check, which is OK. All tests pass.
...
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-11 20:47:37 -04:00
Todd Parker
b80689a1dc
Merge pull request #1522 from markandey/master
...
If 'input' element has id string with dots in it, code fails. Fixed by tweaking the regex to escape dots in the selector. Thanks markandy and eddiemonge
2011-05-10 12:12:19 -07:00
Kin Blas
4f4bb4d309
Merge branch 'master' of https://github.com/jquery/jquery-mobile
2011-05-09 14:24:49 -07:00
Kin Blas
24fc06b234
Issue 1592 - Make sure we set lastval on create so we don't compare against the stirng "undefined" on first keyup/change event.
2011-05-09 14:23:06 -07:00
Todd Parker
084bbbd839
Merge pull request #1573 from marcoos/master
...
fix for issue 1530: Page title is changing when I use popup select menu (Dropdown). Thanks marcoos.
2011-05-09 13:03:02 -07:00
Kin Blas
1387fd457f
Merge branch 'filterspeed' of https://github.com/nsaleh/jquery-mobile into pull-1475
...
Resolved Conflicts:
js/jquery.mobile.navigation.js
- Removed these changes as they are not related.
2011-05-09 12:27:44 -07:00
Nabil Saleh
4ffb0a5f33
- code cleanup
...
- added class-based hiding
2011-05-09 13:25:13 +02:00
Kin Blas
e597ccb381
Fix for issue 1580 - phonegap: Pages with data-ajax="false" on form fail to load
...
In the $.ajax() callback, we look for elements with @href, @src, and @data-ajax="false" elements, the code then assumes that matching elements will have either @href or @src, which of course forms don't ... they have @action ... so the code throws an exception because thisUrl is undefined.
- I reworked the code to handle action and check to make sure we have an attribute and url string before attempting to use them.
2011-05-06 13:05:56 -07:00
Kin Blas
e775f5e83a
Fix for Issue 1578 - Can't load file:// pages
...
This was caused by this checkin:
4b4ee54a72
The change caused the base tag to be reset to file:// (literally with no path).
All that was missing was a small tweak to base.reset() to use the new initialPath variable instead of docBase.
2011-05-06 10:28:31 -07:00
scottjehl
4b4ee54a72
This change sets the base tag properly on page load and page changes, corresponding with the recent change to absolute path hash urls. Images and other assets will direct relative to the document in which they reside. This may not cover new path situations Kin has documented, but it does fix the regression so things work as they did before the change. Tested in non-base supporting browsers to verify it works there too. The following page should have an image in the content, verifying the fix http://jquerymobile.com/test/#/test/docs/about/intro.html . Fixes #1508
2011-05-06 09:37:41 -04:00
Marek Stepien
50ee33a84f
fix for issue 1530: Page title is changing when I use popup select menu ( Dropdown)
2011-05-05 23:26:41 +02:00
scottjehl
131cb2423f
updated to 1.6
2011-05-04 22:24:36 -04:00
Paul Nicholls
91126e4e85
Issue #1514 (Regex breaking Firefox >3.6)
...
Remove greedy matches from start and end of regex - there's no need for them, and they cause immense slowdown (on the order of 3-4 seconds on medium-size pages loaded via ajax).
2011-05-03 10:48:06 +12:00
Kin Blas
af3b8ce3ae
Merge pull request #1544 from StevenBlack/TransitionsToStandard.
...
Transitions to standard
2011-05-02 14:23:36 -07:00
mark.dawn@gmail.com
4bccf1d8a6
some string literal fixes
2011-05-02 13:30:36 +05:30
John Bender
377c0067a7
remove checked state from radio button inputs that are not checked. use jquery attr accessor instead of expando to guarantee consistent values. Fixes #1532 .
2011-05-02 00:53:51 -07:00
Steven Black
b78c6ea372
jquery.mobile.transition.js: code to jQuery core standards, part deux.
...
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-01 21:19:30 -04:00