Skip to content

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

adjusting license dialog

uggrock1892c087cd56
diff --git a/data/index.html b/data/index.html
index f0d49938b..367960268 100644
--- a/data/index.html
+++ b/data/index.html
@@ -370,7 +370,7 @@
<h4 class="modal-title" data-i18n="ns.common:license"></h4>
</div>
<div class="modal-body">
- <iframe id="licenseIframe" sandbox="allow-same-origin allow-scripts" nwdisable style="width: 100%; height: 100%; min-height: 350px; border: 0;" src="LICENSE.txt"></iframe>
+ <iframe id="licenseIframe" sandbox="allow-same-origin allow-scripts" nwdisable style="width: 100%; height: 100%; min-height: 350px; border: 0;"></iframe>
</div>
<div class="modal-footer">
<button class="btn btn-default pull-left" id="disagreeLicenseButton" aria-hidden="true">
diff --git a/data/js/core.ui.js b/data/js/core.ui.js
index ffbdfc342..4400a341e 100644
--- a/data/js/core.ui.js
+++ b/data/js/core.ui.js
@@ -783,6 +783,11 @@ define(function(require, exports, module) {
}
function showLicenseDialog() {
+ if (TSCORE.PRO) {
+ $('#licenseIframe').attr('src', 'pro/EULA.txt');
+ } else {
+ $('#licenseIframe').attr('src', 'LICENSE.txt');
+ }
$('#aboutLicenseModal').modal({
backdrop: 'static',
show: true