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 = true; |
| 10 | +var createBookMode = false; |
11 | 11 | var collectionArticleList = []; |
12 | 12 | var collectionPopup; |
13 | 13 | |
— | — | @@ -43,6 +43,7 @@ |
44 | 44 | if (ns != 0) { |
45 | 45 | stripped_title = pg.current.article.stripNamespace(); |
46 | 46 | } |
| 47 | + stripped_title = stripped_title.replace(/'/, "\\'"); |
47 | 48 | var popupContent = '<a onclick="'; |
48 | 49 | if (isInCollection(title)) { |
49 | 50 | popupContent += 'popupCollectionCall(\'RemoveArticle\', [' + ns + ', \'' + stripped_title + '\', 0]); return false;'; |