Update of /var/cvs/applications/searchrelate/templates
In directory james.mmbase.org:/tmp/cvs-serv30224
Modified Files:
Searcher.js.jsp
Log Message:
See also: http://cvs.mmbase.org/viewcvs/applications/searchrelate/templates
Index: Searcher.js.jsp
===================================================================
RCS file: /var/cvs/applications/searchrelate/templates/Searcher.js.jsp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- Searcher.js.jsp 22 Apr 2008 08:11:07 -0000 1.17
+++ Searcher.js.jsp 23 Apr 2008 07:24:53 -0000 1.18
@@ -11,7 +11,7 @@
*
* @author Michiel Meeuwissen
- * @version $Id: Searcher.js.jsp,v 1.17 2008/04/22 08:11:07 michiel Exp $
+ * @version $Id: Searcher.js.jsp,v 1.18 2008/04/23 07:24:53 michiel Exp $
*/
$(document).ready(function(){
@@ -443,7 +443,7 @@
var span = $(this.div).find("caption span.size")[0];
if (size == null) {
if (this.totalsize == -1) {
- this.totalsize = span.textContent;
+ this.totalsize = parseInt(span.textContent);
}
} else {
span.textContent = size;
@@ -452,26 +452,26 @@
return this.totalsize;
}
-MMBaseSearcher.prototype.last= function(size) {
+MMBaseSearcher.prototype.lastIndex = function(size) {
var span = $(this.div).find("caption span.last")[0];
if (size == null) {
if (this.last == -1) {
- this.last = span.textContent;
+ this.last = parseInt(span.textContent);
}
} else {
span.textContent = size;
- this.last= size;
+ this.last = size;
}
return this.last;
}
MMBaseSearcher.prototype.inc = function() {
- this.totalSize(this.totalSize() + 1);
- this.foundSize(this.foundSize() + 1);
+ this.totalSize(1 + this.totalSize());
+ this.lastIndex(1 + this.lastIndex());
}
MMBaseSearcher.prototype.dec = function() {
- this.totalSize(this.totalSize() - 1);
- this.foundSize(this.foundSize() - 1);
+ this.totalSize(-1 + this.totalSize());
+ this.lastIndex(-1 + this.lastIndex());
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs