aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPTableContent.m8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index 1ae1ada6..0d9a5273 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -1683,20 +1683,22 @@
#pragma mark Pagination
/**
- * Move the pagination backwards or forwards one page
+ * Move the pagination backwards or forwards one page, or update
+ * the page to respect the submitted field.
*/
- (IBAction) navigatePaginationFromButton:(id)sender
{
if (![self saveRowOnDeselect]) return;
+
if (sender == paginationPreviousButton) {
if (contentPage <= 1) return;
[paginationPageField setIntegerValue:(contentPage - 1)];
- [self filterTable:self];
} else if (sender == paginationNextButton) {
if ((NSInteger)contentPage * [prefs integerForKey:SPLimitResultsValue] >= maxNumRows) return;
[paginationPageField setIntegerValue:(contentPage + 1)];
- [self filterTable:self];
}
+
+ [self filterTable:self];
}
/**