diff -r 44302dd20d62 -r 94c1ff984286 includes/clientside/static/paginate.js
--- a/includes/clientside/static/paginate.js Mon Apr 13 17:28:24 2009 -0400
+++ b/includes/clientside/static/paginate.js Tue Apr 14 21:02:13 2009 -0400
@@ -268,7 +268,7 @@
}
}
-window.paginator_goto = function(parentobj, this_page, num_pages, perpage, url_string)
+window.paginator_goto = function(parentobj, this_page, num_pages, perpage, additive, url_string)
{
load_component('flyin');
@@ -286,7 +286,7 @@
var vtmp = 'input_' + Math.floor(Math.random() * 1000000);
var regex = new RegExp('\"', 'g');
var submit_target = ( typeof(url_string) == 'object' ) ? ( toJSONString(url_string) ).replace(regex, '\'') : 'unescape(\'' + escape(url_string) + '\')';
- var onclick = 'paginator_submit(this, '+num_pages+', '+perpage+', '+submit_target+'); return false;';
+ var onclick = 'paginator_submit(this, '+num_pages+', '+perpage+', '+additive+', '+submit_target+'); return false;';
div.innerHTML = $lang.get('paginate_lbl_goto_page') + '
» ×';
var body = document.getElementsByTagName('body')[0];
@@ -315,11 +315,11 @@
div.style.left = left_pos + 'px';
}
-window.paginator_submit = function(obj, max, perpage, formatstring)
+window.paginator_submit = function(obj, max, perpage, additive, formatstring)
{
var userinput = obj.previousSibling.previousSibling.value;
userinput = parseInt(userinput);
- var offset = ( userinput - 1 ) * perpage;
+ var offset = (( userinput - 1 ) * perpage) + additive;
if ( userinput > max || isNaN(userinput) || userinput < 1 )
{
load_component(['messagebox', 'fadefilter', 'flyin']);