diff --git a/index.html b/index.html
index ee830fc..d711183 100755
--- a/index.html
+++ b/index.html
@@ -1,4 +1,4 @@
-
+
@@ -149,7 +149,11 @@
href="#"
ng-click="purgeDownloadResult()"> {{ 'Purge Completed' | translate }}
-
+
+ {{ 'Shutdown Server' | translate }}
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
- {{download.name}}
+
+ {{download.name}}
-
+
diff --git a/js/ctrls/main.js b/js/ctrls/main.js
index ebe4735..d088c8d 100755
--- a/js/ctrls/main.js
+++ b/js/ctrls/main.js
@@ -400,6 +400,8 @@ function(
};
}
else {
+ if (ctx.gid !== d.gid)
+ ctx.files = [];
ctx.dir = d.dir;
ctx.status = d.status;
ctx.errorCode = d.errorCode;
@@ -588,5 +590,11 @@ function(
return false;
}
+ scope.moveDown = function (d) {
+ rpc.once('changePosition', [d.gid, 1, 'POS_CUR']);
+ };
+ scope.moveUp = function (d) {
+ rpc.once('changePosition', [d.gid, -1, 'POS_CUR']);
+ };
}]);
diff --git a/js/ctrls/nav.js b/js/ctrls/nav.js
index dd9565b..4b01ebd 100644
--- a/js/ctrls/nav.js
+++ b/js/ctrls/nav.js
@@ -137,4 +137,7 @@ angular
translate.use(langkey);
};
+ scope.shutDownServer = function () {
+ rpc.once('shutdown', []);
+ };
}]);
diff --git a/js/translate/en_US.js b/js/translate/en_US.js
index 3b2c4e3..5f3b026 100644
--- a/js/translate/en_US.js
+++ b/js/translate/en_US.js
@@ -132,5 +132,6 @@ translations.en_US = {
'Uploaded':'Uploaded',
'Download GID':'Download GID',
'Number of Pieces':'Number of Pieces',
- 'Piece Length':'Piece Length'
+ 'Piece Length': 'Piece Length',
+ 'Shutdown Server': 'Shutdown Server'
};