Changeset 26282
- Timestamp:
- 2012-10-04T15:19:19+13:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/document_scripts.js
r26226 r26282 1371 1371 var _navDiv = $("<div>", {style:"height:2em;"}); 1372 1372 var _nextButton = $("<img>", {src:gs.imageURLs.next, style:"float:right; cursor:pointer;"}); 1373 var _prevButton = $("<img>", {src:gs.imageURLs.prev, style:"float:left; cursor:pointer; "});1373 var _prevButton = $("<img>", {src:gs.imageURLs.prev, style:"float:left; cursor:pointer; display:none;"}); 1374 1374 var _clearDiv = $("<div>", {style:"clear:both;"}); 1375 1375 var _currentIndex = 0; … … 1386 1386 } 1387 1387 1388 if(_images.length < 2) 1389 { 1390 _nextButton.css("display", "none"); 1391 } 1392 1388 1393 _imageDiv.append(_images[0]); 1389 1394 … … 1395 1400 if((_currentIndex + 1) < _images.length) 1396 1401 { 1402 _prevButton.css("display", ""); 1403 if(_currentIndex + 1 == _images.length - 1) 1404 { 1405 _nextButton.css("display", "none"); 1406 } 1407 1397 1408 _imageDiv.fadeOut(1000, function() 1398 1409 { … … 1420 1431 if((_currentIndex - 1) >= 0) 1421 1432 { 1433 _nextButton.css("display", ""); 1434 if(_currentIndex - 1 == 0) 1435 { 1436 _prevButton.css("display", "none"); 1437 } 1438 1422 1439 _imageDiv.fadeOut(1000, function() 1423 1440 {
Note:
See TracChangeset
for help on using the changeset viewer.