From de37b8fc911b72b6413461c468602d9fdaf33e65 Mon Sep 17 00:00:00 2001 From: jaden <noreply@example.com> Date: Thu, 8 Jun 2017 16:05:03 +0200 Subject: [PATCH] use btn instead of span for label save, allow save on enter --- .../reports/static/reports/app/directives/editableLabel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beat/web/reports/static/reports/app/directives/editableLabel.js b/beat/web/reports/static/reports/app/directives/editableLabel.js index d2b9d0893..c18dde2a2 100644 --- a/beat/web/reports/static/reports/app/directives/editableLabel.js +++ b/beat/web/reports/static/reports/app/directives/editableLabel.js @@ -50,8 +50,8 @@ angular.module('reportApp').directive("editableLabel", [function(){ class='form-control' placeholder='A label...' ng-model='obj[field]'/> - <span class='input-group-addon' ng-click='toggleEditingGroupName()' style='cursor: pointer;'> - Save + <span class='input-group-btn' ng-click='toggleEditingGroupName()'> + <button type='submit' class='btn btn-default'>Save</button> </span> </span> </form> -- GitLab