Skip to content

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

finetunning license dialog

uggrock4db5c1c57944
diff --git a/data/index.html b/data/index.html
index 50dca1ba4..f0d49938b 100644
--- a/data/index.html
+++ b/data/index.html
@@ -367,14 +367,17 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button>
<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>
</div>
<div class="modal-footer">
- <button class="btn btn-primary" data-dismiss="modal" aria-hidden="true"><i class="fa fa-check fa-lg"></i>
+ <button class="btn btn-default pull-left" id="disagreeLicenseButton" aria-hidden="true">
+ <i class="fa fa-close fa-lg"></i>&nbsp;<span data-i18n="ns.common:disagreeLicense"></span>
+ </button>
+ <button class="btn btn-primary" data-dismiss="modal" aria-hidden="true">
+ <i class="fa fa-check fa-lg"></i>&nbsp;<span data-i18n="ns.common:agreeLicense"></span>
</button>
</div>
</div>
diff --git a/data/js/core.ui.js b/data/js/core.ui.js
index a0fe83c34..ffbdfc342 100644
--- a/data/js/core.ui.js
+++ b/data/js/core.ui.js
@@ -71,7 +71,7 @@ define(function(require, exports, module) {
var reader = new FileReader();
reader.onload = onFileReadComplete;
if (isCordova) {
- //reader.readAsDataURL(file);
+ reader.readAsDataURL(file);
} else {
reader.readAsArrayBuffer(file);
}
@@ -245,10 +245,16 @@ define(function(require, exports, module) {
});
// End File Menu
- $('#showLocations').click(function() {
+ $('#showLocations').on('click', function() {
showLocationsPanel();
});
+ $('#disagreeLicenseButton').on('click', function() {
+ TSCORE.Config.Settings.firstRun = true;
+ TSCORE.Config.saveSettings();
+ window.close();
+ });
+
$('#showTagGroups').click(function() {
showTagsPanel();
});
diff --git a/data/locales/en_US/ns.common.json b/data/locales/en_US/ns.common.json
index 9cfa44583..21f4790b8 100644
--- a/data/locales/en_US/ns.common.json
+++ b/data/locales/en_US/ns.common.json
@@ -170,7 +170,9 @@
"selectAll": "Select All",
"view": "View",
"help": "Help",
- "license": "License",
+ "license": "License Agreement",
+ "disagreeLicense": "Disagree",
+ "agreeLicense": "Agree",
"settings": "Settings",
"confirmApplicationClose": "There is unsaved file. Do you really want to quit the application?",
"waitDialogDiectoryIndexing": "TagSpaces is indexing the current directory with subdirectories.",
diff --git a/default.settings.tmpl.js b/default.settings.tmpl.js
index b8d3a3ee2..eab4b7212 100644
--- a/default.settings.tmpl.js
+++ b/default.settings.tmpl.js
@@ -86,6 +86,7 @@ define(function (require, exports, module) {
"nextDocument": ['right', 'down'],
"prevDocument": ['left', 'up'],
"showHelp": "f1",
+ "renameFile": "f2",
"reloadApplication": "r a",
"toggleFullScreen": "f11",
"openDevTools": "f12",