Skip to content

Commit ca34072

Browse files
committed
2 parents 02582c1 + 5df259a commit ca34072

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Build/Griddly.nuspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
<version></version>
77
<authors>Chris Hynes, Joel Potter</authors>
88
<!--<licenseUrl></licenseUrl>-->
9-
<projectUrl>https://github.com/programcsharp/griddly</projectUrl>
9+
<projectUrl>https://griddly.com</projectUrl>
1010
<iconUrl>https://raw.githubusercontent.com/programcsharp/griddly/master/Griddly/Content/griddly-32.png</iconUrl>
1111
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12-
<description>Pagable sortable MVC enabled grid</description>
12+
<description>Pagable, sortable, MVC enabled grid</description>
1313
<!--<summary></summary>-->
1414
<language>en-US</language>
1515
<dependencies>
@@ -18,4 +18,4 @@
1818
</group>
1919
</dependencies>
2020
</metadata>
21-
</package>
21+
</package>

Griddly/Scripts/griddly.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@
982982
url = button.attr("href");
983983

984984
var selection = {};
985-
if (griddly)
985+
if (griddly.length)
986986
{
987987
selection = griddly.griddly("getSelected", rowIds);
988988

@@ -996,13 +996,13 @@
996996
switch (toggle)
997997
{
998998
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)
10001000
return;
10011001

10021002
return this.ajaxBulk(url, selection, button, griddly);
10031003

10041004
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)
10061006
return;
10071007

10081008
return this.post(url, selection, button, griddly);
@@ -1014,7 +1014,7 @@
10141014
return this.postCriteria(url, griddly.griddly("buildRequest"));
10151015

10161016
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)
10181018
return;
10191019

10201020
return this.ajax(url, selection, button, griddly);

0 commit comments

Comments
 (0)