--- 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') + '<br /><input type="text" size="2" style="padding: 1px; font-size: 8pt;" value="'+(parseInt(this_page)+1)+'" id="'+vtmp+'" /> <a href="#" onclick="'+onclick+'" style="font-size: 14pt; text-decoration: none;">»</a> <a href="#" onclick="var _pn = this.parentNode; setTimeout(function() { _pn.parentNode.removeChild(_pn); }, 2000); fly_out_top(this.parentNode, false, true); return false;" style="font-size: 14pt; text-decoration: none;">×</a>';
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']);