]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
WEBUI: fix the cancel button (edit/add), fixes #3379
authorJaroslav Kysela <perex@perex.cz>
Fri, 4 Dec 2015 09:21:51 +0000 (10:21 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 4 Dec 2015 09:21:51 +0000 (10:21 +0100)
src/webui/static/app/idnode.js

index d538a05bcbe0b5130829986651bccc0accf1fcc4..1985de751f39e11c0a0ebe849019e5caf37d98db 100644 (file)
@@ -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) {