r13290 - Products.Archetypes/branches/plip11017-tag-selector-rmattb/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: Thu Nov 25 05:40:06 2010
New Revision: 13290
Modified:
Products.Archetypes/branches/plip11017-tag-selector-rmattb/Products/Archetypes/skins/archetypes/widgets/js/keywordmultiselect.js
Log:
Improve performance by caching jQuery object. Refs #11017.
Modified: Products.Archetypes/branches/plip11017-tag-selector-rmattb/Products/Archetypes/skins/archetypes/widgets/js/keywordmultiselect.js
==============================================================================
--- Products.Archetypes/branches/plip11017-tag-selector-rmattb/Products/Archetypes/skins/archetypes/widgets/js/keywordmultiselect.js (original)
+++ Products.Archetypes/branches/plip11017-tag-selector-rmattb/Products/Archetypes/skins/archetypes/widgets/js/keywordmultiselect.js Thu Nov 25 05:40:06 2010
@@ -602,8 +602,9 @@
// with a click event listener on elements of the uncheck class.
$("#selectedTags a.uncheck").live ('click', function (event) {
var uncheckedTag = $(this).attr("name");
- $('input[value=' + uncheckedTag + ']').click();
- $('input[value=' + uncheckedTag + ']').parent().toggleClass('checked');
+ var uncheckedTagCheckbox = $('input[value=' + uncheckedTag + ']')
+ uncheckedTagCheckbox.click();
+ uncheckedTagCheckbox.parent().toggleClass('checked');
updateSelected.call(multiSelect);
});
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev