فهرست منبع

Config improvements, suppress log

marek_splichal 4 سال پیش
والد
کامیت
81a6983194
3فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 1 1
      README.md
  2. 2 2
      main.js
  3. 2 2
      mickaSearch.yaml

+ 1 - 1
README.md

@@ -11,5 +11,5 @@ The MIcKA Search extension, searches configured metadata catalogue and show retu
 
 The initial configuration can be given using the IPython-contrib nbextensions facility. It includes:
 
-- mickaSearch.micka_url - URL of MIcKA (default: https://hub.lesprojekt.cz/micka/)
+- mickaSearch.micka_url - URL of MIcKA (example: https://hub.lesprojekt.cz/micka/)
 - mickaSearch.proxy_url - URL of CORS proxy (default: https://cors-anywhere.herokuapp.com/)

+ 2 - 2
main.js

@@ -50,7 +50,6 @@ define([
     // prepare and render html structure
     var create_view = function(data) {
         var output = '';
-        console.log(data);
         data.forEach(function(entry) {
             output += `<details><summary>${entry.title}</summary>`;
             output += '<p>Type: ';
@@ -195,7 +194,8 @@ define([
 				// Cancel the default action, if needed
 				event.preventDefault();
 				// Trigger the button element with a click
-				document.getElementById("msBtn").click();
+                document.getElementById("msBtn").click();
+                //unfocus input field
 				msinput.blur();
 			}
 		});

+ 2 - 2
mickaSearch.yaml

@@ -7,9 +7,9 @@ Main: main.js
 Compatibility: 4.x, 5.x
 Parameters:
 - name: mickaSearch.micka_url
-  description: URL of MIcKA
+  description: URL of MIcKA (https://hub.lesprojekt.cz/micka/)
   input_type: text
-  default: https://hub.lesprojekt.cz/micka/
+  default: 
 - name: mickaSearch.proxy_url
   description: Proxy address
   input_type: text