I'm not happy with this; it works, but it seems a bit of a kludge.
Need to think about how to refactor this to properly listen-notify with multiple pagers.
<div id="details" class="tooltip" onclick="hideDetails();">(No information available)</div>
+ <div class="pager">
+ <input id="bottom_back" onclick="onPrev();" value="Back" type="button"/>
+ <input id="bottom_forward" onclick="onNext();" value="Forward" type="button"/>
+ <input id="bottom_slider" onchange="onSlide(this.value);" min="0" max="0" type="range" value="0"/>
+ Showing <span id="bottom_first">0</span> through <span id="bottom_last">0</span> out of <span id="bottom_count">0</span> matching books.
+ </div>
+
<script src="modernizr-custom.js"></script>
<script src="lib.min.js"></script>
</body>
Browser.getElementById('books').innerHTML = html;
Browser.getElementById('first').innerHTML = (BooksModel.first + 1);
+ Browser.getElementById('bottom_first').innerHTML = (BooksModel.first + 1);
Browser.getElementById('last').innerHTML = (BooksModel.last + 1);
+ Browser.getElementById('bottom_last').innerHTML = (BooksModel.last + 1);
Browser.getElementById('count').innerHTML = BooksModel.count;
+ Browser.getElementById('bottom_count').innerHTML = BooksModel.count;
};
// ===============
my.notify = function() {
Browser.getElementById('slider').value = booksModel.first;
+ Browser.getElementById('bottom_slider').value = booksModel.first;
};
return my;
var elem = Browser.getElementById('slider');
elem.max = booksModel.count;
+ elem = Browser.getElementById('bottom_slider');
+ elem.max = booksModel.count;
PagingController.adjustPos(0);
})