diff --git a/i18n/en-US.json b/i18n/en-US.json index 15bbe85..d499b8c 100644 --- a/i18n/en-US.json +++ b/i18n/en-US.json @@ -82,7 +82,10 @@ "silence": "Silence", "defaultRingback": "Default Ringback", "emptyUploadAlert": "Please select a file to upload", - "fileTooBigAlert": "You can not upload a file with a size exceeding 5MB" + "fileTooBigAlert": "You can not upload a file with a size exceeding 5MB", + "__comment": "UI-1025: Updating media file uploads throughout the UI", + "__version": "3.20_s3", + "audioUploadButton": "Select an audio file" }, "nextAction": { "title": "Next Action", @@ -511,7 +514,10 @@ "dropdownLabel": "Music on Hold:", "silence": "Silence", "emptyUploadAlert": "Please select a file to upload", - "fileTooBigAlert": "You can not upload a file with a size exceeding 5MB" + "fileTooBigAlert": "You can not upload a file with a size exceeding 5MB", + "__comment": "UI-1025: Updating media file uploads throughout the UI", + "__version": "3.20_s3", + "audioUploadButton": "Select an audio file" }, "hotdesk": { "id": "Hotdesk ID", @@ -620,7 +626,10 @@ "line4": "Record your greetings / menu." }, "pressKey": "Press", - "for": "for" + "for": "for", + "__comment": "UI-1025: Updating media file uploads throughout the UI", + "__version": "3.20_s3", + "fileUploadButton": "Choose File" }, "open": "Open", "closed": "Closed", @@ -747,7 +756,10 @@ "silence": "Silence", "default": "Default Music", "emptyUploadAlert": "Please select a file to upload", - "fileTooBigAlert": "You can not upload a file with a size exceeding 5MB" + "fileTooBigAlert": "You can not upload a file with a size exceeding 5MB", + "__comment": "UI-1025: Updating media file uploads throughout the UI", + "__version": "3.20_s3", + "audioUploadButton": "Select an audio file" }, "callerId": { "title": "Company Caller ID", diff --git a/submodules/groups/groups.css b/submodules/groups/groups.css index f1c1267..f8b89de 100644 --- a/submodules/groups/groups.css +++ b/submodules/groups/groups.css @@ -523,12 +523,22 @@ margin: 0; width: 330px; } -.feature-popup-container[data-feature="ringback"] .upload-div button { +.feature-popup-container[data-feature="ringback"] .upload-div button.upload-action { margin-left: 10px; padding-left: 13px; padding-right: 13px; } +.feature-popup-container[data-feature="ringback"] .upload-div .file-upload { + margin: 0; +} +.feature-popup-container[data-feature="ringback"] .upload-div .file-upload > input { + margin: 0; + width: 105px; +} +.feature-popup-container[data-feature="ringback"] .upload-div .file-upload > button { + width: 220px; +} /* Next Action Feature */ .feature-popup-container[data-feature="next_action"] { diff --git a/submodules/groups/groups.js b/submodules/groups/groups.js index 5c0074c..2bbe1eb 100644 --- a/submodules/groups/groups.js +++ b/submodules/groups/groups.js @@ -547,7 +547,8 @@ define(function(require){ groupsRenderRingback: function(data) { var self = this, silenceMediaId = 'silence_stream://300000', - ringGroupNode = data.baseCallflow.flow; + ringGroupNode = data.baseCallflow.flow, + mediaToUpload = undefined; while(ringGroupNode.module !== 'ring_group' && '_' in ringGroupNode.children) { ringGroupNode = ringGroupNode.children['_']; @@ -564,9 +565,8 @@ define(function(require){ switchFeature = featureTemplate.find('.switch').bootstrapSwitch(), popup, closeUploadDiv = function(newMedia) { - var uploadInput = featureTemplate.find('.upload-input'); - uploadInput.wrap('