Started on row editor, removed lots of 's for nice speed increase

This commit is contained in:
Rashid Khan
2013-02-12 16:25:39 -07:00
parent 0703dd8799
commit 81962c831b
13 changed files with 105 additions and 66 deletions
+2 -7
View File
@@ -17,9 +17,6 @@ angular.module('kibana.table', [])
$scope.init = function () {
$scope.set_listeners($scope.panel.group)
$scope.$watch(function() {
return angular.toJson($scope.panel.sort)
}, function(){$scope.get_data()});
// Now that we're all setup, request the time from our group
eventBus.broadcast($scope.$id,$scope.panel.group,"get_time")
}
@@ -34,6 +31,7 @@ angular.module('kibana.table', [])
});
eventBus.register($scope,'sort', function(event,sort){
$scope.panel.sort = _.clone(sort);
$scope.get_data();
});
eventBus.register($scope,'selected_fields', function(event, fields) {
$scope.panel.fields = _.clone(fields)
@@ -45,6 +43,7 @@ angular.module('kibana.table', [])
$scope.panel.sort[1] = $scope.panel.sort[1] == 'asc' ? 'desc' : 'asc';
else
$scope.panel.sort[0] = field;
$scope.get_data();
}
$scope.toggle_field = function(field) {
@@ -89,10 +88,6 @@ angular.module('kibana.table', [])
});
}
$scope.move_field = function(field,dir) {
console.log(field,dir)
}
// Broadcast a list of all fields. Note that receivers of field array
// events should be able to receive from multiple sources, merge, dedupe
// and sort on the fly if needed.