[javascript] indentation fixes + missing semi colons
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Thu, 06 Nov 2008 13:01:08 +0100
changeset 4 8a607bdc11dc
parent 3 512e9bd0685a
child 5 64072193bd48
[javascript] indentation fixes + missing semi colons
web/data/cubicweb.formfilter.js
--- a/web/data/cubicweb.formfilter.js	Wed Nov 05 13:26:27 2008 -0800
+++ b/web/data/cubicweb.formfilter.js	Thu Nov 06 13:01:08 2008 +0100
@@ -17,32 +17,32 @@
 }
 
 function facetFormContent(form) {
-  var names = [];
-  var values = [];
-  jQuery(form).find('.facet').each(function () {
-      var facetName = jQuery(this).find('.facetTitle').attr('cubicweb:facetName');
-      var facetValues = jQuery(this).find('.facetValueSelected').each(function(x) {
-	  names.push(facetName);
-	  values.push(this.getAttribute('cubicweb:value'));
-      });
-  });
-  jQuery(form).find('input').each(function () {
-      names.push(this.name);
-      values.push(this.value);
-  });
+    var names = [];
+    var values = [];
+    jQuery(form).find('.facet').each(function () {
+        var facetName = jQuery(this).find('.facetTitle').attr('cubicweb:facetName');
+        var facetValues = jQuery(this).find('.facetValueSelected').each(function(x) {
+  	    names.push(facetName);
+  	    values.push(this.getAttribute('cubicweb:value'));
+        });
+    });
+    jQuery(form).find('input').each(function () {
+        names.push(this.name);
+        values.push(this.value);
+    });
     jQuery(form).find('select option[@selected]').each(function () {
 	names.push(this.parentNode.name);
 	values.push(this.value);
     });
-  return [names, values];
+    return [names, values];
 }
 
 function buildRQL(divid, vid, paginate, vidargs) {
     jQuery(CubicWeb).trigger('facets-content-loading', [divid, vid, paginate, vidargs]);
     var form = getNode(divid+'Form');
     var zipped = facetFormContent(form);
-    zipped[0].push('facetargs')
-    zipped[1].push(vidargs)
+    zipped[0].push('facetargs');
+    zipped[1].push(vidargs);
     var d = async_remote_exec('filter_build_rql', zipped[0], zipped[1]);
     d.addCallback(function(result) {
 	var rql = result[0];
@@ -172,7 +172,7 @@
 	var facetargs = form.attr('cubicweb:facetargs');
 	if (facetargs) {
 	    form.find('div.facet').each(function() {
-		var facet = jQuery(this);	
+		var facet = jQuery(this);
 		var lastSelected = null;
 		facet.find('div.facetCheckBox').each(function (i) {
 		    var $this = jQuery(this);