Skip to content

Commit 7fef97d

Browse files
committed
Fix bookcreator not displaying the 'Add this page' popup on namespaced pages
1 parent 2254771 commit 7fef97d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/bookcreator.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,12 @@ $( function () {
195195
return;
196196
}
197197
var $this = $( this );
198+
//why was this check implemented? we will never know. there is no reasoning in this, since the extension could be running in different namespaces
198199
// title doesn't contain ":" (simplification!)
199-
if ( !$this.attr( 'title' ) || $this.attr( 'title' ).indexOf( ':' ) !== -1 ) {
200+
/*if ( !$this.attr( 'title' ) || $this.attr( 'title' ).indexOf( ':' ) !== -1 ) {
200201
return;
201-
}
202+
}*/
203+
202204
if ( $this.parents( '.nopopups' ).length ) {
203205
return;
204206
}

0 commit comments

Comments
 (0)