File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 6
6
<version ></version >
7
7
<authors >Chris Hynes, Joel Potter</authors >
8
8
<!-- <licenseUrl></licenseUrl>-->
9
- <projectUrl >https://github .com/programcsharp/griddly </projectUrl >
9
+ <projectUrl >https://griddly .com</projectUrl >
10
10
<iconUrl >https://raw.githubusercontent.com/programcsharp/griddly/master/Griddly/Content/griddly-32.png</iconUrl >
11
11
<requireLicenseAcceptance >false</requireLicenseAcceptance >
12
- <description >Pagable sortable MVC enabled grid</description >
12
+ <description >Pagable, sortable, MVC enabled grid</description >
13
13
<!-- <summary></summary>-->
14
14
<language >en-US</language >
15
15
<dependencies >
18
18
</group >
19
19
</dependencies >
20
20
</metadata >
21
- </package >
21
+ </package >
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