Search and Top Navigation
#3673 closed feature (fixed)
Opened December 17, 2008 05:51PM UTC
Closed February 01, 2011 11:08AM UTC
Widget: Add methods to abstract focus and hover classes
Reported by: | scottgonzalez | Owned by: | scottgonzalez |
---|---|---|---|
Priority: | major | Milestone: | 1.9.0 |
Component: | ui.widget | Version: | 1.6rc2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Many (all?) plugins now need to add classes on hover to take advantage of the new CSS framework. To reduce code duplication, we should add a hoverClass method to ui.core.js.
$.fn.hoverClass = function(classNames) { return this.hover( function() { $(this).addClass(classNames); }, function() { $(this).removeClass(classNames); }); };
Attachments (0)
Change History (5)
Changed December 17, 2008 06:36PM UTC by comment:1
milestone: | TBD → 1.6 |
---|---|
owner: | → scott.gonzalez |
status: | new → accepted |
Changed December 19, 2008 03:44PM UTC by comment:2
Also add .focusClass()
Changed December 30, 2008 10:31PM UTC by comment:3
milestone: | 1.6 → 1.next |
---|
Changed February 01, 2011 11:07AM UTC by comment:4
component: | ui.core → ui.widget |
---|---|
milestone: | 1.next → 1.9 |
status: | accepted → new |
summary: | Add hoverClass method → Widget: Add methods to abstract focus and hover classes |
Changed February 01, 2011 11:08AM UTC by comment:5
resolution: | → fixed |
---|---|
status: | new → closed |
Added in 711df1f5e54062d090d92f4e630e4cb0cc137b21 and 17004b9cac3eb87a72474b6d82d0f0063c23c269.