TagSpaces is an offline, open source, document manager with tagging support
adding a newer ext common version
uggrock6949abf8e2fb
diff --git a/data/libs/extCommon/.bower.json b/data/libs/extCommon/.bower.jsonnew file mode 100644index 000000000..8e6ac7841--- /dev/null+++ b/data/libs/extCommon/.bower.json@@ -0,0 +1,28 @@+{+ "name": "ts-commons",+ "id": "extCommon",+ "description": "A TagSpaces helper library with common functionalities in extensions",+ "dependencies": {},+ "devDependencies": {},+ "authors": [+ "TagSpaces Authors - http://tagspaces.org",+ "Ilian Sapundshiev - http://ilian.me"+ ],+ "keywords": [+ "tagspaces"+ ],+ "license": "MIT",+ "ignore": [+ "Gruntfile.js"+ ],+ "homepage": "https://github.com/tagspaces/extCommons",+ "_release": "795791fa27",+ "_resolution": {+ "type": "branch",+ "branch": "master",+ "commit": "795791fa27061e521c0864f7c12c3b6326a3918b"+ },+ "_source": "https://github.com/tagspaces/extCommons.git",+ "_target": "*",+ "_originalSource": "https://github.com/tagspaces/extCommons.git"+}\ No newline at end of filediff --git a/data/libs/extCommon/bower.json b/data/libs/extCommon/bower.jsonindex 1004cb331..0b8e781db 100644--- a/data/libs/extCommon/bower.json+++ b/data/libs/extCommon/bower.json@@ -1,6 +1,6 @@{- "name": "extCommons",- "id": "extCommons",+ "name": "ts-commons",+ "id": "extCommon","description": "A TagSpaces helper library with common functionalities in extensions","version": "0.0.3","dependencies": {},diff --git a/data/libs/extCommon/common.js b/data/libs/extCommon/common.jsindex 429e10c2d..4801c5645 100644--- a/data/libs/extCommon/common.js+++ b/data/libs/extCommon/common.js@@ -35,13 +35,13 @@ $(document).ready(function() {type: 'GET'}).done(function(mdData) {//console.log("DATA: " + mdData);- //if (marked) {+ if (marked) {var modalBody = $("#aboutExtensionModal .modal-body");modalBody.html(marked(mdData, {sanitize: true}));handleLinks(modalBody);- //} else {- // console.log("markdown to html transformer not found");- //}+ } else {+ console.log("markdown to html transformer not found");+ }}).fail(function(data) {console.warn("Loading file failed " + data);});@@ -94,7 +94,7 @@ function showSearchPanel(e) {function cancelSearch() {//$('#searchToolbar').slideUp(500);- $('#htmlContent').unhighlight();+ //$('#htmlContent').unhighlight();$('#searchToolbar').hide();//$('#searchBox').hide();}@@ -196,7 +196,7 @@ function initSearch() {}function doSearch() {- $('#htmlContent').unhighlight();+ //$('#htmlContent').unhighlight();$('#searchBox').attr('placeholder', 'Search');var givenString = document.getElementById("searchBox").value;@@ -220,7 +220,7 @@ function doSearch() {}if (!found || (!found && !caseSensitiveString) || !caseSensitiveString) {var topOfContent = $(selector).animate({scrollTop: $('#htmlContent').offset().top}, "fast");- $('#htmlContent').unhighlight();+ //$('#htmlContent').unhighlight();$('#searchBox').val('');$('#searchBox').attr('placeholder', 'Search text not found. Try again.');return topOfContent;