@@ -225,18 +225,18 @@ <h3>{%title%}</h3>
225225 $ ( ".filters a.btn" ) . on ( 'click' , docFilter . select ) ;
226226 $ ( ".filters a.toggle" ) . on ( "click" , docFilter . toggleTags ) ;
227227
228- rulesEngine . selectConfigurationPropertyValue ( "category" , "minute" , 0 , false ) ;
229- rulesEngine . selectConfigurationPropertyValue ( "category" , "dossier" , 0 , false ) ;
230- rulesEngine . selectConfigurationPropertyValue ( "category" , "annex" , 0 , false ) ;
231- rulesEngine . selectConfigurationPropertyValue ( "category" , "action plan" , 0 , false ) ;
232- rulesEngine . selectConfigurationPropertyValue ( "category" , "press release" , 0 , false ) ;
233- rulesEngine . selectConfigurationPropertyValue ( "category" , "misc" , 0 , false ) ;
234- rulesEngine . selectConfigurationPropertyValue ( "tags" , "anticipation" , 0 , false ) ;
235- rulesEngine . selectConfigurationPropertyValue ( "tags" , "influence" , 0 , false ) ;
236- rulesEngine . selectConfigurationPropertyValue ( "tags" , "club" , 0 , false ) ;
237- rulesEngine . selectConfigurationPropertyValue ( "tags" , "ag" , 0 , false ) ;
238- rulesEngine . selectConfigurationPropertyValue ( "tags" , "ca" , 0 , false ) ;
239- rulesEngine . selectConfigurationPropertyValue ( "tags" , "comittee" , 0 , false ) ;
228+ rulesEngine . checkConfigurationPropertyValue ( "category" , "minute" , 0 , false ) ;
229+ rulesEngine . checkConfigurationPropertyValue ( "category" , "dossier" , 0 , false ) ;
230+ rulesEngine . checkConfigurationPropertyValue ( "category" , "annex" , 0 , false ) ;
231+ rulesEngine . checkConfigurationPropertyValue ( "category" , "action plan" , 0 , false ) ;
232+ rulesEngine . checkConfigurationPropertyValue ( "category" , "press release" , 0 , false ) ;
233+ rulesEngine . checkConfigurationPropertyValue ( "category" , "misc" , 0 , false ) ;
234+ rulesEngine . checkConfigurationPropertyValue ( "tags" , "anticipation" , 0 , false ) ;
235+ rulesEngine . checkConfigurationPropertyValue ( "tags" , "influence" , 0 , false ) ;
236+ rulesEngine . checkConfigurationPropertyValue ( "tags" , "club" , 0 , false ) ;
237+ rulesEngine . checkConfigurationPropertyValue ( "tags" , "ag" , 0 , false ) ;
238+ rulesEngine . checkConfigurationPropertyValue ( "tags" , "ca" , 0 , false ) ;
239+ rulesEngine . checkConfigurationPropertyValue ( "tags" , "comittee" , 0 , false ) ;
240240
241241 rulesEngine . runRulesEngine ( ) ;
242242
@@ -248,9 +248,9 @@ <h3>{%title%}</h3>
248248 // let cat = $(this).attr('data-cat');
249249 // let tag = $(this).attr('data-tag');
250250 // let year = $(this).attr('data-year');
251- // if (cat) rulesEngine.selectConfigurationPropertyValue ("category",cat,0,false);
252- // if (tag) rulesEngine.selectConfigurationPropertyValue ("tags",tag,0,false);
253- // if (year) rulesEngine.selectConfigurationPropertyValue ("year",year,0,false);
251+ // if (cat) rulesEngine.checkConfigurationPropertyValue ("category",cat,0,false);
252+ // if (tag) rulesEngine.checkConfigurationPropertyValue ("tags",tag,0,false);
253+ // if (year) rulesEngine.checkConfigurationPropertyValue ("year",year,0,false);
254254 // });
255255 let currentTarget = $ ( e . currentTarget ) ;
256256 let cat = currentTarget . attr ( 'data-cat' ) ;
@@ -259,15 +259,15 @@ <h3>{%title%}</h3>
259259 if ( currentTarget . hasClass ( "active" ) )
260260 {
261261 currentTarget . removeClass ( "active" ) ;
262- if ( cat ) rulesEngine . selectConfigurationPropertyValue ( "category" , cat , 0 , false ) ;
263- if ( tag ) rulesEngine . selectConfigurationPropertyValue ( "tags" , tag , 0 , false ) ;
264- if ( year ) rulesEngine . selectConfigurationPropertyValue ( "year" , year , 0 , false ) ;
262+ if ( cat ) rulesEngine . checkConfigurationPropertyValue ( "category" , cat , 0 , false ) ;
263+ if ( tag ) rulesEngine . checkConfigurationPropertyValue ( "tags" , tag , 0 , false ) ;
264+ if ( year ) rulesEngine . checkConfigurationPropertyValue ( "year" , year , 0 , false ) ;
265265 }
266266 else {
267267 currentTarget . addClass ( "active" ) ;
268- if ( cat ) rulesEngine . selectConfigurationPropertyValue ( "category" , cat , 1 , false ) ;
269- if ( tag ) rulesEngine . selectConfigurationPropertyValue ( "tags" , tag , 1 , false ) ;
270- if ( year ) rulesEngine . selectConfigurationPropertyValue ( "year" , year , 1 , false ) ;
268+ if ( cat ) rulesEngine . checkConfigurationPropertyValue ( "category" , cat , 1 , false ) ;
269+ if ( tag ) rulesEngine . checkConfigurationPropertyValue ( "tags" , tag , 1 , false ) ;
270+ if ( year ) rulesEngine . checkConfigurationPropertyValue ( "year" , year , 1 , false ) ;
271271 }
272272 rulesEngine . runRulesEngine ( ) ;
273273 } ,
0 commit comments