diff -ru greybox/greybox.module /web/live.plma.net/htdocs/sites/all/modules/greybox/greybox.module
--- greybox/greybox.module 2008-12-04 06:50:00.000000000 -0500
+++ /web/live.plma.net/htdocs/sites/all/modules/greybox/greybox.module 2009-05-08 14:30:11.000000000 -0400
@@ -53,9 +53,9 @@
);
$form['greybox_options']['greybox_class_text'] = array(
'#type' => 'textfield',
- '#title' => t('Class name'),
+ '#title' => t('jQuery selector'),
'#description' => t('The class name of the elements, to associate Greybox with. Example: Enter greybox if your element HTML code is: <a class="greybox">.'),
- '#default_value' => variable_get('greybox_class_text', 'greybox'),
+ '#default_value' => variable_get('greybox_class_text', 'a.greybox'),
);
$form['greybox_options']['greybox_window_height'] = array(
'#type' => 'textfield',
diff -ru greybox/js/greybox.js /web/live.plma.net/htdocs/sites/all/modules/greybox/js/greybox.js
--- greybox/js/greybox.js 2008-12-04 06:32:23.000000000 -0500
+++ /web/live.plma.net/htdocs/sites/all/modules/greybox/js/greybox.js 2009-05-21 14:32:24.000000000 -0400
@@ -22,7 +22,7 @@
jQuery.boxModel && document.documentElement.clientWidth ||
document.body.clientWidth || 800;
- $('a.' + Drupal.settings.greybox.class_text).bind('click', function(){
+ $(Drupal.settings.greybox.class_text).bind('click', function(){
var title = this.title || $(this).text() || this.href;
var dims = $(this).attr('rel');
dims = dims.split(/x/i, 2);