From: Jaroslav Kysela Date: Fri, 4 Dec 2015 09:21:51 +0000 (+0100) Subject: WEBUI: fix the cancel button (edit/add), fixes #3379 X-Git-Tag: v4.2.1~1375 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=888b4f5bed103433b8447ecd1fe1aae42c1765d6;p=thirdparty%2Ftvheadend.git WEBUI: fix the cancel button (edit/add), fixes #3379 --- diff --git a/src/webui/static/app/idnode.js b/src/webui/static/app/idnode.js index d538a05bc..1985de751 100644 --- a/src/webui/static/app/idnode.js +++ b/src/webui/static/app/idnode.js @@ -1695,12 +1695,11 @@ tvheadend.idnode_grid = function(panel, conf) params: params, success: function(d) { d = json_decode(d); - var w = null; var c = { - win: w, - cancel: function() { - w.close(); - w = null; + win: null, + cancel: function(conf) { + conf.win.close(); + conf.win = null; } }; if (uuids.length > 1) {