TagSpaces is an offline, open source, document manager with tagging support
improving geo tagging integration
uggrock22cb9b5c2927
diff --git a/data/js/core.ui.js b/data/js/core.ui.jsindex 6bff2e0f1..9e35a4da8 100644--- a/data/js/core.ui.js+++ b/data/js/core.ui.js@@ -735,6 +735,7 @@ define(function(require, exports) {function showTagEditDialog() {$('#newTagName').val(TSCORE.selectedTag);+ $('#formEditTag').off();$('#formEditTag').validator();$('#formEditTag').submit(function(e) {e.preventDefault();@@ -749,6 +750,7 @@ define(function(require, exports) {$('#formEditTag').on('valid.bs.validator', function() {$('#editTagButton').prop('disabled', false);});+ $('#dialogEditTag').off();$('#dialogEditTag').on('shown.bs.modal', function() {$('#newTagNamenewTagName').focus();});@@ -756,9 +758,6 @@ define(function(require, exports) {backdrop: 'static',show: true});- if (TSCORE.PRO) {- //TSCORE.MAP.initMap();- }TSCORE.Calendar.showDateTimeCalendar(TSCORE.selectedTag);}diff --git a/data/js/meta.js b/data/js/meta.jsindex 7b478a7d8..5c11d23c4 100644--- a/data/js/meta.js+++ b/data/js/meta.js@@ -1,5 +1,6 @@-/* Copyright (c) 2013-2016 The TagSpaces Authors.- * Use of this source code is governed by the MIT license which can be found in the LICENSE.txt file. */+/* Copyright (c) 2012-2016 The TagSpaces Authors. All rights reserved.+ * Use of this source code is governed by a AGPL3 license that+ * can be found in the LICENSE file. */define(function(require, exports, module) {'use strict';diff --git a/data/js/settings.api.js b/data/js/settings.api.jsindex 4105886f7..19b81da97 100644--- a/data/js/settings.api.js+++ b/data/js/settings.api.js@@ -178,9 +178,18 @@ define(function(require, exports, module) {'viewer': 'viewerMHTML','editor': 'false'});- if (isCordovaAndroid) {- TSCORE.showAlertDialog("Due some major changes in the app, you have to manually reconnect your locations. Please excuse us for this inconvenience.");- }+ /*exports.Settings.tagGroups.forEach(function(value) {+ if (value.key === 'SMR') {+ value.children.push({+ "type": "smart",+ "title": "geo-tag",+ "functionality": "geoTagging",+ "desciption": "Add geo coordinates as a tag",+ "color": "#4986e7",+ "textcolor": "#ffffff"+ });+ }+ });*/}saveSettings();diff --git a/data/js/settings.default.js b/data/js/settings.default.jsindex aa685f962..6ef1b7245 100644--- a/data/js/settings.default.js+++ b/data/js/settings.default.js@@ -8,7 +8,7 @@ define(function (require, exports, module) {"appName": "TagSpaces","appVersion": "2.5","appBuild": "5",- "appBuildID": "20161111211246",+ "appBuildID": "20161114215454","settingsVersion": 2,"newTextFileContent": "","newHTMLFileContent": "<!DOCTYPE html><html><head><!-- Created with TagSpaces 2.5.5 --><meta http-equiv='Content-Type' content='text/html; charset=utf-8'><style type='text/css'>body{overflow:auto;width:100%;height:100%;font:13.34px Ubuntu,arial,clean,sans-serif;color:#000;line-height:1.4em;background-color:#fff;padding:15px}p{margin:1em 0;line-height:1.5em}table{font:100%;margin:1em}table th{border-bottom:1px solid #bbb;padding:.2em 1em}table td{border-bottom:1px solid #ddd;padding:.2em 1em}input[type=image],input[type=password],input[type=text],textarea{font:99% helvetica,arial,freesans,sans-serif}option,select{padding:0 .25em}optgroup{margin-top:.5em}code,pre{font:12px Monaco,'Courier New','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace}pre{margin:1em 0;font-size:12px;background-color:#eee;border:1px solid #ddd;padding:5px;line-height:1.5em;color:#444;overflow:auto;-webkit-box-shadow:rgba(0,0,0,.07) 0 1px 2px inset;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}pre code{padding:0;font-size:12px;background-color:#eee;border:none}code{font-size:12px;background-color:#f8f8ff;color:#444;padding:0 .2em;border:1px solid #dedede}img{border:0;max-width:100%}abbr{border-bottom:none}a{color:#4183c4;text-decoration:none}a:hover{text-decoration:underline}a code,a:link code,a:visited code{color:#4183c4}h2,h3{margin:1em 0}h1,h2,h3,h4,h5,h6{border:0}h1{font-size:170%;border-top:4px solid #aaa;padding-top:.5em;margin-top:1.5em}h1:first-child{margin-top:0;padding-top:.25em;border-top:none}h2{font-size:150%;margin-top:1.5em;border-top:4px solid #e0e0e0;padding-top:.5em}h3{font-size:130%;margin-top:1em}h4{font-size:120%;margin-top:1em}h5{font-size:115%;margin-top:1em}h6{font-size:110%;margin-top:1em}hr{border:1px solid #ddd}ol,ul{margin:1em 0 1em 2em}ol li,ul li{margin-top:.5em;margin-bottom:.5em}ol ol,ol ul,ul ol,ul ul{margin-top:0;margin-bottom:0}blockquote{margin:1em 0;border-left:5px solid #ddd;padding-left:.6em;color:#555}dt{font-weight:700;margin-left:1em}dd{margin-left:2em;margin-bottom:1em}</style></head><body></body></html>",@@ -262,6 +262,14 @@ define(function (require, exports, module) {"desciption": "Adds the current year as tag","color": "#4986e7","textcolor": "#ffffff"+ },+ {+ "type": "smart",+ "title": "geo-tag",+ "functionality": "geoTagging",+ "desciption": "Add geo coordinates as a tag",+ "color": "#4986e7",+ "textcolor": "#ffffff"}]},diff --git a/data/js/tags.ui.js b/data/js/tags.ui.jsindex 99994e2de..3b5ca3756 100644--- a/data/js/tags.ui.js+++ b/data/js/tags.ui.js@@ -259,7 +259,7 @@ define(function(require, exports, module) {tag.icon = '';if (tag.type === 'smart') {tag.icon = 'fa fa-flask';- if (tag.title === 'geoTag') {+ if (tag.title === 'geo-tag') {tag.icon = 'fa fa-map-marker';}}@@ -381,10 +381,10 @@ define(function(require, exports, module) {var d;if (tagData.type === 'smart') {switch (tagData.functionality) {- case 'geoLocation': {+ case 'geoTagging': {$('#viewContainers').on('drop dragend', function(event) {- if (TSCORE.selectedTag === 'geoTag') {- tagValue = TSCORE.showTagEditDialog();+ if (TSCORE.selectedTag === 'geo-tag') {+ TSCORE.showTagEditDialog();}});break;diff --git a/default.settings.tmpl.js b/default.settings.tmpl.jsindex 78783ba30..86b3b6d9b 100644--- a/default.settings.tmpl.js+++ b/default.settings.tmpl.js@@ -262,7 +262,15 @@ define(function (require, exports, module) {"desciption": "Adds the current year as tag","color": "#4986e7","textcolor": "#ffffff"- }+ },+ /*{+ "type": "smart",+ "title": "geo-tag",+ "functionality": "geoTagging",+ "desciption": "Add geo coordinates as a tag",+ "color": "#4986e7",+ "textcolor": "#ffffff"+ }*/]},{