Update with new functionality
This commit is contained in:
parent
6809dab2c0
commit
c1ceefb70f
@ -3548,7 +3548,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
|
||||
'object_salary', 'object_shipment', 'object_share-alt', 'object_supplier_invoice', 'object_supplier_invoicea', 'object_supplier_invoiced', 'object_supplier_order', 'object_supplier_proposal', 'object_service', 'object_stock',
|
||||
'object_technic', 'object_ticket', 'object_trip', 'object_user', 'object_group', 'object_member',
|
||||
'object_phoning', 'object_phoning_mobile', 'object_phoning_fax', 'object_email', 'object_website', 'object_movement',
|
||||
'off', 'on', 'order', 'copy',
|
||||
'off', 'on', 'order',
|
||||
'paiment', 'play', 'pdf', 'phone', 'playdisabled', 'previous', 'poll', 'pos', 'printer', 'product', 'propal', 'stock', 'resize', 'service', 'stats', 'trip',
|
||||
'setup', 'share-alt', 'sign-out', 'split', 'stripe', 'stripe-s', 'switch_off', 'switch_on', 'tools', 'unlink', 'uparrow', 'user', 'vcard', 'wrench',
|
||||
'github', 'jabber', 'skype', 'twitter', 'facebook', 'linkedin', 'instagram', 'snapchat', 'youtube', 'google-plus-g', 'whatsapp',
|
||||
|
||||
@ -1128,4 +1128,3 @@ ConfirmAffectTagQuestion=Are you sure you want to affect tags to the %s selected
|
||||
CategTypeNotFound=No tag type found for type of records
|
||||
CopiedToClipboard=Copied to clipboard
|
||||
InformationOnLinkToContract=This amount is only the total of all the lines of the contract. No notion of time is taken into consideration.
|
||||
HelpCopyToClipboardShort=Copier dans le presse-papier
|
||||
|
||||
@ -1985,13 +1985,13 @@ function top_menu_user($hideloginname = 0, $urllogout = '')
|
||||
$dropdownBody .= '<span id="topmenulogincompanyinfo-btn"><i class="fa fa-caret-right"></i> '.$langs->trans("ShowCompanyInfos").'</span>';
|
||||
$dropdownBody .= '<div id="topmenulogincompanyinfo" >';
|
||||
|
||||
if (!empty($conf->global->MAIN_INFO_SIREN)) $dropdownBody .= '<br><b>'.$langs->transcountry("ProfId1Short", $mysoc->country_code).'</b>: <span>'.$conf->global->MAIN_INFO_SIREN.'</span> <span class="copyToClipboard">'.img_picto($langs->trans("HelpCopyToClipboardShort"), 'copy').'</span></i>';
|
||||
if (!empty($conf->global->MAIN_INFO_SIRET)) $dropdownBody .= '<br><b>'.$langs->transcountry("ProfId2Short", $mysoc->country_code).'</b>: <span>'.$conf->global->MAIN_INFO_SIRET.'</span> <span class="copyToClipboard">'.img_picto($langs->trans("HelpCopyToClipboardShort"), 'copy').'</span></i>';
|
||||
if (!empty($conf->global->MAIN_INFO_APE)) $dropdownBody .= '<br><b>'.$langs->transcountry("ProfId3Short", $mysoc->country_code).'</b>: <span>'.$conf->global->MAIN_INFO_APE.'</span> <span class="copyToClipboard">'.img_picto($langs->trans("HelpCopyToClipboardShort"), 'copy').'</span></i>';
|
||||
if (!empty($conf->global->MAIN_INFO_RCS)) $dropdownBody .= '<br><b>'.$langs->transcountry("ProfId4Short", $mysoc->country_code).'</b>: <span>'.$conf->global->MAIN_INFO_RCS.'</span> <span class="copyToClipboard">'.img_picto($langs->trans("HelpCopyToClipboardShort"), 'copy').'</span></i>';
|
||||
if (!empty($conf->global->MAIN_INFO_PROFID5)) $dropdownBody .= '<br><b>'.$langs->transcountry("ProfId5Short", $mysoc->country_code).'</b>: <span>'.$conf->global->MAIN_INFO_PROFID5.'</span> <span class="copyToClipboard">'.img_picto($langs->trans("HelpCopyToClipboardShort"), 'copy').'</span></i>';
|
||||
if (!empty($conf->global->MAIN_INFO_PROFID6)) $dropdownBody .= '<br><b>'.$langs->transcountry("ProfId6Short", $mysoc->country_code).'</b>: <span>'.$conf->global->MAIN_INFO_PROFID6.'</span> <span class="copyToClipboard">'.img_picto($langs->trans("HelpCopyToClipboardShort"), 'copy').'</span></i>';
|
||||
if (!empty($conf->global->MAIN_INFO_TVAINTRA)) $dropdownBody .= '<br><b>'.$langs->trans("VATIntraShort").'</b>: <span>'.$conf->global->MAIN_INFO_TVAINTRA.'</span> <span class="copyToClipboard">'.img_picto($langs->trans("HelpCopyToClipboardShort"), 'copy').'</span></i>';
|
||||
if (!empty($conf->global->MAIN_INFO_SIREN)) $dropdownBody .= '<br><b>'.$langs->transcountry("ProfId1Short", $mysoc->country_code).'</b>: <span>'.showValueWithClipboardCPButton($conf->global->MAIN_INFO_SIREN).'</span>';
|
||||
if (!empty($conf->global->MAIN_INFO_SIRET)) $dropdownBody .= '<br><b>'.$langs->transcountry("ProfId2Short", $mysoc->country_code).'</b>: <span>'.showValueWithClipboardCPButton($conf->global->MAIN_INFO_SIRET).'</span>';
|
||||
if (!empty($conf->global->MAIN_INFO_APE)) $dropdownBody .= '<br><b>'.$langs->transcountry("ProfId3Short", $mysoc->country_code).'</b>: <span>'.showValueWithClipboardCPButton($conf->global->MAIN_INFO_APE).'</span>';
|
||||
if (!empty($conf->global->MAIN_INFO_RCS)) $dropdownBody .= '<br><b>'.$langs->transcountry("ProfId4Short", $mysoc->country_code).'</b>: <span>'.showValueWithClipboardCPButton($conf->global->MAIN_INFO_RCS).'</span>';
|
||||
if (!empty($conf->global->MAIN_INFO_PROFID5)) $dropdownBody .= '<br><b>'.$langs->transcountry("ProfId5Short", $mysoc->country_code).'</b>: <span>'.showValueWithClipboardCPButton($conf->global->MAIN_INFO_PROFID5).'</span>';
|
||||
if (!empty($conf->global->MAIN_INFO_PROFID6)) $dropdownBody .= '<br><b>'.$langs->transcountry("ProfId6Short", $mysoc->country_code).'</b>: <span>'.showValueWithClipboardCPButton($conf->global->MAIN_INFO_PROFID6).'</span>';
|
||||
if (!empty($conf->global->MAIN_INFO_TVAINTRA)) $dropdownBody .= '<br><b>'.$langs->trans("VATIntraShort").'</b>: <span>'.showValueWithClipboardCPButton($conf->global->MAIN_INFO_TVAINTRA).'</span>';
|
||||
|
||||
$dropdownBody .= '</div>';
|
||||
|
||||
@ -2152,13 +2152,6 @@ function top_menu_user($hideloginname = 0, $urllogout = '')
|
||||
$("#topmenu-login-dropdown").toggleClass("open");
|
||||
});
|
||||
|
||||
$(".copyToClipboard").on("click", function() {
|
||||
var dummyContent = $(this).prevAll("span:first").text();
|
||||
var dummy = $("<input id = \"dummy\">").val(dummyContent).appendTo("body").select();
|
||||
document.execCommand("copy");
|
||||
document.getElementById("dummy").remove();
|
||||
});
|
||||
|
||||
$("#topmenulogincompanyinfo-btn").on("click", function() {
|
||||
$("#topmenulogincompanyinfo").slideToggle();
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user