Mat Marquis
4ed1e6ac11
Fixes #2595 — Hidden “click to expand contents” text now changes depending on current expanded/hidden state.
2011-10-04 14:01:08 -04:00
Kin Blas
bb8326876b
Fixes #2212 - Collapsible heading vclick issue
...
- Switch to using "click" instead of "vclick" on collapsible headers since that is the only reliable way to prevent uncaught/mismatched clicks from firing on a different element.
2011-09-29 00:43:01 -07:00
gseguin
b84a68edaa
Missing semi-colon
2011-09-28 10:57:46 -07:00
gseguin
5a97fd7b05
Fix for #2527
...
Use ui-body-* instead of ui-btn-up-* for collapsible content
2011-09-28 10:57:24 -07:00
gseguin
276f27fbfa
Fixed missing top corner on collapsible set with only one collapsible
2011-09-24 21:58:04 -07:00
gseguin
3ecbf8e383
Simplified code. Don't add data-* attr if not set by user
2011-09-24 21:41:20 -07:00
gseguin
bdaa477f68
Fix for #1899
...
Added data-content-theme to style the content of the collapsible
data-theme and data-content-theme inherit collapsible-set's
2011-09-24 17:22:55 -07:00
gseguin
fb06381176
Set content-theme to collapsible in a set only if it's not already set
2011-09-22 10:28:56 -07:00
gseguin
46e6c6b320
fixed data-content-theme in collapsible-set for collapsible expanded by default
2011-09-22 09:49:02 -07:00
gseguin
e666552274
Added data-content-theme to collapsible and collapsible-set
2011-09-21 21:56:23 -07:00
gseguin
ec8e92453e
Removed buttonMarkup around +/- icon
2011-09-15 16:27:54 -07:00
gseguin
e6eaf7cacd
Fix for #1899 :
...
Re-styled collapsible and collapsible set so the content of the collapsible now is applied the ui-btn-up-%%theme%% class. This way the border will match the border of the header button. In the meantime in the ui-collapsible-content class we remove the background image and tweak the margin/padding to make everything look good.
Combined the expand/collapse handlers into a single one and made extensive use of .toggleClass()
2011-09-14 16:02:47 -07:00
gseguin
87ca47f162
Fix for issue #1899
...
Refactored some css classes
Fixed bottom corners in set with only one collapsible
2011-09-14 11:05:53 -07:00
gseguin
6f5a7d1266
Fix for issue #2404
...
Collapsible are collapsed by default
2011-09-08 13:34:58 -04:00
scottjehl
263193f490
Moved autoinit calls to after widgets. Made it so auto init selectors use the initSelector option, so that it can be configurable.
2011-07-27 18:42:16 -04:00
scottjehl
e07c40e3d0
exposed automatic initialization selectors on most widgets that expose options through the widget factory. Option name is "initSelector"
2011-07-26 14:22:08 -04:00
scottjehl
fdb77bfa52
changed new (undocumented) "enhance" event to "create" to better match our existing event name conventions
2011-07-22 09:05:55 -04:00
scottjehl
64e6ef0e72
bound widgets to the "enhance" event, in addition to the pagecreate event. The enhance event allows developers to enhance the contents of an html fragment by triggering "enhance".
2011-07-19 22:44:03 -04:00
scottjehl
2a6c7fc1b9
This commit decouples all widgets from the page plugin so that they can be used ad-hoc.
...
- Internally, each plugin self-initializes by binding to the pagecreate event.
- Unit tests have been added and adjusted to support some internal changes involved in this commit.
- In the process, the portions of the page plugin that were used to enhance the header,content,and footer sections of a native-app style page layout are now located in jquery.mobile.page.sections.js.
- No public API options have changed, except that the page plugin no longer has options for keepNative, and degradeInputs, as plugins now handle these internally (keepNative was never documented, and degradeInputs only affected slider, so it lives there now. Page options related to the page sections are now located in the page.sections script, but they are still configurable via the page plugin's options api.
- Make, Ant, and index files are updated with a new load order for all JS files.
2011-07-19 22:25:23 -04:00
Ryan Neufeld
92fcbe1672
Fix for Bug #1931 - Collapsible Set - Visual Bug
...
collapsable selector was using :first so set was only ever one element.
changed find to children
2011-07-07 13:20:10 -07:00
Rick Waldron
5b6a0570f5
jQuery core style guide conformance: jquery.mobile.collapsible.js
2011-06-28 19:02:33 -04:00
Eddie Monge
0de386eda9
Code guideline styling changes for collapsible.js
2011-06-14 15:32:57 -07:00
scottjehl
93e7afd4b1
make sure nested collapsible sets don't toggle their parent collapsibles when expanded. Fixes #1387
2011-06-08 18:00:26 -04:00
Steven Black
bce94ffbaa
jquery.mobile.collapsible.js: Whitespace to standards. Now passes jsHint.
...
Signed-off-by: Steven Black <steveb@stevenblack.com>
2011-05-26 15:41:01 -04:00
vtwoods
5918e5ad9f
Moved the resize event into the fixed toolbar plugin.
2011-05-18 18:17:41 -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
Kin Blas
f7749504b8
Modified the vclick handler code in navgation.js so that it doesn't place the ui-btn-active class on any links meant for interactivity.
...
Removed the return false in the vclick handler of collapsible and replaced it with a preventDefault(). The only reason we were returning false was to stopPropagation() so that the vclick handler in navigation.js didn't place a ui-btn-active on it.
2011-04-22 10:53:24 -07:00
Kin Blas
7d9af0b2a8
Fix for issue 1157 - Collapsible block prevents page scrolling on iPhone 4
...
- When we switched to virtual mouse events, I just did a straight translation of the code that existed which basically did the collapse/expand on mouseup. In order to factor in scrolling, I needed to move that code into a vclick handler and stopPropagation() and preventDefault() to make sure the button doesn't activate.
2011-04-19 16:57:13 -07:00
scottjehl
784f5974e5
make sure collapsibles don't have a sticky on-state.
2011-04-07 15:03:29 -04:00
jblas@adobe.com
729cda075a
Merge branch 'master' into fastclick
...
Resolved Conflicts:
js/jquery.mobile.buttonMarkup.js
js/jquery.mobile.event.js
js/jquery.mobile.forms.checkboxradio.js
js/jquery.mobile.forms.select.js
js/jquery.mobile.listview.js
2011-03-27 21:00:22 -07:00
scottjehl
1aafea83aa
semicolon
2011-03-26 14:16:08 -04:00
scottjehl
7503f62a10
changed our two new custom data helper names to jqmData() and :jqmData()
2011-03-25 17:50:40 -04:00
Kin Blas
db89e1f24d
Switch find/filter selector calls over to using the new :jqdata() pseudo selector.
2011-03-22 13:31:17 -07:00
scottjehl
ea60207c1b
changed custom data method to $.fn.mobileData() and updated plugins that use it.
2011-03-09 23:27:21 -05:00
scottjehl
ce34ece257
namespaced data- attrs to $.mobile.ns (defaults to "jq-") throughout the JS
2011-03-09 20:47:44 -05:00
Kin Blas
ca3026a341
Switch collapsible over from click to vclick.
2011-03-01 14:07:11 -08:00
scottjehl
670ec15661
switched collapsibles over to tap event. Fixes #1056
2011-02-18 12:43:34 -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
a24196e550
dolla dolla bills y'all.
...
Fixes #126 , Fixes #346
2010-11-11 10:50:28 -05:00
scottjehl
dab3cbee34
changed to null for allowing override through data-theme
2010-11-10 23:58:38 -05:00
scottjehl
356308e6b7
updates to comments
2010-11-09 19:55:52 -05: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
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
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
Scott González
5c3d35574f
Renamed files.
2010-10-07 11:30:48 -04:00