]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
quick fix for the previous patch
authorJaroslav Kysela <perex@perex.cz>
Tue, 20 Jan 2015 13:50:18 +0000 (14:50 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 20 Jan 2015 13:50:18 +0000 (14:50 +0100)
src/webui/static/app/idnode.js

index dd8ceda4cf6338eb6288813499a914f44dcdcae9..bf13d16957690f84134be6165fedeeba2a24349b 100644 (file)
@@ -1017,7 +1017,7 @@ tvheadend.idnode_grid = function(panel, conf)
         var fields = [];
         var buttons = [];
         var abuttons = {};
-        var plugins = conf.plugins.slice() || [];
+        var plugins = conf.plugins ? conf.plugins.slice() : [];
 
         /* Some copies */
         if (conf.add && !conf.add.titleS && conf.titleS)
@@ -1530,7 +1530,7 @@ tvheadend.idnode_form_grid = function(panel, conf)
         var columns = [];
         var buttons = [];
         var abuttons = {};
-        var plugins = conf.plugins.slice() || [];
+        var plugins = conf.plugins ? conf.plugins.slice() : [];
         var current = null;
         var selectuuid = null;