Looks like the jail.js API has changed, and that data-href has been substituted with data-src. This breaks the Jail module when using the latest version of jail.js.

To fix the problem, line 195 of jail.module should be:

  $output = '<img class="lazy" data-src="' . $url . '" src="' . $placeholder . '"/>';

Comments

svajlenka’s picture

StatusFileSize
new2.04 KB

Jail 0.9.9 is only available via the author's github repository. That syntax may change further once it is considered stable enough to replace the 0.9.5 download link on the jail website. Since there is no simple way to ascertain the version of jail installed, I propose that either a separate branch be created for the new version of 0.9.9 or in the configuration screen for this module the user may select what version of jail they have installed (See patch for implementation).

svajlenka’s picture

Status: Active » Needs review

Forgot to set status

svajlenka’s picture

Assigned: Unassigned » svajlenka
Status: Needs review » Closed (fixed)

Applied patch to 1.x branch. Hooray for being a co-maintainer!