aboutsummaryrefslogtreecommitdiff
path: root/js/redirectorpage.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/redirectorpage.js')
-rw-r--r--js/redirectorpage.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/js/redirectorpage.js b/js/redirectorpage.js
index 84bfadf..6d0db2e 100644
--- a/js/redirectorpage.js
+++ b/js/redirectorpage.js
@@ -277,6 +277,20 @@ function moveDown(index) {
saveChanges();
}
+function moveUpTop(index) {
+ let top = REDIRECTS[0];
+ move(REDIRECTS, index, top);
+ updateBindings();
+ saveChanges();
+}
+
+function moveDownBottom(index) {
+ let bottom = REDIRECTS.length - 1;
+ move(REDIRECTS, index, bottom);
+ updateBindings();
+ saveChanges();
+}
+
//All the setup stuff for the page
function pageLoad() {
template = el('#redirect-row-template');