summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chimere/static/chimere/js/jquery.chimere.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/chimere/static/chimere/js/jquery.chimere.js b/chimere/static/chimere/js/jquery.chimere.js
index 9d4489e..9ec3e48 100644
--- a/chimere/static/chimere/js/jquery.chimere.js
+++ b/chimere/static/chimere/js/jquery.chimere.js
@@ -847,6 +847,23 @@ function category_loaded_callback(cat_numbers){
settings.suspend_load = false;
methods.loadGeoObjects();
},
+ check_categories: function (cat_ids) {
+ /*
+ * Check subcategory list
+ */
+ settings.suspend_load = true;
+ for (idx in cat_ids){
+ $('#category_' + cat_ids[idx]).each(
+ function(){
+ $(this).click();
+ $(this).parent().removeClass();
+ $(this).parent().addClass('selected');
+ }
+ );
+ }
+ settings.suspend_load = false;
+ methods.loadGeoObjects();
+ },
/*
*
*/