1. pombredanne
  2. DJFacet

Commits

magicrebirth  committed 56a67f3

updated djfacet.js

  • Participants
  • Parent commits d65cf83
  • Branches default

Comments (0)

Files changed (2)

File demoproject/apps/djfacet/static/djfacet/js/djfacet.js

View file
  • Ignore whitespace
 		
 	if (el.text() == "+") {
 		el.text("-");
+		el.addClass('closeFacet');
 	} 	
 	else {
 		$(el).text("+");
+		el.removeClass('closeFacet');
 		}
 }	
 

File demoproject/static/djfacet_beax/js/djfacet.js

View file
  • Ignore whitespace
 	
 	if (!(span_openclosefacet.hasClass("values_are_updated"))) {		
 
+		disable_UI("Updating available filters...");
+		
 		span_openclosefacet.addClass("values_are_updated");	 // so that it doesn't get reloaded unless necessary
 		var facet_title = span_openclosefacet.parent();
 		span_openclosefacet.parent().next().remove();
 		
 		var ajax_url = "update_facet?activefacet=" + activefacetid + "&resulttype=" + resulttype + newurl_stub
 
-		$.get(ajax_url,
-			 { },
-				  function(data){
+		$.get(ajax_url, function(data){
 						$(facet_title).after(data); 
-			
-				  }
-	   );					
+						enable_UI();			
+				  		});		
 	}	
 	else {
 		//alert("here");