Merge branch 'master' of git@github.com:fnp/redakcja
authorLukasz Anwajler <lukasz@anwajler.com>
Thu, 5 Aug 2010 11:31:51 +0000 (06:31 -0500)
committerLukasz Anwajler <lukasz@anwajler.com>
Thu, 5 Aug 2010 11:31:51 +0000 (06:31 -0500)
1  2 
apps/wiki/templates/wiki/tabs/gallery_view.html
redakcja/static/js/wiki/view_gallery.js

@@@ -1,6 -1,4 +1,4 @@@
  {% load i18n %}
- <div class="vsplitbar" title="{% trans "Click to open/close gallery" %}">
- </div>
  <div id="side-gallery">
      <!-- gallery toolbar -->
      <div class="toolbar">
@@@ -9,7 -7,7 +7,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" %}"/>
  
      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]);
  
          $.wiki.Perspective.prototype.onEnter.call(this);
  
+         $('.vsplitbar').not('.active').trigger('click');
          this.doc.refreshGallery({
              success: function(doc, data){
                  self.$image.show();