Changeset 14974

Show
Ignore:
Timestamp:
02/13/08 12:03:09 (10 months ago)
Author:
w_i
Message:

Fixed js error if the code variable is not found

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.helper.datamanager2/type/php.php

    r14329 r14974  
    3030    { 
    3131        $_MIDCOM->add_jsfile(MIDCOM_STATIC_URL . '/midcom.helper.datamanager2/codepress/codepress.js'); 
    32         $_MIDCOM->add_jsonload("{$this->name}.toggleReadOnly();"); 
     32        $_MIDCOM->add_jsonload("if(typeof {$this->name} != 'undefined'){{$this->name}.toggleReadOnly()}"); 
     33         
    3334        return true; 
    3435    }