// Set visibility on help button

This commit is contained in:
Jerome Nadaud
2013-11-14 14:42:35 +01:00
parent 299a8e9e9f
commit 67eeae0fa2
2 changed files with 4 additions and 2 deletions
@@ -1,4 +1,4 @@
<li class="help-context-{$label|escape:'htmlall':'UTF-8'}" style="display:none"> <li class="help-context-{$label|escape:'htmlall':'UTF-8'}">
<a id="desc-{$label|escape:'htmlall':'UTF-8'}-help" <a id="desc-{$label|escape:'htmlall':'UTF-8'}-help"
class="toolbar_btn" class="toolbar_btn"
href="#" href="#"
+3 -1
View File
@@ -25,8 +25,10 @@ function displayHelpButton(label, iso_user, country_iso_code, _PS_VERSION_){
if(msg.content != 'none' && msg.content != '') if(msg.content != 'none' && msg.content != '')
{ {
$('ul.cc_button').append(msg.content); $('ul.cc_button').append(msg.content);
$('.help-context-'+help_class_name).fadeIn("fast").show(); $('.help-context-'+help_class_name);
} }
else
$('.help-context-'+help_class_name).attr('disabled', 'disabled');
}, },
beforeSend: function(data) beforeSend: function(data)
{ {