Skip to content

Commit

Permalink
Add showon attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Quy committed Apr 12, 2018
1 parent b5b9d49 commit 646da06
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion administrator/components/com_media/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
description="COM_MEDIA_FIELD_CHECK_MIME_DESC"
class="btn-group btn-group-yesno"
default="1"
showon="restrict_uploads:1"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
Expand All @@ -79,6 +80,7 @@
description="COM_MEDIA_FIELD_LEGAL_IMAGE_EXTENSIONS_DESC"
size="50"
default="bmp,gif,jpg,png"
showon="restrict_uploads:1"
/>

<field
Expand All @@ -96,6 +98,7 @@
description="COM_MEDIA_FIELD_LEGAL_MIME_TYPES_DESC"
size="50"
default="image/jpeg,image/gif,image/png,image/bmp,application/msword,application/excel,application/pdf,application/powerpoint,text/plain,application/x-zip"
showon="restrict_uploads:1"
/>

<field
Expand All @@ -105,7 +108,8 @@
description="COM_MEDIA_FIELD_ILLEGAL_MIME_TYPES_DESC"
size="50"
default="text/html"
/>
showon="restrict_uploads:1"
/>
</fieldset>

<fieldset
Expand Down

0 comments on commit 646da06

Please sign in to comment.