• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/prebuilt/WW/www/script/

Lines Matching defs:paging

17         // TODO: add options for advanced paging template

28 // TEST: allow client-side paging (return all data initially, set paging:{pageSize:#}, and ensure maxCacheBytes is > 0)
38 // TEST: use pageSize parameter as threshold to switch from no paging to paging based on results
40 // TEST: don't require all paging subprops (let default override)
42 // TEST: IE7: when two non-paging ffbs right after each other, with only a clear-both div between them, the bottom ffb jumps down when selecting a value, then jumps back up on mouseover
46 // TEST: when entering a number in the paging input box, the results are displayed twice
55 pageSize = o.paging && o.paging.pageSize ? o.paging.pageSize : 0,
177 var $paging = $('<div></div>').appendTo($ctr);
228 if (o.paging) $('#' + $div.attr('id') + 'n').click();
234 if (o.paging) $('#' + $div.attr('id') + 'p').click();
277 // Handle client-side paging, if any paging configuration options were specified
278 if (isNaN(totalResults) && o.paging) {
279 if (o.maxCacheBytes <= 0) alert('The "maxCacheBytes" configuration option must be greater\nthan zero when implementing client-side paging.');
346 if (o.paging) {
355 $paging.html('').removeClass(o.paging.cssClass); // clear out for threshold scenarios
356 if (o.showResults && o.paging && totalResults > pageSize) {
404 $paging.addClass(o.paging.cssClass);
416 $link.clone(true).attr('id', divId + 'f').attr('page', 1).html(first).appendTo($paging);
417 $link.clone(true).attr('id', divId + 'p').attr('page', currentPage - 1).html(prev).appendTo($paging);
420 $span.clone(true).html(first).appendTo($paging);
421 $span.clone(true).html(prev).appendTo($paging);
424 if (o.paging.style === 'links') {
425 var maxPageLinks = o.paging.maxPageLinks;
430 $span.clone(true).html(currentPage).appendTo($paging);
433 $link.clone(true).attr('page', i).html(i).appendTo($paging);
446 $link.clone(true).attr('page', startPage - 1).html(more).appendTo($paging);
454 $span.clone(true).html(i).appendTo($paging);
457 $link.clone(true).attr('page', i).html(i).appendTo($paging);
462 $link.clone(true).attr('page', i).html(more).appendTo($paging);
466 else if (o.paging.style === 'input') {
476 .appendTo($paging);
480 $link.clone(true).attr('id', divId + 'n').attr('page', +currentPage + 1).html(next).appendTo($paging);
481 $link.clone(true).attr('id', divId + 'l').attr('page', totalPages).html(last).appendTo($paging);
484 $span.clone(true).html(next).appendTo($paging);
485 $span.clone(true).html(last).appendTo($paging);
490 if (o.paging.showSummary) {
498 var html = o.paging.summaryTemplate.applyTemplate(summaryData);
499 $('<br/>').appendTo($paging);
501 .addClass(o.paging.summaryClass)
503 .appendTo($paging);
754 alert('Invalid JSON property ' + ex + ' found when trying to apply resultTemplate or paging.summaryTemplate.\nPlease check your spelling and try again.');
919 o.paging = (options.paging || options.paging == null) ? $.extend({}, defaults.paging, options.paging) : false;
921 for (var prop in o.paging) {
922 if (defaults.paging[prop] === undefined) throw ('Invalid option specified: ' + prop + '\nPlease check your spelling and try again.');
971 totalProperty: 'total', // json property in response that references the total results (for paging)
972 maxVisibleRows: 0, // default is 0, which means it is ignored. use either this, or paging.pageSize
973 paging: {
975 cssClass: 'paging', // prefix with containerClass (e.g. .ffb .paging)
976 pageSize: 10, // acts as a threshold. if <= pageSize results, paging doesn't appear