File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 982
982
url = button . attr ( "href" ) ;
983
983
984
984
var selection = { } ;
985
- if ( griddly )
985
+ if ( griddly . length )
986
986
{
987
987
selection = griddly . griddly ( "getSelected" , rowIds ) ;
988
988
996
996
switch ( toggle )
997
997
{
998
998
case "ajaxbulk" :
999
- if ( selection [ Object . keys ( selection ) [ 0 ] ] . length == 0 && enableOnSelection )
999
+ if ( Object . keys ( selection ) . length && selection [ Object . keys ( selection ) [ 0 ] ] . length == 0 && enableOnSelection )
1000
1000
return ;
1001
1001
1002
1002
return this . ajaxBulk ( url , selection , button , griddly ) ;
1003
1003
1004
1004
case "post" :
1005
- if ( selection [ Object . keys ( selection ) [ 0 ] ] . length == 0 && enableOnSelection )
1005
+ if ( Object . keys ( selection ) . length && selection [ Object . keys ( selection ) [ 0 ] ] . length == 0 && enableOnSelection )
1006
1006
return ;
1007
1007
1008
1008
return this . post ( url , selection , button , griddly ) ;
1014
1014
return this . postCriteria ( url , griddly . griddly ( "buildRequest" ) ) ;
1015
1015
1016
1016
case "ajax" :
1017
- if ( selection [ Object . keys ( selection ) [ 0 ] ] . length == 0 && enableOnSelection )
1017
+ if ( Object . keys ( selection ) . length && selection [ Object . keys ( selection ) [ 0 ] ] . length == 0 && enableOnSelection )
1018
1018
return ;
1019
1019
1020
1020
return this . ajax ( url , selection , button , griddly ) ;
You can’t perform that action at this time.
0 commit comments