r107947 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107946‎ | r107947 | r107948 >
Date:21:55, 3 January 2012
Author:mah
Status:ok
Tags:
Comment:
Fix js error
Modified paths:
  • /trunk/extensions/Collection/js/bookcreator.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Collection/js/bookcreator.js
@@ -179,7 +179,7 @@
180180 return;
181181 }
182182 var $this = $(this);
183 - if ($this.attr('title').indexOf(':') != -1) { // title doesn't contain ":" (simplification!)
 183+ if (!$this.attr('title') || $this.attr('title').indexOf(':') != -1) { // title doesn't contain ":" (simplification!)
184184 return;
185185 }
186186 if ($this.parents('.nopopups').length) {

Status & tagging log