From 96bca83bcc2eb969d1330f84092652bc2615faf8 Mon Sep 17 00:00:00 2001
From: Dries <dries@buytaert.net>
Date: Sat, 21 Jul 2012 15:19:03 -0400
Subject: [PATCH] - Patch #1569648 by nod_: use localStorage to store
 tableDrag.showWeight value.

---
 core/misc/tabledrag.js | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/core/misc/tabledrag.js b/core/misc/tabledrag.js
index ebba5f4edd37..bd79bde1b41c 100644
--- a/core/misc/tabledrag.js
+++ b/core/misc/tabledrag.js
@@ -246,14 +246,6 @@ Drupal.tableDrag.prototype.showColumns = function () {
   });
   // Change link text.
   $('.tabledrag-toggle-weight').text(Drupal.t('Hide row weights'));
-  // Change cookie.
-  $.cookie('Drupal.tableDrag.showWeight', 1, {
-    path: Drupal.settings.basePath,
-    // The cookie expires in one year.
-    expires: 365
-  });
-  // Trigger an event to allow other scripts to react to this display change.
-  $('table.tabledrag-processed').trigger('columnschange', 'show');
 };
 
 /**
-- 
GitLab