includes/clientside/static/paginate.js
changeset 875 0c3dd4c166c0
parent 789 4a8fc835ba02
child 909 94c1ff984286
equal deleted inserted replaced
874:d67f43d93f30 875:0c3dd4c166c0
   320   var userinput = obj.previousSibling.previousSibling.value;
   320   var userinput = obj.previousSibling.previousSibling.value;
   321   userinput = parseInt(userinput);
   321   userinput = parseInt(userinput);
   322   var offset = ( userinput - 1 ) * perpage;
   322   var offset = ( userinput - 1 ) * perpage;
   323   if ( userinput > max || isNaN(userinput) || userinput < 1 )
   323   if ( userinput > max || isNaN(userinput) || userinput < 1 )
   324   {
   324   {
       
   325     load_component(['messagebox', 'fadefilter', 'flyin']);
   325     new MessageBox(MB_OK|MB_ICONSTOP, $lang.get('paginate_err_bad_page_title'), $lang.get('paginate_err_bad_page_body', { max: max }));
   326     new MessageBox(MB_OK|MB_ICONSTOP, $lang.get('paginate_err_bad_page_title'), $lang.get('paginate_err_bad_page_body', { max: max }));
   326     return false;
   327     return false;
   327   }
   328   }
   328   if ( typeof(formatstring) == 'object' )
   329   if ( typeof(formatstring) == 'object' )
   329   {
   330   {