// help access
This commit is contained in:
@@ -36,19 +36,6 @@
|
||||
</ul>
|
||||
|
||||
<script language="javascript">
|
||||
if (helpboxes > 0)
|
||||
{
|
||||
$(document).ready(function (){
|
||||
button = getHelpButton(help_class_name);
|
||||
|
||||
if (button != '')
|
||||
{
|
||||
$('ul.cc_button').append(button);
|
||||
$('.help-context-'+help_class_name).fadeIn("fast").show();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(function() {
|
||||
//get reference on save link
|
||||
btn_save = $('span[class~="process-icon-save"]').parent();
|
||||
|
||||
+14
-5
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user