]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
WEBUI: Add missing encode call to pass ids through ajax correctly
authorJaroslav Kysela <perex@perex.cz>
Wed, 14 Oct 2015 18:21:19 +0000 (20:21 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 14 Oct 2015 18:21:19 +0000 (20:21 +0200)
src/webui/static/app/epg.js
src/webui/static/app/idnode.js

index d590c1989d73b71075a24dec6273499d9331c483..6c651a1877678e7f71868b860af979032f5e8085 100644 (file)
@@ -933,7 +933,7 @@ tvheadend.epg = function() {
                 Ext.Ajax.request({
                     url: 'api/epg/events/load',
                     params: {
-                        eventId: ids
+                        eventId: Ext.encode(ids)
                     },
                     success: function(d) {
                         d = json_decode(d);
index c6d301b91c4d1b102e192264859d8f3713b98919..4e3494d34d9453ed093bfe766f447a5765b197cd 100644 (file)
@@ -1156,7 +1156,7 @@ tvheadend.idnode_grid = function(panel, conf)
                     ids.push(r.id);
             });
             if (ids) {
-                var p = { uuid: ids, grid: 1 };
+                var p = { uuid: Ext.encode(ids), grid: 1 };
                 if (conf.list) p.list = conf.list;
                 Ext.Ajax.request({
                     url: 'api/idnode/load',