1. biolab
  2. Untitled project
  3. benguru

Commits

Miha Stajdohar  committed 91b4077

Disqus fix.

  • Participants
  • Parent commits 86f1d53
  • Branches master

Comments (0)

Files changed (1)

File benchmarks/static/benchmarks/js/controllers.js

View file
                     checked += ($scope.checkboxes.items[orderedData[i].id]) || 0;
                     unchecked += (!$scope.checkboxes.items[orderedData[i].id]) || 0;
                     /* DOES NOT WORK YET!
-                    if ($scope.checkboxes.items[orderedData[i].id]) {
-                        for (var j = 0, l2 = orderedData[i].fields.length; j < l2; j++) {
-                            if (!(orderedData[i].fields[j].name in field_names)) {
-                                field_names[orderedData[i].fields[j].name] = orderedData[i].fields[j].type;
-                            }
-                        }
-                    }
-                    */
+                     if ($scope.checkboxes.items[orderedData[i].id]) {
+                     for (var j = 0, l2 = orderedData[i].fields.length; j < l2; j++) {
+                     if (!(orderedData[i].fields[j].name in field_names)) {
+                     field_names[orderedData[i].fields[j].name] = orderedData[i].fields[j].type;
+                     }
+                     }
+                     }
+                     */
                 }
                 if ((unchecked == 0) || (checked == 0)) {
                     $scope.checkboxes.checked = (checked == total);
             var disqus_shortname = 'benguru';
             var disqus_identifier = bookmarkId;
 
+            DISQUS.reset({
+                reload: true,
+                config: function () {
+                    this.page.identifier = bookmarkId;
+                }
+            });
+
             (function () {
                 var dsq = document.createElement('script');
                 dsq.type = 'text/javascript';