test/emission_fichiers/comment.js
branchnew-model
changeset 882 61c384dda19e
parent 881 f11b234497f7
child 883 d35ad8111c5e
--- a/test/emission_fichiers/comment.js	Fri Apr 27 19:18:21 2012 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-// $Id: comment.js,v 1.5 2007/09/12 18:29:32 goba Exp $
-
-Drupal.behaviors.comment = function (context) {
-  var parts = new Array("name", "homepage", "mail");
-  var cookie = '';
-  for (i=0;i<3;i++) {
-    cookie = Drupal.comment.getCookie('comment_info_' + parts[i]);
-    if (cookie != '') {
-      $("#comment-form input[name=" + parts[i] + "]:not(.comment-processed)", context)
-        .val(cookie)
-        .addClass('comment-processed');
-    }
-  }
-};
-
-Drupal.comment = {};
-
-Drupal.comment.getCookie = function(name) {
-  var search = name + '=';
-  var returnValue = '';
-
-  if (document.cookie.length > 0) {
-    offset = document.cookie.indexOf(search);
-    if (offset != -1) {
-      offset += search.length;
-      var end = document.cookie.indexOf(';', offset);
-      if (end == -1) {
-        end = document.cookie.length;
-      }
-      returnValue = decodeURIComponent(document.cookie.substring(offset, end).replace(/\+/g, '%20'));
-    }
-  }
-
-  return returnValue;
-};