Mercurial > hg > digilib
comparison client/digitallibrary/jquery/jquery.digilib.js @ 638:904a722c2149 jquery
small improvement
author | robcast |
---|---|
date | Wed, 19 Jan 2011 20:41:25 +0100 |
parents | 71cc855e2e4b |
children | aa54642d666d 3f23600c96e5 |
comparison
equal
deleted
inserted
replaced
637:71cc855e2e4b | 638:904a722c2149 |
---|---|
599 data.$aboutDiv = $aboutDiv; | 599 data.$aboutDiv = $aboutDiv; |
600 }; | 600 }; |
601 | 601 |
602 // shows some window e.g. 'about' (toggle visibility if show is null) | 602 // shows some window e.g. 'about' (toggle visibility if show is null) |
603 var showDiv = function (isVisible, $div, show) { | 603 var showDiv = function (isVisible, $div, show) { |
604 if (typeof(show) !== 'number') { | 604 if (show == null) { |
605 // toggle visibility | 605 // toggle visibility |
606 isVisible = !isVisible; | 606 isVisible = !isVisible; |
607 } else { | 607 } else { |
608 // set visibility | 608 // set visibility |
609 isVisible = show; | 609 isVisible = show; |