| 1 |
// $Id: book.js,v 1.5 2009/04/11 22:19:44 webchick Exp $
|
| 2 |
|
| 3 |
(function ($) {
|
| 4 |
|
| 5 |
Drupal.behaviors.bookFieldsetSummaries = {
|
| 6 |
attach: function (context) {
|
| 7 |
$('fieldset#edit-book', context).setSummary(function (context) {
|
| 8 |
var val = $('#edit-book-bid').val();
|
| 9 |
|
| 10 |
if (val === '0') {
|
| 11 |
return Drupal.t('Not in book');
|
| 12 |
}
|
| 13 |
else if (val === 'new') {
|
| 14 |
return Drupal.t('New book');
|
| 15 |
}
|
| 16 |
else {
|
| 17 |
return Drupal.checkPlain($('#edit-book-bid :selected').text());
|
| 18 |
}
|
| 19 |
});
|
| 20 |
}
|
| 21 |
};
|
| 22 |
|
| 23 |
})(jQuery);
|