Moonsoft Software Solutions

Change size of name field at admin

Started 21 Oct 2011 · 1 reply

  1. anonymous
    Hello,

    Quick question, is it possible to make the name filed in the calculator admin longer? Is there a piece of code I can change?
  2. Moonsoft support
    Yes, you should change code in administrator/components/com_calcbuilder/views/utility/tmpl/edit.php :
    - line 228 change
    var name = new Element('input').setProperties({type:'text',size:'10',id:'name'+counter,'name':'name'+counter});
    to
    var name = new Element('input').setProperties({type:'text',size:'20',id:'name'+counter,'name':'name'+counter});

    - line 408 change
    < input size="10" name="name< ? php echo $counter; ?>" id="name" type="text" value="< ? php echo $field->name; ?>">
    to
    < input size="20" name="name< ? php echo $counter; ?>" id="name" type="text" value="< ? php echo $field->name; ?>">

Still stuck?

Customers with an active license can open a support ticket.

Log in to open a ticket