[Pkg-mozext-commits] [firebug] 15/55: Reset also sorting (no sorting by default) when reseting the cookie header

David Prévot taffit at moszumanska.debian.org
Mon Mar 31 22:46:08 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag firebug-1.10.1
in repository firebug.

commit 0bbf2417d213ef2af198e9cdd2061d752ddf3cc3
Author: Jan Odvarko <odvarko at gmail.com>
Date:   Mon Jul 16 17:42:33 2012 +0200

    Reset also sorting (no sorting by default) when reseting the cookie header
---
 extension/content/firebug/cookies/cookieReps.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/extension/content/firebug/cookies/cookieReps.js b/extension/content/firebug/cookies/cookieReps.js
index 9fa401c..69c5edd 100644
--- a/extension/content/firebug/cookies/cookieReps.js
+++ b/extension/content/firebug/cookies/cookieReps.js
@@ -1230,6 +1230,13 @@ CookieReps.CookieTable = domplate(CookieReps.Rep,
         // Reset visibility.
         Options.clear(hiddenColsPref);
         panel.table.setAttribute("hiddenCols", Options.get(hiddenColsPref));
+
+        // Reset also sorting (no sorting by default)
+        var headerRow = panel.table.getElementsByClassName("cookieHeaderRow")[0];
+        var headerSorted = Dom.getChildByClass(headerRow, "cookieHeaderSorted");
+        Css.removeClass(headerSorted, "cookieHeaderSorted");
+        Options.set(lastSortedColumn, "");
+        panel.refresh();
     },
 
     createTable: function(parentNode)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git



More information about the Pkg-mozext-commits mailing list