src/pyams_thesaurus/zmi/resources/js/pyams_thesaurus.js
changeset 118 935341eda021
parent 114 e7e4b4146a91
equal deleted inserted replaced
117:140789e60245 118:935341eda021
   190 
   190 
   191 			/**
   191 			/**
   192 			 * Initialize terms lists by adding class to lists headers containing selected terms
   192 			 * Initialize terms lists by adding class to lists headers containing selected terms
   193 			 */
   193 			 */
   194 			initTree: function(element) {
   194 			initTree: function(element) {
   195 				$('input:checked', element).parents('.widget-body:first')
   195 				$('input:checked', element).each(function() {
   196 										   .siblings('header')
   196 					$(this).parents('.widget-body:first')
   197 										   .addClass('active');
   197 						   .siblings('header')
       
   198 						   .addClass('active');
       
   199 				});
   198 			},
   200 			},
   199 
   201 
   200 			/**
   202 			/**
   201 			 * Update header status after term (de)selection
   203 			 * Update header status after term (de)selection
   202 			 */
   204 			 */