Changeset 2623 for trunk/phpgwapi/js
- Timestamp:
- 04/23/10 10:41:56 (14 years ago)
- Location:
- trunk/phpgwapi/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/js/expressoAjax/dom.js
r2618 r2623 1 XEvents.add( window, "onload", function( ) 2 { 3 if ( template == 'classic' ) 4 return false; 5 6 var icons = document.getElementById( "app_icons" ).getElementsByTagName( "td" ); 7 for ( var i = 0; i < icons.length; i++ ) 8 { 9 XEvents.add( icons.item( i ), "onmouseover", function( ) 10 { 11 if ( this.className != "navbar_butOut" ) 12 { 13 this.className = "navbar_butOver"; 14 /*zoom_in( this.firstChild.firstChild.id );*/ 15 } 16 } ); 17 XEvents.add( icons.item( i ), "onmouseout", function( ) 18 { 19 if ( this.className != "navbar_butOut" ) 20 { 21 this.className = "navbar_but"; 22 /*zoom_out( this.firstChild.firstChild.id );*/ 23 } 24 } ); 25 XEvents.add( icons.item( i ), "onclick", function( ) 26 { 27 if ( this.className != "navbar_butOut" ) 28 { 29 this.className = "navbar_butOut"; 30 /*zoom_out( this.firstChild.firstChild.id );*/ 31 var app = document.getElementById( curr_app ); 32 if ( app ) 33 app.parentNode.parentNode.className= "navbar_but"; 34 //curr_app = "' . str_replace( '_', '', $app ) . 'id" 35 } 36 } ); 37 } 38 } ); 39 40 function openWindow( newWidth, newHeight, link ) 41 { 42 newScreenX = screen.width - newWidth; 43 newScreenY = 0; 44 Window1 = window.open( link, "", 45 "width=" + newWidth + ", height=" + newHeight 46 + ", screenX=" + newScreenX + ", screenY=" + newScreenY 47 + ", top=" + newScreenY + ", left=" + newScreenX 48 + ", toolbar=no, scrollbars=yes, resizable=no" 49 ); 50 } 51 1 52 function borkb(size){ 2 53 kbyte = 1024; … … 193 244 extra = document.getElementById("extraButton"); 194 245 extra.style.visibility = "hidden"; 195 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>'; 196 247 var neverExpires = new Date("January 01, 2100 00:00:00"); 197 248 document.cookie = "showHeader=true"+ -
trunk/phpgwapi/js/tools/xobject.js
r2561 r2623 18 18 } 19 19 }; 20 21 String.prototype.trim = function( ) 22 { 23 return this.replace( /^ +| +$/g, '' ); 24 } 20 25 21 26 function f( n ) … … 61 66 { 62 67 escapable.lastIndex = 0; 63 return escapable.test( string) ?68 return escapable.test( string ) ? 64 69 '"' + string.replace(escapable, function (a) 65 66 var c = meta[a];67 70 { 71 var c = meta[ a ]; 72 return typeof c === 'string' ? c : 68 73 '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); 69 }) + '"' : 70 '"' + string + '"'; 74 } ) + '"' : '"' + string + '"'; 71 75 } 72 76
Note: See TracChangeset
for help on using the changeset viewer.