Merge branch 'master' of ssh://git.onelab.eu/git/myslice
authorAnthony Garcia <anthony.garcia@inria.fr>
Fri, 6 Dec 2013 16:40:27 +0000 (17:40 +0100)
committerAnthony Garcia <anthony.garcia@inria.fr>
Fri, 6 Dec 2013 16:40:27 +0000 (17:40 +0100)
1  2 
plugins/senslabmap/static/js/senslabmap.js

          }
          this.nodes[site].push(node);
        } else {
-         console.warn("node has no site:");
-         console.warn(node);
+ // xxx would need a smarter way to report these only on nodes that deserve it
+ // these messages are all over the place in a PL setup and tend to hide helpful signal
+ //        console.warn("node has no site:");
+ //        console.warn(node);
        }
      },
      
      on_all_query_done: function() {
 -      var self = this;
 +      var uuid = this.options.query_uuid;
 +      var key = this.key
        
 -      Senslab.createMaps($('#maps-container'), this.sites, this.nodes);
 +      Senslab.createMaps($("#maps-container"), this.sites, this.nodes);
        Senslab.notify = function(node) {
 -        manifold.raise_event(self.options.query_uuid,
 -                             node.boot_state == "Alive" ? SET_REMOVED : SET_ADD,
 -                             node[self.key]
 -                            );
 +        manifold.raise_event(uuid, node.selected ? SET_ADD : SET_REMOVED, node[key]);
        }
      }
    });