Index: main/trunk/greenstone3/web/interfaces/default/js/document_scripts.js
===================================================================
--- main/trunk/greenstone3/web/interfaces/default/js/document_scripts.js (revision 26281)
+++ main/trunk/greenstone3/web/interfaces/default/js/document_scripts.js (revision 26282)
@@ -1371,5 +1371,5 @@
var _navDiv = $("
", {style:"height:2em;"});
var _nextButton = $("
", {src:gs.imageURLs.next, style:"float:right; cursor:pointer;"});
- var _prevButton = $("
", {src:gs.imageURLs.prev, style:"float:left; cursor:pointer;"});
+ var _prevButton = $("
", {src:gs.imageURLs.prev, style:"float:left; cursor:pointer; display:none;"});
var _clearDiv = $("
", {style:"clear:both;"});
var _currentIndex = 0;
@@ -1386,4 +1386,9 @@
}
+ if(_images.length < 2)
+ {
+ _nextButton.css("display", "none");
+ }
+
_imageDiv.append(_images[0]);
@@ -1395,4 +1400,10 @@
if((_currentIndex + 1) < _images.length)
{
+ _prevButton.css("display", "");
+ if(_currentIndex + 1 == _images.length - 1)
+ {
+ _nextButton.css("display", "none");
+ }
+
_imageDiv.fadeOut(1000, function()
{
@@ -1420,4 +1431,10 @@
if((_currentIndex - 1) >= 0)
{
+ _nextButton.css("display", "");
+ if(_currentIndex - 1 == 0)
+ {
+ _prevButton.css("display", "none");
+ }
+
_imageDiv.fadeOut(1000, function()
{