<div id="side-gallery">
<!-- gallery toolbar -->
<div class="toolbar">
+ <button class="start-page">
+ <img src="{{STATIC_URL}}icons/revert.png"
+ alt="{% trans "Start page" %}" title="{% trans "Start page" %}"/>
+ </button>
<button class="previous-page">
<img src="{{STATIC_URL}}icons/go-previous.png"
alt="{% trans "Previous" %}" title="{% trans "Previous" %}"/>
self.setPage($(this).val());
});
+ $('.start-page', this.$element).click(function(){
+ self.setPage(CurrentDocument.galleryStart);
+ });
+
$('.previous-page', this.$element).click(function(){
self.setPage(parseInt(self.$numberInput.val(),10) - 1);
});