Page include theme being overridden

  • 1
  • Problem
  • Updated 4 years ago
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb

Posted 4 years ago

  • 1
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
var $ = skuid.$;
var field = arguments[0];
var value = arguments[1];

switch( field.mode )
{
    case 'edit':
        skuid.ui.fieldRenderers[field.metadata.displaytype].edit( field, value );
        break;
        
    case 'read':


    case 'readonly':
        // If phone is null, then just skip the rest of the logic
        if ( !value ) break;
        
        var cellElem = field.element.addClass( 'nx-fieldtext' );
        
        var linkElemTemplate =
            '<a href="skype:' + value + '">' +
            value +  ' <div class="inline ui-silk ui-silk-telephone"></div> </a>';

        // mergeRow calls mustache to parse the template and returns the result
        $( field.model.mergeRow( field.row, linkElemTemplate ) )
            .appendTo( cellElem );
        break;
}