]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: DVR - fix the wrong question for some buttons
authorJaroslav Kysela <perex@perex.cz>
Fri, 22 Dec 2017 07:33:09 +0000 (08:33 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 22 Dec 2017 07:33:09 +0000 (08:33 +0100)
src/webui/static/app/dvr.js

index bd1936e725e419bf94446e1762cbd021748c2470..ef847bfad41828721e875a64d53bf1e9a81c351c 100644 (file)
@@ -265,16 +265,21 @@ tvheadend.dvrButtonFcn = function(store, select, _url, q) {
         var uuids = [];
         for (var i = 0; i < r.length; i++)
             uuids.push(r[i].id);
-        tvheadend.AjaxConfirm({
+        var c = {
             url: _url,
             params: {
                 uuid: Ext.encode(uuids)
             },
             success: function(d) {
                 store.reload();
-            },
-            question: q,
-        });
+            }
+        };
+        if (q) {
+            c.question = q;
+            tvheadend.AjaxConfirm(c);
+        } else {
+            tvheadend.Ajax(c);
+        }
     }
 }