Ignore:
Timestamp:
03/21/05 17:46:51 (15 years ago)
Author:
yermol
Message:

now uses PHP_SELF to figure out installation directory URL.
changed plugin to plugin and f to function everywhere.
updated README.

Location:
trunk/plugins/ImageManager/assets
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/ImageManager/assets/editorFrame.js

    r43 r48  
    3434                  // a trailing & 
    3535 
    36         var url = _backend_url + "f=editorFrame&img="+currentImageFile+"&action=crop&params="+parseInt(t_cx.value)+','+parseInt(t_cy.value)+','+ parseInt(t_cw.value)+','+parseInt(t_ch.value); 
     36        var url = _backend_url + "__function=editorFrame&img="+currentImageFile+"&action=crop&params="+parseInt(t_cx.value)+','+parseInt(t_cy.value)+','+ parseInt(t_cw.value)+','+parseInt(t_ch.value); 
    3737 
    3838        //alert(url); 
     
    4343    else if (action == 'scale') 
    4444    { 
    45         var url = _backend_url + "f=editorFrame&img="+currentImageFile+"&action=scale&params="+parseInt(s_sw.value)+','+parseInt(s_sh.value); 
     45        var url = _backend_url + "__function=editorFrame&img="+currentImageFile+"&action=scale&params="+parseInt(s_sw.value)+','+parseInt(s_sh.value); 
    4646        //alert(url); 
    4747        location.href = url; 
     
    5353 
    5454        if(flip.value == 'hoz' || flip.value == 'ver')  
    55             location.href = _backend_url + "f=editorFrame&img="+currentImageFile+"&action=flip&params="+flip.value; 
     55            location.href = _backend_url + "__function=editorFrame&img="+currentImageFile+"&action=flip&params="+flip.value; 
    5656        else if (isNaN(parseFloat(r_ra.value))==false) 
    57             location.href = _backend_url + "f=editorFrame&img="+currentImageFile+"&action=rotate&params="+parseFloat(r_ra.value); 
     57            location.href = _backend_url + "__function=editorFrame&img="+currentImageFile+"&action=rotate&params="+parseFloat(r_ra.value); 
    5858    } 
    5959    else if(action == 'save') { 
     
    7171            var filename = encodeURI(s_file.value); 
    7272            var quality = parseInt(s_quality.value); 
    73             var url = _backend_url + "f=editorFrame&img="+currentImageFile+"&action=save&params="+format[0]+","+quality+"&file="+filename; 
     73            var url = _backend_url + "__function=editorFrame&img="+currentImageFile+"&action=save&params="+format[0]+","+quality+"&file="+filename; 
    7474            //alert(url); 
    7575            location.href = url; 
  • trunk/plugins/ImageManager/assets/images.js

    r43 r48  
    2020                // assume it has a trailing & 
    2121 
    22                 location.href = _backend_url + "f=images&dir="+newDir; 
     22                location.href = _backend_url + "__function=images&dir="+newDir; 
    2323        } 
    2424 
     
    2626        function newFolder(dir, newDir)  
    2727        { 
    28                 location.href = _backend_url + "f=images&dir="+dir+"&newDir="+newDir; 
     28                location.href = _backend_url + "__function=images&dir="+dir+"&newDir="+newDir; 
    2929        } 
    3030 
Note: See TracChangeset for help on using the changeset viewer.