webglade

JavaScript library to dynamically create XUL GUI from Glade XML files
git clone https://logand.com/git/webglade.git/
Log | Files | Refs | README | LICENSE

SearchHistory.js (916B)


      1 /**
      2 *
      3 * 
      4 *
      5 * @FileName: SearchHistory.js
      6 * @$LastChangedDate: 2004-06-26 13:51:10 +0200 (Sat, 26 Jun 2004) $
      7 * @Author: Fabio Serra AKA Faser - faser@faser.net
      8 * @Copyright: Fabio Serra
      9 * @Licenze: MPL 1.1
     10 *
     11 */
     12 
     13 function SearchHistory() {
     14 	this.isValid = false;
     15 	this.totalResults = 0;
     16 	this.totalPages = 0;
     17 	this.recordRetrieved = 0;
     18 	this.lastPage = 0;
     19 	this.lastURL = "";
     20 }
     21 
     22 SearchHistory.prototype.getPagesAvailable = function() {
     23 	var pagesAvailable = this.totalPages - this.lastPage;
     24 	return pagesAvailable;
     25 }
     26 
     27 
     28 /*
     29 SearchHistory.prototype.getProductRetrieved = function() {
     30 	if(this.recordRetrieved != false) {return this.recordRetrieved;}
     31 	var pages;
     32 	if(this.lastPage > this.totalPages) {
     33 		pages = this.totalPages;
     34 	}else{
     35 		pages = this.lastPage;
     36 	}
     37 	//BUG doesn't work if there are fewer record!!
     38 	var productRetrieved = pages * 10;
     39 	return productRetrieved;
     40 }
     41 */