1import { GetTranslation } from './GUITranslation.js' 2 3export function renderObjectPopOver(header, body, object) { 4 $(object).popover({ content: body, title: header, html: true, trigger: 'manual' }); 5 $(object).popover('show'); 6} 7export function renderObjectPopOverRigth(header, body, object) { 8 $(object).popover({ content: body, title: header, html: true, trigger: 'manual', placement: 'top' }); 9 $(object).popover('show'); 10 11 $(window).on('resize', function () { 12 $(object).popover('show'); 13 }); 14} 15export function showTooltip(header, body, object) { 16 $(object).popover({ content: body, title: header, html: true, trigger: 'hover', placement: 'left' }); 17 $(object).popover('show'); 18} 19export function MakeEditable(targetClass) { 20 $('.' + targetClass).each(function () { 21 $(this).html('<input type="text" class="form-control" value="' + $(this).html() + '" />'); 22 }); 23 $('.' + targetClass + '.editEmail').each(function () { 24 $(this).html('<input type="text" class="form-control editEmail" value="' + $(this).find(':input').val() + '" data-initial="' + $(this).find(':input').val() + '" />'); 25 }); 26 $('.' + targetClass + '.editPubEmail').each(function () { 27 $(this).html('<input type="text" class="form-control editPubEmail" value="' + $(this).find(':input').val() + '" data-initial="' + $(this).find(':input').val() + '" />'); 28 }); 29 $('.' + targetClass + '.editDate').each(function () { 30 $(this).html('<input type="text" name="date" class="form-control datepicker" value="' + $(this).find(':input').val() + '" />'); 31 }); 32} 33export function MakeUneditable(targetClass) { 34 $('.' + targetClass).each(function () { 35 $(this).html($(this).attr('prevValue')); 36 }); 37} 38export function MakeUneditableAfterSaved(targetClass, VatnoToBeValidate) { 39 $('.' + targetClass).each(function () { 40 if (VatnoToBeValidate != "" && $(this).attr('id') == 'vatNo') { 41 $(this).html(VatnoToBeValidate + "<span id='contactWithSupport' style='color:red'> (" + GetTranslation("MSG.ValidationInProgress") + ")</span>"); 42 $(this).removeClass("companyInfoEditClass"); 43 } else { 44 var inputValue = $(this).find('input').val(); 45 $(this).html(inputValue); 46 $(this).attr("prevValue", inputValue); 47 } 48 }); 49} 50export function MakePopOverAvailable(targetClass) { 51 $('.' + targetClass).each(function () { 52 $(this).parent().find('label').addClass('additionalInfo'); 53 }); 54} 55export function MakePopOverUnavailable(targetClass) { 56 $('.' + targetClass).each(function () { 57 $(this).parent().find('label').removeClass('additionalInfo'); 58 }); 59} 60export function ShowAjaxLoader() { 61 $('#ajaxLoader').show(); 62} 63export function HideAjaxLoader() { 64 $('#ajaxLoader').hide(); 65} 66export function setLeftPanelHeight() { 67 var width = $(window).width() - 260; 68 $('#accountDetails').css("width", width + "px"); 69 70 $(".leftpanel").css("height", ""); 71 var height = $(document).height(); 72 $(".leftpanel").css("height", height); 73}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.