2007-05-17 21:05:38 +00:00
|
|
|
// $Id$
|
2009-04-27 20:19:38 +00:00
|
|
|
(function ($) {
|
2007-07-01 15:37:10 +00:00
|
|
|
|
2008-10-29 10:01:28 +00:00
|
|
|
Drupal.behaviors.comment = {
|
2009-04-27 20:19:38 +00:00
|
|
|
attach: function (context, settings) {
|
|
|
|
$.each(['name', 'homepage', 'mail'], function () {
|
2009-10-09 15:39:12 +00:00
|
|
|
var cookie = $.cookie('Drupal.visitor.' + this);
|
2009-04-26 19:18:46 +00:00
|
|
|
if (cookie) {
|
2009-08-31 05:51:08 +00:00
|
|
|
$('#comment-form input[name=' + this + ']', context).once('comment').val(cookie);
|
2008-10-29 10:01:28 +00:00
|
|
|
}
|
2009-04-26 19:18:46 +00:00
|
|
|
});
|
2007-07-01 15:37:10 +00:00
|
|
|
}
|
2007-05-17 21:05:38 +00:00
|
|
|
};
|
|
|
|
|
2009-02-18 13:46:55 +00:00
|
|
|
})(jQuery);
|