From 6518aa36708073b2f7a99e1b88a576b314f1192c Mon Sep 17 00:00:00 2001 From: liuzheng712 Date: Tue, 5 Apr 2016 13:05:07 +0800 Subject: [PATCH] bugfix --- static/js/record.js | 4 ++-- templates/jlog/log_online.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/record.js b/static/js/record.js index ddcb15755..8d73dde3d 100644 --- a/static/js/record.js +++ b/static/js/record.js @@ -57,8 +57,8 @@ NgApp.controller('TerminalRecordCtrl', function ($scope, $http) { for (; pos < timelist.length; pos++) { if (timelist[pos] * 1000 <= time) { try{ - var findResize = JSON.parse(data[timelist[pos]])['reszie']; - term.resize(findResize['cols'], findResize['rows']) + var findResize = JSON.parse(data[timelist[pos]])['data']; + term.resize(findResize['resize']['cols'], findResize['resize']['rows']) } catch (err) { term.write(data[timelist[pos]]); } diff --git a/templates/jlog/log_online.html b/templates/jlog/log_online.html index e40098685..290612c43 100644 --- a/templates/jlog/log_online.html +++ b/templates/jlog/log_online.html @@ -174,8 +174,8 @@ $('.terminal').show(); socket.onmessage = function(evt){ try { - var findResize = JSON.parse(evt.data)['resize']; - term.resize(findResize['cols'], findResize['rows']) + var findResize = JSON.parse(evt.data)['data']; + term.resize(findResize['resize']['cols'], findResize['resize']['rows']) } catch (err) { term.write(evt.data); }