16 lines
351 B
JavaScript
16 lines
351 B
JavaScript
// $Id$
|
|
(function ($) {
|
|
|
|
Drupal.behaviors.comment = {
|
|
attach: function (context, settings) {
|
|
$.each(['name', 'homepage', 'mail'], function () {
|
|
var cookie = $.cookie('Drupal.visitor.' + this);
|
|
if (cookie) {
|
|
$('#comment-form input[name=' + this + ']', context).once('comment').val(cookie);
|
|
}
|
|
});
|
|
}
|
|
};
|
|
|
|
})(jQuery);
|