Bug #23198 See Comments

JS error when trying to call $.ee_notice

Version: 3.5.9 Reporter: Low

Tried to trigger a notice in the CP using the $.ee_notice() function, as per the docs (https://docs.expressionengine.com/latest/development/cp_javascript/notification.html), but that triggers this error in the console:

> Uncaught TypeError: Cannot read property ‘lastChild’ of undefined

  • Low, can you send over the file in question? I’d like to take a closer look.

    You can email robin.sowell@expressionengine.com.

    Robin Sowell
    10th August, 2017 at 4:33pm
  • I could trigger the error by being on any page in the CP, opening the browser console, typing in $.ee_notice('Hello World!'); and hitting return.

    Low
    11th August, 2017 at 6:59am
  • I see what you mean.

    After a double check, it looks like the solution would be to use the alert service instead.

    I’ll update the documentation for the next release so that’s clear.

    Robin Sowell
    17th August, 2017 at 4:20pm

You must be signed in to comment on a bug report.

ExpressionEngine News

#eecms, #events, #releases