Add the country into the popup with info on company.
This commit is contained in:
parent
bc938d86ba
commit
50847efdf8
@ -645,17 +645,20 @@ if (!empty($usemargins) && $user->rights->margins->creer) {
|
|||||||
$("#select_type").change(function()
|
$("#select_type").change(function()
|
||||||
{
|
{
|
||||||
setforfree();
|
setforfree();
|
||||||
if (jQuery('#select_type').val() >= 0)
|
|
||||||
{
|
if (jQuery('#select_type').val() >= 0) {
|
||||||
/* focus work on a standard textarea but not if field was replaced with CKEDITOR */
|
console.log("Set focus on description field");
|
||||||
|
/* this focus code works on a standard textarea but not if field was replaced with CKEDITOR */
|
||||||
jQuery('#dp_desc').focus();
|
jQuery('#dp_desc').focus();
|
||||||
/* focus if CKEDITOR */
|
/* this focus code works for CKEDITOR */
|
||||||
if (typeof CKEDITOR == "object" && typeof CKEDITOR.instances != "undefined")
|
if (typeof CKEDITOR == "object" && typeof CKEDITOR.instances != "undefined") {
|
||||||
{
|
|
||||||
var editor = CKEDITOR.instances['dp_desc'];
|
var editor = CKEDITOR.instances['dp_desc'];
|
||||||
if (editor) { editor.focus(); }
|
if (editor) {
|
||||||
|
editor.focus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
console.log("Hide/show date according to product type");
|
console.log("Hide/show date according to product type");
|
||||||
if (jQuery('#select_type').val() == '0')
|
if (jQuery('#select_type').val() == '0')
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2104,6 +2104,7 @@ function top_menu_user($hideloginname = 0, $urllogout = '')
|
|||||||
$dropdownBody .= '<br><b>'.$langs->transcountry("ProfId6", $mysoc->country_code).'</b>: <span>'.dol_print_profids(getDolGlobalString("MAIN_INFO_PROFID6"), 6).'</span>';
|
$dropdownBody .= '<br><b>'.$langs->transcountry("ProfId6", $mysoc->country_code).'</b>: <span>'.dol_print_profids(getDolGlobalString("MAIN_INFO_PROFID6"), 6).'</span>';
|
||||||
}
|
}
|
||||||
$dropdownBody .= '<br><b>'.$langs->trans("VATIntraShort").'</b>: <span>'.dol_print_profids(getDolGlobalString("MAIN_INFO_TVAINTRA"), 'VAT').'</span>';
|
$dropdownBody .= '<br><b>'.$langs->trans("VATIntraShort").'</b>: <span>'.dol_print_profids(getDolGlobalString("MAIN_INFO_TVAINTRA"), 'VAT').'</span>';
|
||||||
|
$dropdownBody .= '<br><b>'.$langs->trans("Country").'</b>: <span>'.$langs->trans("Country".$mysoc->country_code).'</span>';
|
||||||
|
|
||||||
$dropdownBody .= '</div>';
|
$dropdownBody .= '</div>';
|
||||||
|
|
||||||
@ -2273,10 +2274,12 @@ function top_menu_user($hideloginname = 0, $urllogout = '')
|
|||||||
});
|
});
|
||||||
|
|
||||||
$("#topmenulogincompanyinfo-btn").on("click", function() {
|
$("#topmenulogincompanyinfo-btn").on("click", function() {
|
||||||
|
console.log("Clik on topmenulogincompanyinfo-btn");
|
||||||
$("#topmenulogincompanyinfo").slideToggle();
|
$("#topmenulogincompanyinfo").slideToggle();
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#topmenuloginmoreinfo-btn").on("click", function() {
|
$("#topmenuloginmoreinfo-btn").on("click", function() {
|
||||||
|
console.log("Clik on topmenuloginmoreinfo-btn");
|
||||||
$("#topmenuloginmoreinfo").slideToggle();
|
$("#topmenuloginmoreinfo").slideToggle();
|
||||||
});';
|
});';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user