r13459 - Products.Archetypes/trunk/Products/Archetypes/skins/archetypes/widgets/js
"Matt Barkau" <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.archetypes.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: rmattb
Date: Sat Feb 5 04:28:44 2011
New Revision: 13459
Modified:
Products.Archetypes/trunk/Products/Archetypes/skins/archetypes/widgets/js/keywordmultiselect.js
Log:
Improved comments in JavaScript for keyword multiple select enhancement PLIP. Refs #11017.
Modified: Products.Archetypes/trunk/Products/Archetypes/skins/archetypes/widgets/js/keywordmultiselect.js
==============================================================================
--- Products.Archetypes/trunk/Products/Archetypes/skins/archetypes/widgets/js/keywordmultiselect.js (original)
+++ Products.Archetypes/trunk/Products/Archetypes/skins/archetypes/widgets/js/keywordmultiselect.js Sat Feb 5 04:28:44 2011
@@ -126,6 +126,7 @@
}
if( multiSelectA.oldPositionX != e.pageX || multiSelectA.oldPositionY != e.pageY ) {
// At this point, the mouse actually did move.
+ // Format navigated item
$(this).parent().parent().find('LABEL').removeClass('hover');
$(this).addClass('hover');
lastNavTabKeyCheckbox = null;
@@ -171,7 +172,7 @@
// Without this, both moused & tabbed checks return focus to multiSelectA,
// causing tabbed checkboxes to lose focus.
lastNavTabKeyCheckbox = $(this);
- // Remove hover class from all labels in the div
+ // Format navigated item
lastNavTabKeyCheckbox.parent().parent().parent().find('LABEL').removeClass('hover');
lastNavTabKeyCheckbox.parent('LABEL').addClass('hover');
}
@@ -207,6 +208,7 @@
}
if(newHoverIndex >= 0) {
+ // Format navigated item
$(allOptions.get(oldHoverIndex)).removeClass('hover'); // remove the current highlight
$(allOptions.get(newHoverIndex)).addClass('hover'); // add the new highlight
lastNavTabKeyCheckbox = null;
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb