Changeset 1721

Show
Ignore:
Timestamp:
08/18/08 16:19:04 (5 months ago)
Author:
lmajano
Message:

Ticket #526 #527
Fixes for sidebar

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • coldbox/trunk/system/includes/coldboxsidebar/ColdBoxSideBar.cfm

    r1719 r1721  
    3737                        </tr> 
    3838                        <tr> 
    39                                 <td><input type="checkbox" class="ColdBoxSideBarCheckBox" name="sbIsDebugmode" value="1" onclick="location.href='#local.debugModeHref#'" #iif(getDebugMode(),DE('checked'),'')#><span class="ColdBoxSideBarCheckboxlabel">Show Debug Panel</span></td> 
     39                                <td><input type="checkbox" class="ColdBoxSideBarCheckBox" name="sbIsDebugmode" value="1" onclick="location.href='#local.debugModeHref#'" <cfif getDebugMode()>checked="true"</cfif>><span class="ColdBoxSideBarCheckboxlabel">Show Debug Panel</span></td> 
    4040                        </tr>    
    4141                        <!--- DebugMode? ---> 
  • coldbox/trunk/system/interceptors/coldboxSideBar.cfc

    r1709 r1721  
    2626                        // Read SideBar XML 
    2727                        readSideBarXML(); 
     28                        /* Check for an app base Path */ 
     29                        if( not propertyExists('baseAppPath') ){ 
     30                                /* Else Default to cgi.script_name */ 
     31                                setProperty('baseAppPath','#CGI.SCRIPT_NAME#'); 
     32                        } 
     33                         
    2834                        // Set css default path 
    29                         setPropertyDefault('cssPath','#CGI.SCRIPT_NAME#?sbContent=css'); 
     35                        setPropertyDefault('cssPath','#getProperty("baseAppPath")#?sbContent=css'); 
    3036                        // Set image default path 
    31                         setPropertyDefault('imagePath','#CGI.SCRIPT_NAME#?sbContent=img'); 
     37                        setPropertyDefault('imagePath','#getProperty("baseAppPath")#?sbContent=img'); 
     38                         
    3239                        // Set js path 
    33                         setProperty( 'jsPath', '#CGI.SCRIPT_NAME#?sbContent=js' ); 
     40                        setProperty( 'jsPath', '#getProperty("baseAppPath")#?sbContent=js' ); 
    3441                                                 
    3542                        // URL params which are used by the sideBar 
     
    291298                        </cfif> 
    292299                </cfloop>                
    293                 <cfreturn "#CGI.SCRIPT_NAME#?#noSideBarQueryString#">          
     300                <cfreturn "#getProperty('baseAppPath')#?#noSideBarQueryString#">               
    294301        </cffunction> 
    295302 

Copyright 2006 ColdBox Framework by Luis Majano