@@ -505,5 +505,14 @@ function($, _, moment) {
return (size.toFixed(decimals) + ext);
};
+ kbn.msFormat = function(size) {
+ if (size < 500) {
+ return size.toFixed(0) + " ms";
+ }
+ else {
+ return (size / 1000).toFixed(0) + " s";
+ };
+
return kbn;
});
@@ -61,8 +61,7 @@ function (angular, $) {
$scope.kbnJqUiDraggableOptions = {
revert: 'invalid',
- helper: function(event) {
- console.log(event);
+ helper: function() {
return $('<div style="width:200px;height:100px;background: rgba(100,100,100,0.50);"/>');
},
placeholder: 'keep'