There's the same cookie module in Drupal 7 in misc\jquery.cookie.js

So just remove these 2 lines from ie6nomore.module:
// Pull in jQuery cookie plugin, from https://github.com/carhartl/jquery-cookie/blob/master/jquery.cookie.js
drupal_add_js($path . '/jquery-cookie/jquery.cookie.js');

CommentFileSizeAuthor
#4 patch.patch8.06 KBgeerlingguy

Comments

hkirsman’s picture

Here's something to consider when using Drupals own plugin module:

http://www.jcfiala.net/blog/2011/11/18/drupal-7-and-jquery-cookie-plugin

Drupal 7 and the jquery cookie plugin
18 Nov 2011
Posted by jcfiala

Here's a quick snippet I just found out today: The jquery cookie plugin is presented as part of Drupal 7. This is really cool and useful, but I must note that it's not automatically included on every page load, so you'll want to include it if you want to use it, and as well it doesn't seem to actually be documented anywhere on drupal.org.

Happily, the original documentation for the plugin is at https://github.com/carhartl/jquery-cookie/blob/master/README.rdoc, and is pretty good, although I suggest reading it through at least twice, as at first I missed that you can read, as well as set, cookies with this. Basically the parameters are the cookie name, the cookie value, and then an options object which says the expiration, the path, the domain, and such. Note that the expiration can _either_ be a date, or a number of days.

Hopefully this will help other folks out with using the jquery cookie plugin with Drupal 7.

jonathan_hunt’s picture

Status: Active » Fixed

Good catch, thanks. Committed to 7.x-1.x-dev.

geerlingguy’s picture

Status: Fixed » Needs work

It looks like the cookie is still included in the module's code/download (though it's no longer used). Could you delete the 'jquery-cookie' directory entirely? (Thus saving a nice 20KB of redundant code...).

geerlingguy’s picture

Status: Needs work » Needs review
StatusFileSize
new8.06 KB

Patch for this attached... but I don't think I can delete the jquery-cookie directory through the patch.

hkirsman’s picture

I don't know how relevant this is but GIT does not have folders. If you delete all files in the "folder", directory is gone too.