From f0843d03e265c47258c92499248f45bff4ece6f4 Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Tue, 30 Aug 2011 13:21:07 +0200 Subject: Move redirects by drag/drop --- chrome/code/redirector.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'chrome/code/redirector.js') diff --git a/chrome/code/redirector.js b/chrome/code/redirector.js index 5c6fe81..8a5cbed 100644 --- a/chrome/code/redirector.js +++ b/chrome/code/redirector.js @@ -180,14 +180,11 @@ Redirector = { this.exportRedirects(file); }, - switchItems : function(index1, index2) { - var item = this._list[index1]; - this._list[index1] = this._list[index2]; - this._list[index2] = item; + sortRedirects : function(sortFunc) { + this._list.sort(sortFunc); this.save(); }, - // nsIContentPolicy implementation shouldLoad: function(contentType, contentLocation, requestOrigin, aContext, mimeTypeGuess, extra) { if (contentLocation.scheme != "http" && contentLocation.scheme != "https") { -- cgit v1.2.3-70-g09d2