Skip to content

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

adjusting showing license of first run

uggrock99c8cf815c73
diff --git a/data/assets/general.css b/data/assets/general.css
index 1de6bc1ba..e1519801f 100644
--- a/data/assets/general.css
+++ b/data/assets/general.css
@@ -253,10 +253,17 @@ li hr {
}
/* Used in the tours for hapscotch */
+
.uiEmphasizer {
border: 3px dashed #1DD19F;
}
+div.hopscotch-bubble {
+ z-index: 1030 !important;
+}
+/* END Used in the tours for hapscotch */
+
+
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
.appBackgroundTile {
@@ -276,4 +283,4 @@ label.control-label {
.form-control {
border-radius: 0px;
-}
\ No newline at end of file
+}
diff --git a/data/index.html b/data/index.html
index 813f4de99..50dca1ba4 100644
--- a/data/index.html
+++ b/data/index.html
@@ -371,10 +371,9 @@
<h4 class="modal-title" data-i18n="ns.common:license"></h4>
</div>
<div class="modal-body">
- <iframe id="aboutIframe" 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;" src="LICENSE.txt"></iframe>
</div>
<div class="modal-footer">
- <button class="btn pull-left" id="eulaDialogBack" title="Go Back"><i class="fa fa-arrow-left fa-lg"></i></button>
<button class="btn btn-primary" data-dismiss="modal" aria-hidden="true"><i class="fa fa-check fa-lg"></i>
</button>
</div>
diff --git a/data/js/core.api.js b/data/js/core.api.js
index 9911a343f..99eac0ede 100644
--- a/data/js/core.api.js
+++ b/data/js/core.api.js
@@ -107,6 +107,10 @@ define(function(require, exports, module) {
var language = tsSettings.getInterfaceLanguage();
if (tsSettings.isFirstRun()) {
+ // Showing license dialog
+ tsCoreUI.showLicenseDialog();
+
+ // Setting the language
var browserLang = navigator.language || navigator.userLanguage;
var languageMatched;
diff --git a/data/js/core.ui.js b/data/js/core.ui.js
index e31f5f29a..a0fe83c34 100644
--- a/data/js/core.ui.js
+++ b/data/js/core.ui.js
@@ -776,14 +776,6 @@ define(function(require, exports, module) {
});
}
- $('#eulaDialogBack').click(function() {
- if (TSCORE.PRO) {
- $('#aboutIframe').attr('src', 'pro/EULA.txt');
- } else {
- $('#aboutIframe').attr('src', 'LICENSE.txt');
- }
- });
-
function showLicenseDialog() {
$('#aboutLicenseModal').modal({
backdrop: 'static',