Added loader animation, framework for adjustable interval time stamped indices

This commit is contained in:
Rashid Khan
2013-02-27 10:00:39 -07:00
parent ffbddb4fae
commit 4c948e0bc5
14 changed files with 124 additions and 115 deletions
+3 -1
View File
@@ -100,7 +100,7 @@ angular.module('kibana.controllers', [])
row.collapse = row.collapse ? false : true;
if (!row.collapse) {
$timeout(function() {
$scope.$broadcast('render')
$scope.send_render();
});
}
}
@@ -115,6 +115,8 @@ angular.module('kibana.controllers', [])
$scope.reset_panel = function() {
$scope.panel = {
loading: false,
error: false,
span: 3,
editable: true,
group: ['default'],
+1 -1
View File
@@ -7,7 +7,7 @@ angular.module('kibana.directives', [])
return {
restrict: 'E',
link: function(scope, elem, attrs) {
var template = '<i class="icon-edit pointer editlink" bs-modal="\'partials/paneleditor.html\'" ng-show="panel.editable != false"></i>'+
var template = '<img src="common/img/load.gif" class="panel-loading" ng-show="panel.loading == true"> <i class="icon-edit pointer editlink" bs-modal="\'partials/paneleditor.html\'" ng-show="panel.editable != false"></i>'+
'<h4>{{panel.title}}</h4>';
elem.prepend($compile(angular.element(template))(scope));
}