Changeset 1721
- Timestamp:
- 08/18/08 16:19:04 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
coldbox/trunk/system/includes/coldboxsidebar/ColdBoxSideBar.cfm
r1719 r1721 37 37 </tr> 38 38 <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> 40 40 </tr> 41 41 <!--- DebugMode? ---> coldbox/trunk/system/interceptors/coldboxSideBar.cfc
r1709 r1721 26 26 // Read SideBar XML 27 27 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 28 34 // Set css default path 29 setPropertyDefault('cssPath','# CGI.SCRIPT_NAME#?sbContent=css');35 setPropertyDefault('cssPath','#getProperty("baseAppPath")#?sbContent=css'); 30 36 // Set image default path 31 setPropertyDefault('imagePath','#CGI.SCRIPT_NAME#?sbContent=img'); 37 setPropertyDefault('imagePath','#getProperty("baseAppPath")#?sbContent=img'); 38 32 39 // Set js path 33 setProperty( 'jsPath', '# CGI.SCRIPT_NAME#?sbContent=js' );40 setProperty( 'jsPath', '#getProperty("baseAppPath")#?sbContent=js' ); 34 41 35 42 // URL params which are used by the sideBar … … 291 298 </cfif> 292 299 </cfloop> 293 <cfreturn "# CGI.SCRIPT_NAME#?#noSideBarQueryString#">300 <cfreturn "#getProperty('baseAppPath')#?#noSideBarQueryString#"> 294 301 </cffunction> 295 302
