Skip to content

TagSpaces is an offline, open source, document manager with tagging support

audio recorder - update 0.1.3

kristiyanddd7980e25df0e
diff --git a/data/js/audiorecorder.ui.js b/data/js/audiorecorder.ui.js
index bfb4d6c05..ed1c0495d 100644
--- a/data/js/audiorecorder.ui.js
+++ b/data/js/audiorecorder.ui.js
@@ -328,36 +328,6 @@ define(function(require, exports, module) {
$('#audioRecordingDialog').on('shown.bs.modal', function() {
$('#newFileNameAudioRecorder').select2().focus();
});
- console.debug(blob);
- var fileTags = '';
- var rawTags = $('#newFileNameTagsAudioRecorder').val().split(',');
- rawTags.forEach(function(value, index) {
- if (index === 0) {
- fileTags = value;
- } else {
- fileTags = fileTags + TSCORE.Config.getTagDelimiter() + value;
- }
- });
- //if ($('#tagWithCurrentDate').prop('checked')) {
- // if (fileTags.length < 1) {
- // fileTags = TSCORE.TagUtils.formatDateTime4Tag(new Date());
- // } else {
- // fileTags = fileTags + TSCORE.Config.getTagDelimiter() + TSCORE.TagUtils.formatDateTime4Tag(new Date());
- // }
- //}
- if (fileTags.length > 0) {
- fileTags = TSCORE.TagUtils.beginTagContainer + fileTags + TSCORE.TagUtils.endTagContainer;
- }
-
- var filePath = TSCORE.currentPath + TSCORE.dirSeparator + $('#newFileNameAudioRecorder').val() + fileTags + '.' + fileType;
- TSCORE.IO.saveBinaryFilePromise(filePath, blob).then(function() {
- TSCORE.showSuccessDialog("File saved successfully.");
-
- }, function(error) {
- TSCORE.hideLoadingAnimation();
- TSCORE.showAlertDialog("Saving " + filePath + " failed.");
- console.error("Save to file " + filePath + " failed " + error);
- });
}
$recordingList.on('click', 'button', function(event) {