From 12b3562f5371f24bb35b05a561a7f7a0672e86e1 Mon Sep 17 00:00:00 2001 From: Thomas Schmidts Date: Tue, 14 Oct 2014 16:13:03 +0200 Subject: [PATCH 1/4] Fixed #1050. Now its possible to clear the search in the documentation --- .../Books/Users/localtheme/assets/style.css | 19 +++++++++++++++++++ .../templates/includes/book/summary.html | 9 ++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/Documentation/Books/Users/localtheme/assets/style.css b/Documentation/Books/Users/localtheme/assets/style.css index 4d6ddcace8..bc91c3f030 100755 --- a/Documentation/Books/Users/localtheme/assets/style.css +++ b/Documentation/Books/Users/localtheme/assets/style.css @@ -2916,4 +2916,23 @@ background-color: rgba(240,240,0,0.4); .book .book-body .page-wrapper .page-inner section.normal .deprecated pre{ background-color: rgba(240,240,0,0.4); +} + +#clear-search { + display: inline; + position: absolute; + top: 12px; + right: 9px; + font-size: 18pt; + line-height: 18pt; + color: #364149; // needs to be updated on theme change +} + +#clear-search:hover { + color: #008cff; // needs to be updated on theme change + text-decoration: none; +} + +.book .book-summary .book-search input{ + padding-right: 20px !important; } \ No newline at end of file diff --git a/Documentation/Books/Users/localtheme/templates/includes/book/summary.html b/Documentation/Books/Users/localtheme/templates/includes/book/summary.html index 24ffbd25af..2d8677b537 100644 --- a/Documentation/Books/Users/localtheme/templates/includes/book/summary.html +++ b/Documentation/Books/Users/localtheme/templates/includes/book/summary.html @@ -34,6 +34,7 @@
- - - - {% if githubId %} - - - {% endif %} {% if options.links.sharing.twitter !== false %} {% endif %} - -

- - ArangoDB2.2.3 -

- +

ArangoDB2.2.3

+ \ No newline at end of file From fe5a5c395833658b74d1c22c36d56fed5040e4d4 Mon Sep 17 00:00:00 2001 From: Willi Goesgens Date: Tue, 14 Oct 2014 17:54:44 +0200 Subject: [PATCH 4/4] Catch commandline parser problems if de-serialiszing the json options fails --- scripts/unittest.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/unittest.js b/scripts/unittest.js index e83a2b67c2..526057505a 100644 --- a/scripts/unittest.js +++ b/scripts/unittest.js @@ -93,7 +93,14 @@ function main (argv) { var options = {}; var r; if (argv.length >= 3) { - options = JSON.parse(argv[2]); + try { + options = JSON.parse(argv[2]); + } + catch (x) { + print("failed to parse the json options"); + print(x); + return -1; + } } options.jsonReply = true; var UnitTest = require("org/arangodb/testing");