[BUGFIX] Unbind load event after page tree refresh 70/56170/3
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Thu, 15 Mar 2018 14:34:22 +0000 (15:34 +0100)
committerSusanne Moog <susanne.moog@typo3.org>
Thu, 15 Mar 2018 15:02:11 +0000 (16:02 +0100)
commit031dd2c77de1a285ba619cb63075174656c95b88
treec7318fbaca7c249f2a87ab9b7ced785ec5dfea46
parent3f00395749491aa7a6b6a59fb661bed0c55e5e1d
[BUGFIX] Unbind load event after page tree refresh

When an action in the page tree is called via the context menu that
enforces a reload of the page tree, the tree is reloaded every time once
the content container is refreshed.

Change the event binding to use `one` to unbind automatically once the
tree was reloaded.

Resolves: #84294
Related: #82970
Releases: 8.7
Change-Id: Ife69dfbceb602a0d610397f313ea539fd9b93711
Reviewed-on: https://review.typo3.org/56170
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benjamin Kluge <b.kluge@neusta.de>
Tested-by: Benjamin Kluge <b.kluge@neusta.de>
typo3/sysext/backend/Resources/Public/JavaScript/ContextMenuActions.js