Skip to content

Commit

Permalink
Add page size changed event
Browse files Browse the repository at this point in the history
  • Loading branch information
programcsharp committed Feb 10, 2019
1 parent 7e37561 commit 755973d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Build/CommonAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("3.1.3")]
[assembly: AssemblyFileVersion("3.1.3")]
[assembly: AssemblyVersion("3.2.0")]
[assembly: AssemblyFileVersion("3.2.0")]
//[assembly: AssemblyInformationalVersion("2.5-filters")]
11 changes: 10 additions & 1 deletion Griddly/Scripts/griddly.js
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@
value = 1000;

this.options.pageNumber = Math.floor(this.options.pageNumber * this.options.pageSize / value);
this.options.pageSize = value;
this.pageSize(value);

this.refresh();
}, this));
Expand Down Expand Up @@ -1854,7 +1854,16 @@

pageSize: function (pageSize)
{
var originalSize = this.options.pageSize;

this.options.pageSize = pageSize;

this.triggerOrQueue(this.$element, "pagesizechanged.griddly",
{
originalSize: originalSize,
pageSize: pageSize
});

// TODO: refresh auto?
},

Expand Down

0 comments on commit 755973d

Please sign in to comment.