Page 1 / 1
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; }
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.