]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: status - drop all connections - use new id=all call, fixes #4937
authorJaroslav Kysela <perex@perex.cz>
Wed, 19 Dec 2018 11:39:16 +0000 (12:39 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 19 Dec 2018 11:39:16 +0000 (12:39 +0100)
src/webui/static/app/status.js

index efca006526c9cec62fab0a566b5467706577760e..d65c8de40eff09f5f097a909230be785c98f791c 100644 (file)
@@ -766,11 +766,9 @@ tvheadend.status_conns = function(panel, index) {
                             function(button) {
                                 if (button === 'no')
                                     return;
-                                store.each(function(obj) {
-                                    Ext.Ajax.request({
-                                        url: 'api/connections/cancel',
-                                        params: { id: obj.id }
-                                    });
+                                Ext.Ajax.request({
+                                    url: 'api/connections/cancel',
+                                    params: { id: 'all' }
                                 });
                             }
                     );