| 1 |
// $Id$
|
| 2 |
|
| 3 |
Drupal.behaviors.tntBehavior = function (context) {
|
| 4 |
// IE6 & less-specific functions
|
| 5 |
// Add hover class to primary menu li elements on hover
|
| 6 |
if ($.browser.msie && ($.browser.version < 7)) {
|
| 7 |
$('.form-submit').hover(function() {
|
| 8 |
$(this).addClass('hover');
|
| 9 |
}, function() {
|
| 10 |
$(this).removeClass('hover');
|
| 11 |
});
|
| 12 |
$('#primary-menu li').hover(function() {
|
| 13 |
$(this).addClass('hover');
|
| 14 |
}, function() {
|
| 15 |
$(this).removeClass('hover');
|
| 16 |
});
|
| 17 |
$('span.button-wrapper').hover(function() {
|
| 18 |
$(this).addClass('hover');
|
| 19 |
}, function() {
|
| 20 |
$(this).removeClass('hover');
|
| 21 |
});
|
| 22 |
};
|
| 23 |
// Add label over login field
|
| 24 |
$("#header-top label").overlabel();
|
| 25 |
};
|