includes/clientside/static/paginate.js
changeset 550 685e839d934e
parent 420 301f546688d1
child 582 a38876c0793c
equal deleted inserted replaced
549:6894cfd94dfb 550:685e839d934e
   317   var userinput = obj.previousSibling.previousSibling.value;
   317   var userinput = obj.previousSibling.previousSibling.value;
   318   userinput = parseInt(userinput);
   318   userinput = parseInt(userinput);
   319   var offset = ( userinput - 1 ) * perpage;
   319   var offset = ( userinput - 1 ) * perpage;
   320   if ( userinput > max || isNaN(userinput) || userinput < 1 )
   320   if ( userinput > max || isNaN(userinput) || userinput < 1 )
   321   {
   321   {
   322     new messagebox(MB_OK|MB_ICONSTOP, $lang.get('paginate_err_bad_page_title'), $lang.get('paginate_err_bad_page_body', { max: max }));
   322     new MessageBox(MB_OK|MB_ICONSTOP, $lang.get('paginate_err_bad_page_title'), $lang.get('paginate_err_bad_page_body', { max: max }));
   323     return false;
   323     return false;
   324   }
   324   }
   325   if ( typeof(formatstring) == 'object' )
   325   if ( typeof(formatstring) == 'object' )
   326   {
   326   {
   327     fly_out_top(obj.parentNode, false, true);
   327     fly_out_top(obj.parentNode, false, true);