diff --git a/console/configuration/system_configs.js b/console/configuration/system_configs.js
index ba8897a..b0c1521 100644
--- a/console/configuration/system_configs.js
+++ b/console/configuration/system_configs.js
@@ -19,7 +19,7 @@ exports.setupEnvironment = function () {
REDIS_HOST = "localhost";
REDIS_PORT = "6379";
REDIS_PASSWORD = null;
- FILE_TEMP_PATH = require('os').homedir() + "/rc_extension";
+ FILE_TEMP_PATH = "/data/irext/database/binaries/irext-binaries";
PYTHON_PATH = "/usr/bin/python";
LISTEN_PORT = "8301";
SERVER_ADDRESS = "localhost";
diff --git a/console/web/code/index.html b/console/web/code/index.html
index f2fa2d3..f07fed7 100644
--- a/console/web/code/index.html
+++ b/console/web/code/index.html
@@ -651,6 +651,7 @@
+
diff --git a/console/web/code/js/manage.js b/console/web/code/js/manage.js
index e3ca3e5..fb106fc 100644
--- a/console/web/code/js/manage.js
+++ b/console/web/code/js/manage.js
@@ -3,6 +3,8 @@
* 2017-03-27
*/
+var CODE_TABLE_PADDING = 320;
+
var id = "";
var token = "";
var client = null;
@@ -124,7 +126,7 @@ function loadRemoteList(isSearch, remoteMap) {
method: 'get',
url: url,
cache: false,
- height: 600,
+ height: getViewPortHeight() - CODE_TABLE_PADDING,
pagination: true,
pageSize: 50,
pageList: [10, 25, 50, 100, 200],
diff --git a/console/web/code/js/operate.js b/console/web/code/js/operate.js
index 77867d3..92737d4 100644
--- a/console/web/code/js/operate.js
+++ b/console/web/code/js/operate.js
@@ -49,7 +49,7 @@ function downloadBin() {
}
downloadURL = '/irext/int/download_remote_index?remote_index_id='+selectedRemote.id+'&admin_id='+id+'&token='+token;
- if (null != client && client == 'console') {
+ if (null != client && client === 'console') {
// directly download binary to remote via serial port
} else {
window.open(
diff --git a/console/web/public_js/utils/view_utils.js b/console/web/public_js/utils/view_utils.js
new file mode 100644
index 0000000..5a4776b
--- /dev/null
+++ b/console/web/public_js/utils/view_utils.js
@@ -0,0 +1,5 @@
+
+function getViewPortHeight() {
+ var h = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
+ return h;
+}
\ No newline at end of file