From: Lukasz Anwajler <lukasz@anwajler.com>
Date: Thu, 5 Aug 2010 11:31:01 +0000 (-0500)
Subject: Sexy images in gallery count.
X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/42a46397a91a4bd24211bb98516a99c567247bf8

Sexy images in gallery count.
---

diff --git a/apps/wiki/templates/wiki/tabs/gallery_view.html b/apps/wiki/templates/wiki/tabs/gallery_view.html
index 47f6af26..8f18372b 100644
--- a/apps/wiki/templates/wiki/tabs/gallery_view.html
+++ b/apps/wiki/templates/wiki/tabs/gallery_view.html
@@ -9,7 +9,7 @@
             	alt="{% trans "Previous" %}" title="{% trans "Previous" %}"/>
         </button>
         <input type="text" size="3" maxlength="3" value="0" class="page-number" />
-        <input type="text" id="imagesCount" disabled="disabled" value="0" maxlength="3" size="3">
+        <span id="imagesCount" id="">/1</span>
         <button class="next-page">
             <img src="{{STATIC_URL}}icons/go-next.png"
             	alt="{% trans "Next" %}" title="{% trans "Next" %}"/>
diff --git a/redakcja/static/js/wiki/view_gallery.js b/redakcja/static/js/wiki/view_gallery.js
index c487d462..86793488 100644
--- a/redakcja/static/js/wiki/view_gallery.js
+++ b/redakcja/static/js/wiki/view_gallery.js
@@ -139,7 +139,7 @@
 
     ScanGalleryPerspective.prototype.setPage = function(newPage){
         newPage = normalizeNumber(newPage, this.doc.galleryImages.length);
-        $('#imagesCount').val(this.doc.galleryImages.length);
+        $('#imagesCount').html("/"+this.doc.galleryImages.length);
         this.$numberInput.val(newPage);
 		this.config().page = newPage;
         $('.gallery-image img', this.$element).attr('src', this.doc.galleryImages[newPage - 1]);