modules/org.openbravo.client.navigationbarcomponents/src/org/openbravo/client/navigationbarcomponents/templates/user_info.js.ftl
changeset 10773 bdc077357683
equal deleted inserted replaced
8348:a3c1cffa8af7 10773:bdc077357683
       
     1 /*
       
     2  *************************************************************************
       
     3  * The contents of this file are subject to the Openbravo  Public  License
       
     4  * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
       
     5  * Version 1.1  with a permitted attribution clause; you may not  use this
       
     6  * file except in compliance with the License. You  may  obtain  a copy of
       
     7  * the License at http://www.openbravo.com/legal/license.html 
       
     8  * Software distributed under the License  is  distributed  on  an "AS IS"
       
     9  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
       
    10  * License for the specific  language  governing  rights  and  limitations
       
    11  * under the License.
       
    12  * The Original Code is Openbravo ERP.
       
    13  * The Initial Developer of the Original Code is Openbravo SLU
       
    14  * All portions are Copyright (C) 2010 Openbravo SLU
       
    15  * All Rights Reserved.
       
    16  * Contributor(s):  ______________________________________.
       
    17  ************************************************************************
       
    18 */
       
    19 
       
    20 /* jslint */
       
    21     OBAlertIcon.create({}),
       
    22     isc.HLayout.create({membersMargin: 5, layoutLeftMargin: 10, layoutRightMargin: 10, height: "100%", defaultLayoutAlign: "center", members:[
       
    23     isc.ImgButton.create({
       
    24       baseStyle: 'navBarButton',
       
    25       prompt: OB.I18N.getLabel('UINAVBA_EndSession'),
       
    26       showTitle: false,
       
    27       imageType: "normal",
       
    28       height: 13,
       
    29       width: 13,
       
    30       layoutAlign: "center",
       
    31       overflow: "visible",
       
    32       showRollOver: false,
       
    33       showFocused: false,
       
    34       showDown: false,
       
    35       src: "[SKINIMG]../../org.openbravo.client.navigationbarcomponents/images/ico-close-red.gif",
       
    36 
       
    37       keyboardShortcutId : 'NavBar_OBLogout',
       
    38 
       
    39       draw : function() {
       
    40         var me = this;
       
    41         var ksAction = function() {
       
    42           OB.Utilities.logout();
       
    43         };
       
    44         OB.KeyboardManager.KS.add(this.keyboardShortcutId, ksAction);
       
    45         this.Super("draw", arguments);
       
    46       },
       
    47       
       
    48       click: function() {
       
    49         OB.Utilities.logout();
       
    50       }
       
    51     }),
       
    52     OBUserProfile.create({})]})