From 43a792ec94bc3360da8bfbc118cca28cad03b128 Mon Sep 17 00:00:00 2001 From: manchandavishal Date: Mon, 10 Apr 2023 17:37:14 +0530 Subject: Update deprecated jQuery functions This patch replace uses of .bind(), .delegate(), and .unbind() with .on() and .off() respectively[1], in order to migrate to the latest version of jQuery. [1] https://jquery.com/upgrade-guide/3.0/#deprecated-bind-and-delegate Change-Id: I32c1fcd33db9af34a3f041e513a6a949c4921351 --- openstack_dashboard/static/js/angular/directives/serialConsole.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openstack_dashboard') 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. -- cgit v1.2.1