Skip to content

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

Merge branch 'develop' into TS201-AudioRecording

uggrockd0b6e0f15d63
diff --cc data/js/core.ui.js
index 69f3d88f4,9fd66ea6e..bf83013da
--- a/data/js/core.ui.js
+++ b/data/js/core.ui.js
@@@ -818,17 -829,33 +829,44 @@@ define(function(require, exports, modul
});
}
+ // Open Audio Recording Dialog
+ function showAudioRecordingDialog(){
+ $('#audioRecordingDialog').modal({
+ backdrop: 'static',
+ show: true
+ });
+ $('#audioRecordingDialog').draggable({
+ handle: ".modal-header"
+ });
+ }
+
+ function showLicenseDialog() {
+ if (TSCORE.PRO) {
+ $('#licenseIframe').attr('src', 'pro/EULA.txt');
+ } else {
+ $('#licenseIframe').attr('src', 'LICENSE.txt');
+ }
+ $('#aboutLicenseModal').modal({
+ backdrop: 'static',
+ show: true
+ });
+ $('#aboutLicenseModal').draggable({
+ handle: ".modal-header"
+ });
+ }
+
+ function reloadEulaContent() {
+ if (TSCORE.PRO) {
+ $('#licenseIframe').attr('src', 'pro/EULA.txt');
+ } else {
+ $('#licenseIframe').attr('src', 'LICENSE.txt');
+ }
+ }
+
+ $('#aboutLicenseModal').on('show.bs.modal', function() {
+ reloadEulaContent();
+ });
+
function disableTopToolbar() {
$('#perspectiveSwitcherButton').prop('disabled', true);
$('#searchBox').prop('disabled', true);
@@@ -1007,7 -1034,7 +1045,8 @@@
exports.showTagEditDialog = showTagEditDialog;
exports.showOptionsDialog = showOptionsDialog;
exports.showAboutDialog = showAboutDialog;
+ exports.showAudioRecordingDialog = showAudioRecordingDialog;
+ exports.showLicenseDialog = showLicenseDialog;
exports.showLocationsPanel = showLocationsPanel;
exports.showTagsPanel = showTagsPanel;
exports.showContactUsPanel = showContactUsPanel;