From 755973db7582e2dfc0554699cd8d59037bff68eb Mon Sep 17 00:00:00 2001 From: Chris Hynes Date: Sun, 10 Feb 2019 11:39:05 -0700 Subject: [PATCH] Add page size changed event --- Build/CommonAssemblyInfo.cs | 4 ++-- Griddly/Scripts/griddly.js | 11 ++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Build/CommonAssemblyInfo.cs b/Build/CommonAssemblyInfo.cs index a90f051..afdb974 100644 --- a/Build/CommonAssemblyInfo.cs +++ b/Build/CommonAssemblyInfo.cs @@ -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")] diff --git a/Griddly/Scripts/griddly.js b/Griddly/Scripts/griddly.js index 95cb6f9..14d6446 100644 --- a/Griddly/Scripts/griddly.js +++ b/Griddly/Scripts/griddly.js @@ -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)); @@ -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? },