Permalink
Browse files

js: fix up case when args are empty in task creation

  • Loading branch information...
1 parent 4b8eb74 commit 73ee4b246887008c3670e77f8eec4e93bdb12d24 Anil Madhavapeddy committed Aug 5, 2009
Showing with 3 additions and 2 deletions.
  1. +3 −2 htdocs/grid.js
View
@@ -299,13 +299,14 @@ Ext.onReady(function(){
secret = {'username': r.get('Username'), 'service': r.get('Service') };
else
secret = null;
- console.log(secret);
+ var args = r.get('Args');
+ if (!args) args=[];
var j = {
plugin: r.get('Plugin'),
mode: r.get('Mode'),
period: period,
silo: r.get('Silo'),
- args: r.get('Args'),
+ args: args,
secret: secret,
};
Ext.Ajax.request( {

0 comments on commit 73ee4b2

Please sign in to comment.