// help access

This commit is contained in:
fBrignoli
2012-01-09 16:22:38 +00:00
parent 2d93924716
commit 6619386ebf
2 changed files with 14 additions and 18 deletions
+14 -5
View File
@@ -1,4 +1,13 @@
function getHelpButton(label){
$(document).ready(function (){
displayHelpButton(
help_class_name,
iso_user,
country_iso_code,
_PS_VERSION_
);
});
function displayHelpButton(label, iso_user, country_iso_code, _PS_VERSION_){
var button = '';
$.ajax({
type: 'POST',
@@ -12,12 +21,12 @@ function getHelpButton(label){
'version' : _PS_VERSION_
},
dataType: "json",
async : false,
success: function(msg) {
if(msg.content != 'none' && msg.content != '')
button = msg.content;
{
$('ul.cc_button').append(msg.content);
$('.help-context-'+help_class_name).fadeIn("fast").show();
}
}
});
return button;
}