Changeset 2623 for trunk/phpgwapi/js


Ignore:
Timestamp:
04/23/10 10:41:56 (14 years ago)
Author:
rodsouza
Message:

Ticket #1009 - Organizando o HTML do template default.

Location:
trunk/phpgwapi/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/js/expressoAjax/dom.js

    r2618 r2623  
     1XEvents.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 
     40function 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 
    152function borkb(size){ 
    253        kbyte = 1024; 
     
    193244        extra = document.getElementById("extraButton"); 
    194245        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>'; 
    196247        var neverExpires = new Date("January 01, 2100 00:00:00"); 
    197248        document.cookie = "showHeader=true"+ 
  • trunk/phpgwapi/js/tools/xobject.js

    r2561 r2623  
    1818                } 
    1919        }; 
     20 
     21        String.prototype.trim = function( ) 
     22        { 
     23                return this.replace( /^ +| +$/g, '' ); 
     24        } 
    2025 
    2126        function f( n ) 
     
    6166        { 
    6267                escapable.lastIndex = 0; 
    63                 return escapable.test(string) ? 
     68                return escapable.test( string ) ? 
    6469                        '"' + string.replace(escapable, function (a) 
    65                                         { 
    66                                         var c = meta[a]; 
    67                                         return typeof c === 'string' ? c : 
     70                        { 
     71                                var c = meta[ a ]; 
     72                                return typeof c === 'string' ? c : 
    6873                                        '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); 
    69                                         }) + '"' : 
    70                 '"' + string + '"'; 
     74                        } ) + '"' : '"' + string + '"'; 
    7175        } 
    7276 
Note: See TracChangeset for help on using the changeset viewer.