[BUGFIX] Hide "Add media by URL" if maxitems count is reached 49/44649/2
authorNicole Cordes <typo3@cordes.co>
Mon, 9 Nov 2015 22:48:12 +0000 (23:48 +0100)
committerBenni Mack <benni@typo3.org>
Tue, 10 Nov 2015 06:21:10 +0000 (07:21 +0100)
commitf7058fdb8cbb7c1e3c34b0bff1474b0ea14ab4e0
tree477062e0c8fd6fa0a9664ca18b57e4bfa309312b
parentad295866fb83585e5835445fdb205f379c0ab2c4
[BUGFIX] Hide "Add media by URL" if maxitems count is reached

If you have a reference field and the maxitems count is reached,
the buttons for "Add media file" and "Select & upload files" are hidden
but the button to add a media url still remains.

This patch adds needed class and Javascript to hide the button as well.

Resolves: #70762
Releases: master
Change-Id: I237ca08990df25c411b533dd68fb2f2944678ae8
Reviewed-on: https://review.typo3.org/44649
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/backend/Classes/Form/Container/InlineControlContainer.php
typo3/sysext/backend/Resources/Public/JavaScript/jsfunc.inline.js