JS error in Firefox when editing annotation blocks

Bug #1633311 reported by Son Nguyen on 2016-10-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Medium
Unassigned
16.10
Medium
Unassigned
17.04
Medium
Unassigned

Bug Description

Version: master (17.04), 16.10
Platform: any
Browser: Firefox (45)

I got the following error when adding/editing an annotation block in a portfolio page.

SyntaxError: in strict mode code, functions may be declared only at top level or immediately within another function

It works ok on Chrome 53

Son Nguyen (ngson2000) on 2016-10-14
Changed in mahara:
status: New → Confirmed
Robert Lyon (robertl-9) wrote :

Hi Son,

I'm not able to see this error - is it in the logs, firebug console or elsewhere?

Son Nguyen (ngson2000) wrote :

It is in the firebug console. It causes the tinyMCE editor failed to initialize.

Changed in mahara:
status: Confirmed → In Progress
importance: Undecided → Medium
milestone: none → 16.10.1

Reviewed: https://reviews.mahara.org/7201
Committed: https://git.mahara.org/mahara/mahara/commit/1102ea404e17da795c49f7ac89814a40b7f10348
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 1102ea404e17da795c49f7ac89814a40b7f10348
Author: Son Nguyen <email address hidden>
Date: Fri Oct 21 12:04:26 2016 +1300

Bug 1633311: Fix JS syntax error in strict mode code

behatnotneeded

Change-Id: I63aa142c6c84ea6d71ebb80bb88d51a9e97e2e4b

Reviewed: https://reviews.mahara.org/7216
Committed: https://git.mahara.org/mahara/mahara/commit/d59049d671a6114d7af83fb4aca8de58fb5dca24
Submitter: Robert Lyon (<email address hidden>)
Branch: 16.10_STABLE

commit d59049d671a6114d7af83fb4aca8de58fb5dca24
Author: Son Nguyen <email address hidden>
Date: Fri Oct 21 12:04:26 2016 +1300

Bug 1633311: Fix JS syntax error in strict mode code

behatnotneeded

Change-Id: I63aa142c6c84ea6d71ebb80bb88d51a9e97e2e4b
(cherry picked from commit 1102ea404e17da795c49f7ac89814a40b7f10348)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers