mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
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()
|
||||
{
|
||||
setforfree();
|
||||
if (jQuery('#select_type').val() >= 0)
|
||||
{
|
||||
/* focus work on a standard textarea but not if field was replaced with CKEDITOR */
|
||||
|
||||
if (jQuery('#select_type').val() >= 0) {
|
||||
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();
|
||||
/* focus if CKEDITOR */
|
||||
if (typeof CKEDITOR == "object" && typeof CKEDITOR.instances != "undefined")
|
||||
{
|
||||
/* this focus code works for CKEDITOR */
|
||||
if (typeof CKEDITOR == "object" && typeof CKEDITOR.instances != "undefined") {
|
||||
var editor = CKEDITOR.instances['dp_desc'];
|
||||
if (editor) { editor.focus(); }
|
||||
if (editor) {
|
||||
editor.focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
console.log("Hide/show date according to product type");
|
||||
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->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>';
|
||||
|
||||
|
|
@ -2242,7 +2243,7 @@ function top_menu_user($hideloginname = 0, $urllogout = '')
|
|||
</div>';
|
||||
} else {
|
||||
$btnUser = '<!-- div for user link -->
|
||||
<div id="topmenu-login-dropdown" class="userimg atoplogin dropdown user user-menu inline-block">
|
||||
<div id="topmenu-login-dropdown" class="userimg atoplogin dropdown user user-menu inline-block">
|
||||
<a href="'.DOL_URL_ROOT.'/user/card.php?id='.$user->id.'">
|
||||
'.$userImage.'
|
||||
<span class="hidden-xs maxwidth200 atoploginusername hideonsmartphone">'.dol_trunc($user->firstname ? $user->firstname : $user->login, 10).'</span>
|
||||
|
|
@ -2273,10 +2274,12 @@ function top_menu_user($hideloginname = 0, $urllogout = '')
|
|||
});
|
||||
|
||||
$("#topmenulogincompanyinfo-btn").on("click", function() {
|
||||
console.log("Clik on topmenulogincompanyinfo-btn");
|
||||
$("#topmenulogincompanyinfo").slideToggle();
|
||||
});
|
||||
|
||||
$("#topmenuloginmoreinfo-btn").on("click", function() {
|
||||
console.log("Clik on topmenuloginmoreinfo-btn");
|
||||
$("#topmenuloginmoreinfo").slideToggle();
|
||||
});';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user