Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Commit

Permalink
new: add "new" appearance type to media controls.
Browse files Browse the repository at this point in the history
  • Loading branch information
issa-tseng committed Mar 6, 2019
1 parent 73cec52 commit 5e9bbdd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions public/javascripts/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,7 @@
type: 'enum',
description: 'Type of media to upload.',
options: [ 'Image',
'New Image',
'Selfie',
'Annotate',
'Draw',
Expand Down
12 changes: 7 additions & 5 deletions public/javascripts/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ var dataNS = odkmaker.namespace.load('odkmaker.data');
};
var mediaTypes = {
'Image': 'image/*',
'New Image': 'image/*',
'Selfie': 'image/*',
'Annotate': 'image/*',
'Draw': 'image/*',
Expand All @@ -166,11 +167,12 @@ var dataNS = odkmaker.namespace.load('odkmaker.data');
'Selfie Video': 'video/*'
};
var mediaAppearances = {
'Signature': 'signature',
'Annotate': 'annotate',
'Draw': 'draw',
'Selfie': 'new-front',
'Selfie Video': 'new-front'
'New Image': 'new',
'Signature': 'signature',
'Annotate': 'annotate',
'Draw': 'draw',
'Selfie': 'new-front',
'Selfie Video': 'new-front'
};
var addTranslation = function(obj, itextPath, translations)
{
Expand Down

0 comments on commit 5e9bbdd

Please sign in to comment.