From 6cde1f77329223c47f89a56d7a1b2a25e3f0edcd Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Thu, 23 Apr 2015 14:11:50 +1000 Subject: [PATCH] Add tooltip with value for selectors --- app/assets/javascripts/templates/active_selector.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/templates/active_selector.html.haml b/app/assets/javascripts/templates/active_selector.html.haml index 7c9412760e..87fb066636 100644 --- a/app/assets/javascripts/templates/active_selector.html.haml +++ b/app/assets/javascripts/templates/active_selector.html.haml @@ -1,2 +1,3 @@ %li{ ng: { class: "{active: selector.active}" } } - %a{ ng: { transclude: true, class: "{active: selector.active}" } } + %a{ "tooltip" => "{{selector.object.value}}", "tooltip-placement" => "bottom", + ng: { transclude: true, class: "{active: selector.active, 'has-tip': selector.object.value}" } }