aboutsummaryrefslogtreecommitdiff
path: root/chrome/code
diff options
context:
space:
mode:
authorEinar Egilsson2011-08-30 13:21:07 +0200
committerEinar Egilsson2011-08-30 13:21:07 +0200
commitf0843d03e265c47258c92499248f45bff4ece6f4 (patch)
tree7abba6e3fe48e2ec54e0c754f7ed77c8ab078bf4 /chrome/code
parentb69f768ac83291de532161ae1da48ea20ffc01d6 (diff)
Move redirects by drag/drop
Diffstat (limited to 'chrome/code')
-rw-r--r--chrome/code/redirector.js7
1 files changed, 2 insertions, 5 deletions
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") {