r13303 - in 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: Tue Nov 30 20:08:30 2010
New Revision: 13303
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/keyword.pt
Log:
Refactored existing tags help text so that 'Hover and' would not appear with javascript disabled. With the old widget, instructions to select multiple tags are more important than type-to-skip, so replaced help text when javascript is disabled. 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 Tue Nov 30 20:08:30 2010
@@ -96,6 +96,8 @@
var multiSelect = $(this);
var multiSelectOptions = multiSelect.next('.multiSelectOptions');
var o = multiSelect.data("config");
+
+ $("#existingTagsHelp").text(o.existingTagsHelpText);
// clear the existing options
multiSelectOptions.html("");
Modified: Products.Archetypes/branches/plip11017-tag-selector-rmattb/Products/Archetypes/skins/archetypes/widgets/keyword.pt
==============================================================================
--- Products.Archetypes/branches/plip11017-tag-selector-rmattb/Products/Archetypes/skins/archetypes/widgets/keyword.pt (original)
+++ Products.Archetypes/branches/plip11017-tag-selector-rmattb/Products/Archetypes/skins/archetypes/widgets/keyword.pt Tue Nov 30 20:08:30 2010
@@ -43,9 +43,10 @@
</span>
</dt>
<span id="existingTagsHelp" class="formHelp">
- Hover and type the first letter to skip through tags.
+ Use Control/Command/Shift keys to select multiple tags.
<tal:comment tal:replace="nothing">
- Type-to-skip functionality currently is described as
+ Type-to-skip functionality with javascipt enabled
+ currently is described as
"Hover and type the first letter to skip through tags."
However, on touch-driven devices, vertical hover typically
scrolls the page, so horizontal hover is necessary to enable this.
@@ -86,7 +87,8 @@
oneOrMoreSelected: '% tags currently selected.',
selectAllText: 'Select All (not used here)',
listHeightPx: '120',
- unCheckAltText: 'Uncheck this tag.'
+ unCheckAltText: 'Uncheck this tag.',
+ existingTagsHelpText: 'Hover and type the first letter to skip through tags.'
});
});
</script>
------------------------------------------------------------------------------
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