Index: trunk/extensions/Collection/collection/popup.js |
— | — | @@ -6,7 +6,7 @@ |
7 | 7 | document.write('<script type="text/javascript" src="' + wgCollectionNavPopupJSURL + '"></script>'); |
8 | 8 | importStylesheetURI(wgCollectionNavPopupCSSURL); |
9 | 9 | |
10 | | -var createBookMode = false; |
| 10 | +var createBookMode = null; |
11 | 11 | var collectionArticleList = []; |
12 | 12 | var collectionPopup; |
13 | 13 | |
— | — | @@ -110,7 +110,7 @@ |
111 | 111 | |
112 | 112 | // stop popups |
113 | 113 | function stopCollectionPopups() { |
114 | | - if (createBookMode) { |
| 114 | + if (createBookMode != false) { |
115 | 115 | var bodyDiv = document.getElementById("bodyContent"); |
116 | 116 | var links = bodyDiv.getElementsByTagName('a'); |
117 | 117 | for (var i = 0; i < links.length; i++) { |
— | — | @@ -123,7 +123,7 @@ |
124 | 124 | |
125 | 125 | // start popups |
126 | 126 | function startCollectionPopups() { |
127 | | - if (!createBookMode) { |
| 127 | + if (createBookMode != true) { |
128 | 128 | var bodyDiv = document.getElementById("bodyContent"); |
129 | 129 | var links = bodyDiv.getElementsByTagName('a'); |
130 | 130 | for (var i = 0; i < links.length; i++) { |