summaryrefslogtreecommitdiffstats
path: root/welco/static
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2015-11-30 18:00:08 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2015-11-30 18:00:08 (GMT)
commitab31bf20df6cd67278a99ff86cdba36298ac211e (patch)
treec9115333280d129e8a3c2fa92ccfc2943ae8f6b2 /welco/static
parent98869b9a57b172d278c22396f0e05958793f7a44 (diff)
downloadwelco-ab31bf20df6cd67278a99ff86cdba36298ac211e.zip
welco-ab31bf20df6cd67278a99ff86cdba36298ac211e.tar.gz
welco-ab31bf20df6cd67278a99ff86cdba36298ac211e.tar.bz2
kb: add tag cloud in default view
Diffstat (limited to 'welco/static')
-rw-r--r--welco/static/css/style.css4
-rw-r--r--welco/static/js/welco.js3
2 files changed, 7 insertions, 0 deletions
diff --git a/welco/static/css/style.css b/welco/static/css/style.css
index aa8006b..d561567 100644
--- a/welco/static/css/style.css
+++ b/welco/static/css/style.css
@@ -562,3 +562,7 @@ div.old-version.warning-notice form {
right: 1ex;
top: 1ex;
}
+
+div.tagcloud {
+ padding: 1ex;
+}
diff --git a/welco/static/js/welco.js b/welco/static/js/welco.js
index 332b8b8..0c3f82f 100644
--- a/welco/static/js/welco.js
+++ b/welco/static/js/welco.js
@@ -246,6 +246,9 @@ $(function() {
);
return false;
});
+ $('.kb').delegate('.tagcloud span', 'click', function() {
+ $('.kb input').val($(this).text()).trigger('keyup');
+ });
$('.kb').delegate('ul.result a', 'click', function() {
var page_slug = $(this).data('page-slug');
var fragment_url = $(this).parents('[data-page-fragment-url]').data('page-fragment-url') + page_slug + '/';