summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-11-22 04:33:02 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-11-22 04:33:02 +0000
commit0e35d4d818c986f5933a8feccdc96246a88c5758 (patch)
tree51cfdcf31391f4cd474c8cccd068ca335d94420f /misc
parent680b69b17161aaca29c50090675bdfe05fe3b01d (diff)
downloadbrdo-0e35d4d818c986f5933a8feccdc96246a88c5758.tar.gz
brdo-0e35d4d818c986f5933a8feccdc96246a88c5758.tar.bz2
#601548 follow-up by David_Rothstein: Remaining clean-ups from drupal_placeholder() patch.
Diffstat (limited to 'misc')
-rw-r--r--misc/drupal.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/misc/drupal.js b/misc/drupal.js
index 279e6ec5a..98b5a5418 100644
--- a/misc/drupal.js
+++ b/misc/drupal.js
@@ -231,8 +231,9 @@ Drupal.formatPlural = function (count, singular, plural, args) {
* theme does not provide an override function, the generic theme function is
* called.
*
- * For example, to retrieve the HTML that is output by theme_placeholder(text),
- * call Drupal.theme('placeholder', text).
+ * For example, to retrieve the HTML for text that should be emphasized and
+ * displayed as a placeholder inside a sentence, call
+ * Drupal.theme('placeholder', text).
*
* @param func
* The name of the theme function to call.
@@ -365,7 +366,7 @@ Drupal.theme.prototype = {
* The formatted text (html).
*/
placeholder: function (str) {
- return '<em>' + Drupal.checkPlain(str) + '</em>';
+ return '<em class="placeholder">' + Drupal.checkPlain(str) + '</em>';
}
};