author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Tue, 22 Sep 2009 14:08:21 +0200 | |
branch | stable |
changeset 3370 | 62ed9981a770 |
parent 3129 | fab471bee6c1 |
child 5112 | 5bf8baecfaf8 |
permissions | -rw-r--r-- |
0 | 1 |
/* |
2 |
* :organization: Logilab |
|
3 |
* :copyright: 2003-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
|
4 |
* :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
|
5 |
*/ |
|
6 |
||
7 |
CubicWeb.require('htmlhelpers.js'); |
|
8 |
CubicWeb.require('ajax.js'); |
|
9 |
||
10 |
//============= filter form functions ========================================// |
|
11 |
function copyParam(origparams, newparams, param) { |
|
12 |
var index = findValue(origparams[0], param); |
|
13 |
if (index > -1) { |
|
14 |
newparams[param] = origparams[1][index]; |
|
15 |
} |
|
16 |
} |
|
17 |
||
18 |
function facetFormContent(form) { |
|
4
8a607bdc11dc
[javascript] indentation fixes + missing semi colons
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
19 |
var names = []; |
8a607bdc11dc
[javascript] indentation fixes + missing semi colons
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
20 |
var values = []; |
8a607bdc11dc
[javascript] indentation fixes + missing semi colons
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
21 |
jQuery(form).find('.facet').each(function () { |
8a607bdc11dc
[javascript] indentation fixes + missing semi colons
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
22 |
var facetName = jQuery(this).find('.facetTitle').attr('cubicweb:facetName'); |
8a607bdc11dc
[javascript] indentation fixes + missing semi colons
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
23 |
var facetValues = jQuery(this).find('.facetValueSelected').each(function(x) { |
8a607bdc11dc
[javascript] indentation fixes + missing semi colons
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
24 |
names.push(facetName); |
8a607bdc11dc
[javascript] indentation fixes + missing semi colons
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
25 |
values.push(this.getAttribute('cubicweb:value')); |
8a607bdc11dc
[javascript] indentation fixes + missing semi colons
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
26 |
}); |
8a607bdc11dc
[javascript] indentation fixes + missing semi colons
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
27 |
}); |
8a607bdc11dc
[javascript] indentation fixes + missing semi colons
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
28 |
jQuery(form).find('input').each(function () { |
8a607bdc11dc
[javascript] indentation fixes + missing semi colons
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
29 |
names.push(this.name); |
8a607bdc11dc
[javascript] indentation fixes + missing semi colons
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
30 |
values.push(this.value); |
8a607bdc11dc
[javascript] indentation fixes + missing semi colons
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
31 |
}); |
1894
c41c539b8f34
[javascript] the @attr (xpath) syntax doesn't work anymore with jquery1.3, forget the @
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1419
diff
changeset
|
32 |
jQuery(form).find('select option[selected]').each(function () { |
0 | 33 |
names.push(this.parentNode.name); |
34 |
values.push(this.value); |
|
35 |
}); |
|
4
8a607bdc11dc
[javascript] indentation fixes + missing semi colons
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
36 |
return [names, values]; |
0 | 37 |
} |
38 |
||
39 |
function buildRQL(divid, vid, paginate, vidargs) { |
|
40 |
jQuery(CubicWeb).trigger('facets-content-loading', [divid, vid, paginate, vidargs]); |
|
41 |
var form = getNode(divid+'Form'); |
|
42 |
var zipped = facetFormContent(form); |
|
4
8a607bdc11dc
[javascript] indentation fixes + missing semi colons
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
43 |
zipped[0].push('facetargs'); |
8a607bdc11dc
[javascript] indentation fixes + missing semi colons
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
44 |
zipped[1].push(vidargs); |
1419 | 45 |
var d = asyncRemoteExec('filter_build_rql', zipped[0], zipped[1]); |
0 | 46 |
d.addCallback(function(result) { |
47 |
var rql = result[0]; |
|
5
64072193bd48
simple and naive implementation of 'bookmark this search' while using facets
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
4
diff
changeset
|
48 |
var $bkLink = jQuery('#facetBkLink'); |
64072193bd48
simple and naive implementation of 'bookmark this search' while using facets
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
4
diff
changeset
|
49 |
if ($bkLink.length) { |
64072193bd48
simple and naive implementation of 'bookmark this search' while using facets
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
4
diff
changeset
|
50 |
var bkUrl = $bkLink.attr('cubicweb:target') + '&path=view?rql=' + rql; |
64072193bd48
simple and naive implementation of 'bookmark this search' while using facets
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
4
diff
changeset
|
51 |
if (vid) { |
64072193bd48
simple and naive implementation of 'bookmark this search' while using facets
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
4
diff
changeset
|
52 |
bkUrl += '&vid=' + vid; |
64072193bd48
simple and naive implementation of 'bookmark this search' while using facets
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
4
diff
changeset
|
53 |
} |
64072193bd48
simple and naive implementation of 'bookmark this search' while using facets
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
4
diff
changeset
|
54 |
$bkLink.attr('href', bkUrl); |
64072193bd48
simple and naive implementation of 'bookmark this search' while using facets
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
4
diff
changeset
|
55 |
} |
0 | 56 |
var toupdate = result[1]; |
57 |
var extraparams = vidargs; |
|
58 |
var displayactions = jQuery('#' + divid).attr('cubicweb:displayactions'); |
|
59 |
if (displayactions) { extraparams['displayactions'] = displayactions; } |
|
60 |
if (paginate) { extraparams['paginate'] = '1'; } |
|
61 |
// copy some parameters |
|
62 |
// XXX cleanup vid/divid mess |
|
63 |
// if vid argument is specified , the one specified in form params will |
|
64 |
// be overriden by replacePageChunk |
|
65 |
copyParam(zipped, extraparams, 'vid'); |
|
66 |
extraparams['divid'] = divid; |
|
67 |
copyParam(zipped, extraparams, 'divid'); |
|
68 |
copyParam(zipped, extraparams, 'subvid'); |
|
3129
fab471bee6c1
[facets] duhh, necessary fromformfilter hidden was missing
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
3107
diff
changeset
|
69 |
copyParam(zipped, extraparams, 'fromformfilter'); |
0 | 70 |
// paginate used to know if the filter box is acting, in which case we |
3008
094c597c1d01
[facets] reload breadcrumbs on facets search
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
3006
diff
changeset
|
71 |
// want to reload action box to match current selection (we don't want |
094c597c1d01
[facets] reload breadcrumbs on facets search
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
3006
diff
changeset
|
72 |
// this from a table filter) |
0 | 73 |
replacePageChunk(divid, rql, vid, extraparams, true, function() { |
74 |
jQuery(CubicWeb).trigger('facets-content-loaded', [divid, rql, vid, extraparams]); |
|
75 |
}); |
|
76 |
if (paginate) { |
|
77 |
// FIXME the edit box might not be displayed in which case we don't |
|
78 |
// know where to put the potential new one, just skip this case |
|
79 |
// for now |
|
80 |
if (jQuery('#edit_box').length) { |
|
81 |
reloadComponent('edit_box', rql, 'boxes', 'edit_box'); |
|
82 |
} |
|
3008
094c597c1d01
[facets] reload breadcrumbs on facets search
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
3006
diff
changeset
|
83 |
if (jQuery('#breadcrumbs').length) { |
094c597c1d01
[facets] reload breadcrumbs on facets search
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
3006
diff
changeset
|
84 |
reloadComponent('breadcrumbs', rql, 'components', 'breadcrumbs'); |
3011 | 85 |
} |
0 | 86 |
} |
1419 | 87 |
var d = asyncRemoteExec('filter_select_content', toupdate, rql); |
0 | 88 |
d.addCallback(function(updateMap) { |
89 |
for (facetId in updateMap) { |
|
90 |
var values = updateMap[facetId]; |
|
91 |
jqNode(facetId).find('.facetCheckBox').each(function () { |
|
92 |
var value = this.getAttribute('cubicweb:value'); |
|
93 |
if (!values.contains(value)) { |
|
94 |
if (!jQuery(this).hasClass('facetValueDisabled')) { |
|
95 |
jQuery(this).addClass('facetValueDisabled'); |
|
96 |
} |
|
97 |
} else { |
|
98 |
if (jQuery(this).hasClass('facetValueDisabled')) { |
|
99 |
jQuery(this).removeClass('facetValueDisabled'); |
|
100 |
} |
|
101 |
} |
|
102 |
}); |
|
103 |
} |
|
104 |
}); |
|
105 |
}); |
|
106 |
} |
|
107 |
||
108 |
||
109 |
var SELECTED_IMG = baseuri()+"data/black-check.png"; |
|
110 |
var UNSELECTED_IMG = baseuri()+"data/no-check-no-border.png"; |
|
2012
64c82e15fa98
[facets] add new unchecked's checkbox image
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1894
diff
changeset
|
111 |
var UNSELECTED_BORDER_IMG = baseuri()+"data/black-uncheck.png"; |
0 | 112 |
|
933
ad99da207edd
late evaluation of cubicweb:facetargs is necessary since its value may change
sylvain.thenault@logilab.fr
parents:
434
diff
changeset
|
113 |
function initFacetBoxEvents(root) { |
ad99da207edd
late evaluation of cubicweb:facetargs is necessary since its value may change
sylvain.thenault@logilab.fr
parents:
434
diff
changeset
|
114 |
// facetargs : (divid, vid, paginate, extraargs) |
0 | 115 |
root = root || document; |
116 |
jQuery(root).find('form').each(function () { |
|
117 |
var form = jQuery(this); |
|
933
ad99da207edd
late evaluation of cubicweb:facetargs is necessary since its value may change
sylvain.thenault@logilab.fr
parents:
434
diff
changeset
|
118 |
// NOTE: don't evaluate facetargs here but in callbacks since its value |
ad99da207edd
late evaluation of cubicweb:facetargs is necessary since its value may change
sylvain.thenault@logilab.fr
parents:
434
diff
changeset
|
119 |
// may changes and we must send its value when the callback is |
ad99da207edd
late evaluation of cubicweb:facetargs is necessary since its value may change
sylvain.thenault@logilab.fr
parents:
434
diff
changeset
|
120 |
// called, not when the page is initialized |
ad99da207edd
late evaluation of cubicweb:facetargs is necessary since its value may change
sylvain.thenault@logilab.fr
parents:
434
diff
changeset
|
121 |
var facetargs = form.attr('cubicweb:facetargs'); |
ad99da207edd
late evaluation of cubicweb:facetargs is necessary since its value may change
sylvain.thenault@logilab.fr
parents:
434
diff
changeset
|
122 |
if (facetargs !== undefined) { |
0 | 123 |
form.submit(function() { |
1076
c510e1935ccc
new image for unchecked state
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
933
diff
changeset
|
124 |
buildRQL.apply(null, evalJSON(form.attr('cubicweb:facetargs'))); |
0 | 125 |
return false; |
126 |
}); |
|
127 |
form.find('div.facet').each(function() { |
|
128 |
var facet = jQuery(this); |
|
129 |
facet.find('div.facetCheckBox').each(function (i) { |
|
130 |
this.setAttribute('cubicweb:idx', i); |
|
131 |
}); |
|
132 |
facet.find('div.facetCheckBox').click(function () { |
|
133 |
var $this = jQuery(this); |
|
3107
0829808e93c1
fix OR in facets
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
3011
diff
changeset
|
134 |
// NOTE : add test on the facet operator (i.e. OR, AND) |
0829808e93c1
fix OR in facets
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
3011
diff
changeset
|
135 |
// if ($this.hasClass('facetValueDisabled')){ |
0829808e93c1
fix OR in facets
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
3011
diff
changeset
|
136 |
// return |
0829808e93c1
fix OR in facets
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
3011
diff
changeset
|
137 |
// } |
0 | 138 |
if ($this.hasClass('facetValueSelected')) { |
139 |
$this.removeClass('facetValueSelected'); |
|
1076
c510e1935ccc
new image for unchecked state
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
933
diff
changeset
|
140 |
$this.find('img').each(function (i){ |
c510e1935ccc
new image for unchecked state
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
933
diff
changeset
|
141 |
if (this.getAttribute('cubicweb:unselimg')){ |
c510e1935ccc
new image for unchecked state
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
933
diff
changeset
|
142 |
this.setAttribute('src', UNSELECTED_BORDER_IMG); |
2324
810fcd045f7c
# set right alt values, fix disapearing values in facetCheckBox
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
2013
diff
changeset
|
143 |
this.setAttribute('alt', (_('not selected'))); |
1076
c510e1935ccc
new image for unchecked state
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
933
diff
changeset
|
144 |
} |
c510e1935ccc
new image for unchecked state
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
933
diff
changeset
|
145 |
else{ |
2012
64c82e15fa98
[facets] add new unchecked's checkbox image
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1894
diff
changeset
|
146 |
this.setAttribute('src', UNSELECTED_IMG); |
2325
363b66a15668
[cleaning] minor cleaning over last two checkins
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
2324
diff
changeset
|
147 |
this.setAttribute('alt', (_('not selected'))); |
1076
c510e1935ccc
new image for unchecked state
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
933
diff
changeset
|
148 |
} |
c510e1935ccc
new image for unchecked state
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
933
diff
changeset
|
149 |
}); |
0 | 150 |
var index = parseInt($this.attr('cubicweb:idx')); |
2342
923111e6ab33
do nothing if the clicked facet has facetValueDisabled class; do not move facet when cubicweb:idx == 0
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
2325
diff
changeset
|
151 |
// we dont need to move the element when cubicweb:idx == 0 |
923111e6ab33
do nothing if the clicked facet has facetValueDisabled class; do not move facet when cubicweb:idx == 0
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
2325
diff
changeset
|
152 |
if (index > 0){ |
923111e6ab33
do nothing if the clicked facet has facetValueDisabled class; do not move facet when cubicweb:idx == 0
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
2325
diff
changeset
|
153 |
var shift = jQuery.grep(facet.find('.facetValueSelected'), function (n) { |
923111e6ab33
do nothing if the clicked facet has facetValueDisabled class; do not move facet when cubicweb:idx == 0
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
2325
diff
changeset
|
154 |
var nindex = parseInt(n.getAttribute('cubicweb:idx')); |
923111e6ab33
do nothing if the clicked facet has facetValueDisabled class; do not move facet when cubicweb:idx == 0
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
2325
diff
changeset
|
155 |
return nindex > index; |
923111e6ab33
do nothing if the clicked facet has facetValueDisabled class; do not move facet when cubicweb:idx == 0
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
2325
diff
changeset
|
156 |
}).length; |
923111e6ab33
do nothing if the clicked facet has facetValueDisabled class; do not move facet when cubicweb:idx == 0
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
2325
diff
changeset
|
157 |
index += shift; |
923111e6ab33
do nothing if the clicked facet has facetValueDisabled class; do not move facet when cubicweb:idx == 0
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
2325
diff
changeset
|
158 |
var parent = this.parentNode; |
923111e6ab33
do nothing if the clicked facet has facetValueDisabled class; do not move facet when cubicweb:idx == 0
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
2325
diff
changeset
|
159 |
var $insertAfter = jQuery(parent).find('.facetCheckBox:nth('+index+')'); |
923111e6ab33
do nothing if the clicked facet has facetValueDisabled class; do not move facet when cubicweb:idx == 0
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
2325
diff
changeset
|
160 |
if ( ! ($insertAfter.length == 1 && shift == 0) ) { |
923111e6ab33
do nothing if the clicked facet has facetValueDisabled class; do not move facet when cubicweb:idx == 0
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
2325
diff
changeset
|
161 |
// only rearrange element if necessary |
923111e6ab33
do nothing if the clicked facet has facetValueDisabled class; do not move facet when cubicweb:idx == 0
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
2325
diff
changeset
|
162 |
$insertAfter.after(this); |
923111e6ab33
do nothing if the clicked facet has facetValueDisabled class; do not move facet when cubicweb:idx == 0
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
2325
diff
changeset
|
163 |
} |
2325
363b66a15668
[cleaning] minor cleaning over last two checkins
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
2324
diff
changeset
|
164 |
} |
0 | 165 |
} else { |
166 |
var lastSelected = facet.find('.facetValueSelected:last'); |
|
167 |
if (lastSelected.length) { |
|
168 |
lastSelected.after(this); |
|
169 |
} else { |
|
170 |
var parent = this.parentNode; |
|
171 |
jQuery(parent).prepend(this); |
|
172 |
} |
|
173 |
jQuery(this).addClass('facetValueSelected'); |
|
2325
363b66a15668
[cleaning] minor cleaning over last two checkins
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
2324
diff
changeset
|
174 |
var $img = jQuery(this).find('img'); |
363b66a15668
[cleaning] minor cleaning over last two checkins
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
2324
diff
changeset
|
175 |
$img.attr('src', SELECTED_IMG).attr('alt', (_('selected'))); |
0 | 176 |
} |
1076
c510e1935ccc
new image for unchecked state
Katia Saurfelt <katia.saurfelt@logilab.fr>
parents:
933
diff
changeset
|
177 |
buildRQL.apply(null, evalJSON(form.attr('cubicweb:facetargs'))); |
0 | 178 |
facet.find('.facetBody').animate({scrollTop: 0}, ''); |
179 |
}); |
|
180 |
facet.find('select.facetOperator').change(function() { |
|
181 |
var nbselected = facet.find('div.facetValueSelected').length; |
|
182 |
if (nbselected >= 2) { |
|
933
ad99da207edd
late evaluation of cubicweb:facetargs is necessary since its value may change
sylvain.thenault@logilab.fr
parents:
434
diff
changeset
|
183 |
buildRQL.apply(null, evalJSON(form.attr('cubicweb:facetargs'))); |
0 | 184 |
} |
185 |
}); |
|
186 |
facet.find('div.facetTitle').click(function() { |
|
187 |
facet.find('div.facetBody').toggleClass('hidden').toggleClass('opened'); |
|
188 |
jQuery(this).toggleClass('opened'); |
|
189 |
}); |
|
190 |
||
191 |
}); |
|
192 |
} |
|
193 |
}); |
|
194 |
} |
|
195 |
||
196 |
// trigger this function on document ready event if you provide some kind of |
|
197 |
// persistent search (eg crih) |
|
198 |
function reorderFacetsItems(root){ |
|
199 |
root = root || document; |
|
200 |
jQuery(root).find('form').each(function () { |
|
201 |
var form = jQuery(this); |
|
933
ad99da207edd
late evaluation of cubicweb:facetargs is necessary since its value may change
sylvain.thenault@logilab.fr
parents:
434
diff
changeset
|
202 |
if (form.attr('cubicweb:facetargs')) { |
0 | 203 |
form.find('div.facet').each(function() { |
4
8a607bdc11dc
[javascript] indentation fixes + missing semi colons
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
0
diff
changeset
|
204 |
var facet = jQuery(this); |
0 | 205 |
var lastSelected = null; |
206 |
facet.find('div.facetCheckBox').each(function (i) { |
|
207 |
var $this = jQuery(this); |
|
208 |
if ($this.hasClass('facetValueSelected')) { |
|
209 |
if (lastSelected) { |
|
210 |
lastSelected.after(this); |
|
211 |
} else { |
|
212 |
var parent = this.parentNode; |
|
213 |
jQuery(parent).prepend(this); |
|
214 |
} |
|
215 |
lastSelected = $this; |
|
216 |
} |
|
217 |
}); |
|
218 |
}); |
|
219 |
} |
|
220 |
}); |
|
221 |
} |
|
222 |
||
223 |
// we need to differenciate cases where initFacetBoxEvents is called |
|
224 |
// with one argument or without any argument. If we use `initFacetBoxEvents` |
|
225 |
// as the direct callback on the jQuery.ready event, jQuery will pass some argument |
|
226 |
// of his, so we use this small anonymous function instead. |
|
227 |
jQuery(document).ready(function() {initFacetBoxEvents();}); |
|
228 |
||
3006
4d85386b06a5
rename cubicweb.formfilter.js into cubicweb.facets.js
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
2342
diff
changeset
|
229 |
CubicWeb.provide('facets.js'); |