From e299b87ed4452d568ca3adf6c30526a86b51d27c Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 31 Aug 2013 08:49:02 -0400 Subject: [PATCH] Update tag tab disabled status CRM-13176 ---------------------------------------- * CRM-13176: Enhance styling of "View Contact" tabs to indicate empty/non-empty tags http://issues.civicrm.org/jira/browse/CRM-13176 --- templates/CRM/Tag/Form/Tag.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/CRM/Tag/Form/Tag.tpl b/templates/CRM/Tag/Form/Tag.tpl index 6ea05788df..d75cee5b87 100644 --- a/templates/CRM/Tag/Form/Tag.tpl +++ b/templates/CRM/Tag/Form/Tag.tpl @@ -77,7 +77,8 @@ //showing count of tags in summary tab var existingTagsInTagset = cj('.token-input-delete-token-facebook').length; var tagCount = cj("#tagtree input:checkbox:checked").length + existingTagsInTagset; - cj( '.ui-tabs-nav #tab_tag a' ).html( 'Tags ' + tagCount + ''); + cj('#tab_tag a em').html('' + tagCount); + tagCount ? cj('#tab_tag').removeClass('disabled') : cj('#tab_tag').addClass('disabled'); //update summary tab tagLabels = tagsArray.join(', '); -- 2.25.1