// help access
This commit is contained in:
@@ -36,19 +36,6 @@
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<script language="javascript">
|
<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() {
|
$(function() {
|
||||||
//get reference on save link
|
//get reference on save link
|
||||||
btn_save = $('span[class~="process-icon-save"]').parent();
|
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 = '';
|
var button = '';
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
@@ -12,12 +21,12 @@ function getHelpButton(label){
|
|||||||
'version' : _PS_VERSION_
|
'version' : _PS_VERSION_
|
||||||
},
|
},
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async : false,
|
|
||||||
success: function(msg) {
|
success: function(msg) {
|
||||||
if(msg.content != 'none' && msg.content != '')
|
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