Changeset 2630 for trunk/phpgwapi
- Timestamp:
- 04/27/10 09:54:22 (14 years ago)
- Location:
- trunk/phpgwapi
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.common.inc.php
r2628 r2630 386 386 $GLOBALS['phpgw_info']['flags']['java_script_thirst'] = ''; 387 387 388 $webserver_url = ( ! empty( $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] ) ) ? 389 $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] : '/'; 390 391 if ( strpos( $webserver_url, '/' ) != ( strlen( $webserver_url ) - 1 ) ) 392 $webserver_url .= '/'; 393 388 394 $GLOBALS['phpgw_info']['flags']['java_script_thirst'] .= '<script type="text/javascript">' 389 . 'var URL_SERVER = "' . $ GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ]. '";'395 . 'var URL_SERVER = "' . $webserver_url . '";' 390 396 . 'var template = "' . $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'template_set' ] . '";</script>'; 391 397 -
trunk/phpgwapi/js/expressoAjax/dom.js
r2623 r2630 244 244 extra = document.getElementById("extraButton"); 245 245 extra.style.visibility = "hidden"; 246 but.innerHTML='<a title="' +title + '" onClick="javascript:changeBar()"><img src="' + URL_SERVER + ' /phpgwapi/templates/default/images/up.button.png"></a>';246 but.innerHTML='<a title="' +title + '" onClick="javascript:changeBar()"><img src="' + URL_SERVER + 'phpgwapi/templates/default/images/up.button.png"></a>'; 247 247 var neverExpires = new Date("January 01, 2100 00:00:00"); 248 248 document.cookie = "showHeader=true"+ -
trunk/phpgwapi/js/expressoAjax/expressoAjax.js
r2618 r2630 337 337 if(is_ie) { 338 338 339 this.oxmlhttp.open("GET", URL_SERVER + " /expressoMail1_2/js/"+scriptPath+".js?"+this.updateVersion, false);339 this.oxmlhttp.open("GET", URL_SERVER + "expressoMail1_2/js/"+scriptPath+".js?"+this.updateVersion, false); 340 340 this.oxmlhttp.setRequestHeader('Content-Type','text/plain'); 341 341 this.oxmlhttp.send(null); … … 345 345 } 346 346 else { 347 script.src = URL_SERVER + " /expressoMail1_2/js/"+scriptPath+".js?"+this.updateVersion;347 script.src = URL_SERVER + "expressoMail1_2/js/"+scriptPath+".js?"+this.updateVersion; 348 348 } 349 349 … … 353 353 //------------------------------------ END: Functions for Progress Bar -------------------------------------------------// 354 354 // Default Controller File 355 var URL_DEFAULT = URL_SERVER + " /controller.php?menuaction=";355 var URL_DEFAULT = URL_SERVER + "controller.php?menuaction="; 356 356 // connector object 357 357 var _onmouseup = document.onmouseup; -
trunk/phpgwapi/js/tools/xlink.js
r2628 r2630 7 7 var _divAppboxHeader = null; 8 8 var _loading = new Image( ); 9 _loading.src = URL_SERVER + ' /phpgwapi/images/loading.gif';9 _loading.src = URL_SERVER + 'phpgwapi/images/loading.gif'; 10 10 11 11 function handler( pLink ) … … 68 68 else 69 69 _script.add( _new_scripts[ i ][ 2 ].substr( 70 URL_SERVER.length ,71 _new_scripts[ i ][ 2 ].indexOf( '?' ) - URL_SERVER.length 70 URL_SERVER.length - 1, 71 _new_scripts[ i ][ 2 ].indexOf( '?' ) - URL_SERVER.length + 1 72 72 ) ); 73 73 … … 94 94 if ( _scripts.item( i ).getAttribute( 'src' ) != null ) 95 95 _loaded[ _loaded.length ] = _scripts.item( i ).getAttribute( 'src' ).substr( 96 URL_SERVER.length ,97 _scripts.item( i ).getAttribute( 'src' ).indexOf( '?' ) - URL_SERVER.length 96 URL_SERVER.length - 1, 97 _scripts.item( i ).getAttribute( 'src' ).indexOf( '?' ) - URL_SERVER.length + 1 98 98 ); 99 99 -
trunk/phpgwapi/js/tools/xscript.js
r2628 r2630 26 26 27 27 _connector.go( { 28 "access" : URL_SERVER + ' /controller.php?action=phpgwapi.javascript.get_source&source=' + _new.join( ';' ),28 "access" : URL_SERVER + 'controller.php?action=phpgwapi.javascript.get_source&source=' + _new.join( ';' ), 29 29 "handler" : function( data ) 30 30 {
Note: See TracChangeset
for help on using the changeset viewer.