includes/clientside/static/paginate.js
changeset 387 92664d2efab8
parent 359 e0787bb6285b
child 420 301f546688d1
equal deleted inserted replaced
382:2ccb55995aef 387:92664d2efab8
   282   div.style.margin = '1px 0 0 2px';
   282   div.style.margin = '1px 0 0 2px';
   283   var vtmp = 'input_' + Math.floor(Math.random() * 1000000);
   283   var vtmp = 'input_' + Math.floor(Math.random() * 1000000);
   284   var regex = new RegExp('\"', 'g');
   284   var regex = new RegExp('\"', 'g');
   285   var submit_target = ( typeof(url_string) == 'object' ) ? ( toJSONString(url_string) ).replace(regex, '\'') : 'unescape(\'' + escape(url_string) + '\')';
   285   var submit_target = ( typeof(url_string) == 'object' ) ? ( toJSONString(url_string) ).replace(regex, '\'') : 'unescape(\'' + escape(url_string) + '\')';
   286   var onclick = 'paginator_submit(this, '+num_pages+', '+perpage+', '+submit_target+'); return false;';
   286   var onclick = 'paginator_submit(this, '+num_pages+', '+perpage+', '+submit_target+'); return false;';
   287   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+'" />&emsp;<a href="#" onclick="'+onclick+'" style="font-size: 14pt; text-decoration: none;">&raquo;</a>&emsp;<a href="#" onclick="fly_out_top(this.parentNode, false, true); return false;" style="font-size: 14pt; text-decoration: none;">&times;</a>';
   287   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+'" />&emsp;<a href="#" onclick="'+onclick+'" style="font-size: 14pt; text-decoration: none;">&raquo;</a>&emsp;<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;">&times;</a>';
   288   
   288   
   289   var body = document.getElementsByTagName('body')[0];
   289   var body = document.getElementsByTagName('body')[0];
   290   domObjChangeOpac(0, div);
   290   domObjChangeOpac(0, div);
   291   
   291   
   292   body.appendChild(div);
   292   body.appendChild(div);