Changeset 61 for trunk/app/views/helpers

Show
Ignore:
Timestamp:
08/09/07 20:47:40 (16 months ago)
Author:
aarkerio
Message:

General update

Location:
trunk/app/views/helpers
Files:
1 removed
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/helpers/fck.php

    r36 r61  
    66        $did = ''; 
    77         
    8         foreach (explode('/', $id) as $v) { 
     8        foreach (explode('/', $id) as $v)  
     9        { 
    910             $did .= ucfirst($v); 
    1011        } 
     
    2425</script> 
    2526FCK_CODE; 
     27 } 
     28 
     29public function fckAjax()  
     30{ 
     31return <<<FCK_CODE 
     32<script type="text/javascript"> 
     33function MyFCKClass(){ 
     34    this.UpdateEditorFormValue = function(){ 
     35        for ( i = 0; i < parent.frames.length; ++i ) 
     36            if ( parent.frames[i].FCK )parent.frames[i].FCK.UpdateLinkedField(); 
     37        } 
    2638    } 
     39    var MyFCKObject = new MyFCKClass(); 
     40</script> 
     41FCK_CODE; 
     42} 
    2743} 
    2844?>