summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Stollenwerk <contact@timostollenwerk.net>2013-07-10 09:56:48 (GMT)
committerTimo Stollenwerk <contact@timostollenwerk.net>2013-07-10 09:56:48 (GMT)
commit29d4d0ced51d885970f11e9d1050279778af6165 (patch)
treea2f7ad73599f409a160fa273723fd7da9d9817bb
parent36076d04f30410a0b5b98951521fbada7be2e908 (diff)
downloadcollective.solr-29d4d0ced51d885970f11e9d1050279778af6165.zip
collective.solr-29d4d0ced51d885970f11e9d1050279778af6165.tar.gz
collective.solr-29d4d0ced51d885970f11e9d1050279778af6165.tar.bz2
Make jshint happy.
-rw-r--r--src/collective/solr/browser/resources/scripts.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/collective/solr/browser/resources/scripts.js b/src/collective/solr/browser/resources/scripts.js
index d8b8e4e..0339f2d 100644
--- a/src/collective/solr/browser/resources/scripts.js
+++ b/src/collective/solr/browser/resources/scripts.js
@@ -1,9 +1,10 @@
+/*jshint strict: true, undef: true, unused: true*/
+/*global $,jQuery*/
/* use `collective.js.showmore` to hide facet counts via jquery */
-(function($) {
-$(function() {
- $('#portal-searchfacets dl').showMore({
- expression: 'dt:gt(4), dd:gt(4)',
- grace_count: 2
- });
-});
-})(jQuery); \ No newline at end of file
+(function ($) {
+ "use strict";
+ $('#portal-searchfacets dl').showMore({
+ expression: 'dt:gt(4), dd:gt(4)',
+ grace_count: 2
+ });
+}(jQuery));