summaryrefslogtreecommitdiff
path: root/openstack_dashboard
diff options
context:
space:
mode:
Diffstat (limited to 'openstack_dashboard')
-rw-r--r--openstack_dashboard/static/js/angular/directives/serialConsole.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack_dashboard/static/js/angular/directives/serialConsole.js b/openstack_dashboard/static/js/angular/directives/serialConsole.js
index df48e6b89..97a691038 100644
--- a/openstack_dashboard/static/js/angular/directives/serialConsole.js
+++ b/openstack_dashboard/static/js/angular/directives/serialConsole.js
@@ -77,7 +77,7 @@ limitations under the License.
scope.cols = 80;
scope.rows = 24;
// event handler to resize console according to window resize.
- angular.element(window).bind('resize', resizeTerminal);
+ angular.element(window).on('resize', resizeTerminal);
function resizeTerminal() {
var terminal = angular.element('.terminal')[0];
// take margin for scroll-bars on window.